Class ObtainStagingResourcesContext.Builder
java.lang.Object
software.amazon.awscdk.app.staging.synthesizer.alpha.ObtainStagingResourcesContext.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ObtainStagingResourcesContext>
- Enclosing interface:
ObtainStagingResourcesContext
@Stability(Experimental)
public static final class ObtainStagingResourcesContext.Builder
extends Object
implements software.amazon.jsii.Builder<ObtainStagingResourcesContext>
A builder for
ObtainStagingResourcesContext
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.deployRoleArn
(String deployRoleArn) Sets the value ofObtainStagingResourcesContext.getDeployRoleArn()
environmentString
(String environmentString) Sets the value ofObtainStagingResourcesContext.getEnvironmentString()
Sets the value ofObtainStagingResourcesContext.getQualifier()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
environmentString
@Stability(Experimental) public ObtainStagingResourcesContext.Builder environmentString(String environmentString) Sets the value ofObtainStagingResourcesContext.getEnvironmentString()
- Parameters:
environmentString
- A unique string describing the environment that is guaranteed not to have tokens in it. This parameter is required.- Returns:
this
-
qualifier
Sets the value ofObtainStagingResourcesContext.getQualifier()
- Parameters:
qualifier
- The qualifier passed to the synthesizer. This parameter is required. The staging stack shouldn't need this, but it might.- Returns:
this
-
deployRoleArn
@Stability(Experimental) public ObtainStagingResourcesContext.Builder deployRoleArn(String deployRoleArn) Sets the value ofObtainStagingResourcesContext.getDeployRoleArn()
- Parameters:
deployRoleArn
- The ARN of the deploy action role, if given. This role will need permissions to read from to the staging resources.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ObtainStagingResourcesContext>
- Returns:
- a new instance of
ObtainStagingResourcesContext
- Throws:
NullPointerException
- if any required attribute was not provided
-