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