Class CfnStateMachine.S3LocationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.CfnStateMachine.S3LocationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStateMachine.S3LocationProperty>
- Enclosing interface:
- CfnStateMachine.S3LocationProperty
@Stability(Stable)
public static final class CfnStateMachine.S3LocationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStateMachine.S3LocationProperty>
A builder for
CfnStateMachine.S3LocationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnStateMachine.S3LocationProperty.getBucket()
build()
Builds the configured instance.Sets the value ofCfnStateMachine.S3LocationProperty.getKey()
Sets the value ofCfnStateMachine.S3LocationProperty.getVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucket
Sets the value ofCfnStateMachine.S3LocationProperty.getBucket()
- Parameters:
bucket
- The name of the S3 bucket where the state machine definition JSON or YAML file is stored. This parameter is required.- Returns:
this
-
key
Sets the value ofCfnStateMachine.S3LocationProperty.getKey()
- Parameters:
key
- The name of the state machine definition file (Amazon S3 object name). This parameter is required.- Returns:
this
-
version
Sets the value ofCfnStateMachine.S3LocationProperty.getVersion()
- Parameters:
version
- For versioning-enabled buckets, a specific version of the state machine definition.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnStateMachine.S3LocationProperty>
- Returns:
- a new instance of
CfnStateMachine.S3LocationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-