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