Package software.amazon.awscdk.cxapi
Class AwsCloudFormationStackProperties.Builder
java.lang.Object
software.amazon.awscdk.cxapi.AwsCloudFormationStackProperties.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AwsCloudFormationStackProperties>
- Enclosing interface:
AwsCloudFormationStackProperties
@Stability(Stable)
public static final class AwsCloudFormationStackProperties.Builder
extends Object
implements software.amazon.jsii.Builder<AwsCloudFormationStackProperties>
A builder for
AwsCloudFormationStackProperties
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.parameters
(Map<String, String> parameters) Sets the value ofAwsCloudFormationStackProperties.getParameters()
Sets the value ofAwsCloudFormationStackProperties.getStackName()
templateFile
(String templateFile) Sets the value ofAwsCloudFormationStackProperties.getTemplateFile()
terminationProtection
(Boolean terminationProtection) Sets the value ofAwsCloudFormationStackProperties.getTerminationProtection()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
templateFile
@Stability(Stable) public AwsCloudFormationStackProperties.Builder templateFile(String templateFile) Sets the value ofAwsCloudFormationStackProperties.getTemplateFile()
- Parameters:
templateFile
- A file relative to the assembly root which contains the CloudFormation template for this stack. This parameter is required.- Returns:
this
-
parameters
@Stability(Stable) public AwsCloudFormationStackProperties.Builder parameters(Map<String, String> parameters) Sets the value ofAwsCloudFormationStackProperties.getParameters()
- Parameters:
parameters
- Values for CloudFormation stack parameters that should be passed when the stack is deployed.- Returns:
this
-
stackName
Sets the value ofAwsCloudFormationStackProperties.getStackName()
- Parameters:
stackName
- The name to use for the CloudFormation stack.- Returns:
this
-
terminationProtection
@Stability(Stable) public AwsCloudFormationStackProperties.Builder terminationProtection(Boolean terminationProtection) Sets the value ofAwsCloudFormationStackProperties.getTerminationProtection()
- Parameters:
terminationProtection
- Whether to enable termination protection for this stack.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AwsCloudFormationStackProperties>
- Returns:
- a new instance of
AwsCloudFormationStackProperties
- Throws:
NullPointerException
- if any required attribute was not provided
-