Class CfnGroup.PolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iam.CfnGroup.PolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGroup.PolicyProperty>
- Enclosing interface:
CfnGroup.PolicyProperty
@Stability(Stable)
public static final class CfnGroup.PolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGroup.PolicyProperty>
A builder for
CfnGroup.PolicyProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.policyDocument(Object policyDocument) Sets the value ofCfnGroup.PolicyProperty.getPolicyDocument()policyName(String policyName) Sets the value ofCfnGroup.PolicyProperty.getPolicyName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
policyDocument
Sets the value ofCfnGroup.PolicyProperty.getPolicyDocument()- Parameters:
policyDocument- The policy document. This parameter is required.- Returns:
this
-
policyName
Sets the value ofCfnGroup.PolicyProperty.getPolicyName()- Parameters:
policyName- The friendly name (not ARN) identifying the policy. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGroup.PolicyProperty>- Returns:
- a new instance of
CfnGroup.PolicyProperty - Throws:
NullPointerException- if any required attribute was not provided
-