Class CfnFunction.IAMPolicyDocumentProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sam.CfnFunction.IAMPolicyDocumentProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFunction.IAMPolicyDocumentProperty>
- Enclosing interface:
CfnFunction.IAMPolicyDocumentProperty
@Stability(Stable)
public static final class CfnFunction.IAMPolicyDocumentProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFunction.IAMPolicyDocumentProperty>
A builder for
CfnFunction.IAMPolicyDocumentProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnFunction.IAMPolicyDocumentProperty.getStatement()
Sets the value ofCfnFunction.IAMPolicyDocumentProperty.getVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
statement
Sets the value ofCfnFunction.IAMPolicyDocumentProperty.getStatement()
- Parameters:
statement
- the value to be set. This parameter is required.- Returns:
this
-
version
Sets the value ofCfnFunction.IAMPolicyDocumentProperty.getVersion()
- Parameters:
version
- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFunction.IAMPolicyDocumentProperty>
- Returns:
- a new instance of
CfnFunction.IAMPolicyDocumentProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-