Class AccessPolicyNameOptions.Builder
java.lang.Object
software.amazon.awscdk.services.eks.AccessPolicyNameOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AccessPolicyNameOptions>
- Enclosing interface:
AccessPolicyNameOptions
@Stability(Stable)
public static final class AccessPolicyNameOptions.Builder
extends Object
implements software.amazon.jsii.Builder<AccessPolicyNameOptions>
A builder for
AccessPolicyNameOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaccessScopeType
(AccessScopeType accessScopeType) Sets the value ofAccessPolicyNameOptions.getAccessScopeType()
build()
Builds the configured instance.namespaces
(List<String> namespaces) Sets the value ofAccessPolicyNameOptions.getNamespaces()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessScopeType
@Stability(Stable) public AccessPolicyNameOptions.Builder accessScopeType(AccessScopeType accessScopeType) Sets the value ofAccessPolicyNameOptions.getAccessScopeType()
- Parameters:
accessScopeType
- The scope of the access policy. This parameter is required. This determines the level of access granted by the policy.- Returns:
this
-
namespaces
Sets the value ofAccessPolicyNameOptions.getNamespaces()
- Parameters:
namespaces
- An optional array of Kubernetes namespaces to which the access policy applies.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AccessPolicyNameOptions>
- Returns:
- a new instance of
AccessPolicyNameOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-