Class AccessScope.Builder
java.lang.Object
software.amazon.awscdk.services.eks.AccessScope.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AccessScope>
- Enclosing interface:
AccessScope
@Stability(Stable)
public static final class AccessScope.Builder
extends Object
implements software.amazon.jsii.Builder<AccessScope>
A builder for
AccessScope
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.namespaces
(List<String> namespaces) Sets the value ofAccessScope.getNamespaces()
type
(AccessScopeType type) Sets the value ofAccessScope.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofAccessScope.getType()
- Parameters:
type
- The scope type of the policy, either 'namespace' or 'cluster'. This parameter is required.- Returns:
this
-
namespaces
Sets the value ofAccessScope.getNamespaces()
- Parameters:
namespaces
- A Kubernetes namespace that an access policy is scoped to. A value is required if you specified namespace for Type.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AccessScope>
- Returns:
- a new instance of
AccessScope
- Throws:
NullPointerException
- if any required attribute was not provided
-