Class FileStagingLocation.Builder
java.lang.Object
software.amazon.awscdk.app.staging.synthesizer.alpha.FileStagingLocation.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<FileStagingLocation>
- Enclosing interface:
FileStagingLocation
@Stability(Experimental)
public static final class FileStagingLocation.Builder
extends Object
implements software.amazon.jsii.Builder<FileStagingLocation>
A builder for
FileStagingLocation-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassumeRoleArn(String assumeRoleArn) Sets the value ofFileStagingLocation.getAssumeRoleArn()bucketName(String bucketName) Sets the value ofFileStagingLocation.getBucketName()build()Builds the configured instance.dependencyStack(Stack dependencyStack) Sets the value ofFileStagingLocation.getDependencyStack()Sets the value ofFileStagingLocation.getPrefix()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucketName
Sets the value ofFileStagingLocation.getBucketName()- Parameters:
bucketName- The name of the staging bucket. This parameter is required.- Returns:
this
-
assumeRoleArn
Sets the value ofFileStagingLocation.getAssumeRoleArn()- Parameters:
assumeRoleArn- The ARN to assume to write files to this bucket.- Returns:
this
-
dependencyStack
Sets the value ofFileStagingLocation.getDependencyStack()- Parameters:
dependencyStack- The stack that creates this bucket (leads to dependencies on it).- Returns:
this
-
prefix
Sets the value ofFileStagingLocation.getPrefix()- Parameters:
prefix- A prefix to add to the keys.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<FileStagingLocation>- Returns:
- a new instance of
FileStagingLocation - Throws:
NullPointerException- if any required attribute was not provided
-