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