Class CfnAccessEntry.AccessPolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.eks.CfnAccessEntry.AccessPolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAccessEntry.AccessPolicyProperty>
- Enclosing interface:
CfnAccessEntry.AccessPolicyProperty
@Stability(Stable)
public static final class CfnAccessEntry.AccessPolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAccessEntry.AccessPolicyProperty>
A builder for
CfnAccessEntry.AccessPolicyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessScope(IResolvable accessScope) Sets the value ofCfnAccessEntry.AccessPolicyProperty.getAccessScope()accessScope(CfnAccessEntry.AccessScopeProperty accessScope) Sets the value ofCfnAccessEntry.AccessPolicyProperty.getAccessScope()build()Builds the configured instance.Sets the value ofCfnAccessEntry.AccessPolicyProperty.getPolicyArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessScope
@Stability(Stable) public CfnAccessEntry.AccessPolicyProperty.Builder accessScope(IResolvable accessScope) Sets the value ofCfnAccessEntry.AccessPolicyProperty.getAccessScope()- Parameters:
accessScope- The scope of anAccessPolicythat's associated to anAccessEntry. This parameter is required.- Returns:
this
-
accessScope
@Stability(Stable) public CfnAccessEntry.AccessPolicyProperty.Builder accessScope(CfnAccessEntry.AccessScopeProperty accessScope) Sets the value ofCfnAccessEntry.AccessPolicyProperty.getAccessScope()- Parameters:
accessScope- The scope of anAccessPolicythat's associated to anAccessEntry. This parameter is required.- Returns:
this
-
policyArn
Sets the value ofCfnAccessEntry.AccessPolicyProperty.getPolicyArn()- Parameters:
policyArn- The ARN of the access policy. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAccessEntry.AccessPolicyProperty>- Returns:
- a new instance of
CfnAccessEntry.AccessPolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-