Class FileDestination.Builder
- java.lang.Object
-
- software.amazon.awscdk.cloudassembly.schema.FileDestination.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<FileDestination>
- Enclosing interface:
- FileDestination
@Stability(Stable) public static final class FileDestination.Builder extends Object implements software.amazon.jsii.Builder<FileDestination>
A builder forFileDestination
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileDestination.BuilderassumeRoleAdditionalOptions(Map<String,? extends Object> assumeRoleAdditionalOptions)Sets the value ofAwsDestination.getAssumeRoleAdditionalOptions()FileDestination.BuilderassumeRoleArn(String assumeRoleArn)Sets the value ofAwsDestination.getAssumeRoleArn()FileDestination.BuilderassumeRoleExternalId(String assumeRoleExternalId)Sets the value ofAwsDestination.getAssumeRoleExternalId()FileDestination.BuilderbucketName(String bucketName)Sets the value ofFileDestination.getBucketName()FileDestinationbuild()Builds the configured instance.FileDestination.BuilderobjectKey(String objectKey)Sets the value ofFileDestination.getObjectKey()FileDestination.Builderregion(String region)Sets the value ofAwsDestination.getRegion()
-
-
-
Method Detail
-
bucketName
@Stability(Stable) public FileDestination.Builder bucketName(String bucketName)
Sets the value ofFileDestination.getBucketName()- Parameters:
bucketName- The name of the bucket. This parameter is required.- Returns:
this
-
objectKey
@Stability(Stable) public FileDestination.Builder objectKey(String objectKey)
Sets the value ofFileDestination.getObjectKey()- Parameters:
objectKey- The destination object key. This parameter is required.- Returns:
this
-
assumeRoleAdditionalOptions
@Stability(Stable) public FileDestination.Builder assumeRoleAdditionalOptions(Map<String,? extends Object> assumeRoleAdditionalOptions)
Sets the value ofAwsDestination.getAssumeRoleAdditionalOptions()- Parameters:
assumeRoleAdditionalOptions- Additional options to pass to STS when assuming the role.RoleArnshould not be used. Use the dedicatedassumeRoleArnproperty instead.ExternalIdshould not be used. Use the dedicatedassumeRoleExternalIdinstead.
- Returns:
this
-
assumeRoleArn
@Stability(Stable) public FileDestination.Builder assumeRoleArn(String assumeRoleArn)
Sets the value ofAwsDestination.getAssumeRoleArn()- Parameters:
assumeRoleArn- The role that needs to be assumed while publishing this asset.- Returns:
this
-
assumeRoleExternalId
@Stability(Stable) public FileDestination.Builder assumeRoleExternalId(String assumeRoleExternalId)
Sets the value ofAwsDestination.getAssumeRoleExternalId()- Parameters:
assumeRoleExternalId- The ExternalId that needs to be supplied while assuming this role.- Returns:
this
-
region
@Stability(Stable) public FileDestination.Builder region(String region)
Sets the value ofAwsDestination.getRegion()- Parameters:
region- The region where this asset will need to be published.- Returns:
this
-
build
@Stability(Stable) public FileDestination build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<FileDestination>- Returns:
- a new instance of
FileDestination - Throws:
NullPointerException- if any required attribute was not provided
-
-