Class ProductStackHistory.Builder
java.lang.Object
software.amazon.awscdk.services.servicecatalog.ProductStackHistory.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ProductStackHistory>
- Enclosing class:
ProductStackHistory
@Stability(Stable)
public static final class ProductStackHistory.Builder
extends Object
implements software.amazon.jsii.Builder<ProductStackHistory>
A fluent builder for
ProductStackHistory
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static ProductStackHistory.Builder
currentVersionLocked
(Boolean currentVersionLocked) If this is set to true, the ProductStack will not be overwritten if a snapshot is found for the currentVersionName.currentVersionName
(String currentVersionName) The current version name of the ProductStack.description
(String description) The description of the product version.The directory where template snapshots will be stored.productStack
(ProductStack productStack) The ProductStack whose history will be retained as a snapshot.validateTemplate
(Boolean validateTemplate) Whether the specified product template will be validated by CloudFormation.
-
Method Details
-
create
@Stability(Stable) public static ProductStackHistory.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
ProductStackHistory.Builder
.
-
currentVersionLocked
@Stability(Stable) public ProductStackHistory.Builder currentVersionLocked(Boolean currentVersionLocked) If this is set to true, the ProductStack will not be overwritten if a snapshot is found for the currentVersionName.- Parameters:
currentVersionLocked
- If this is set to true, the ProductStack will not be overwritten if a snapshot is found for the currentVersionName. This parameter is required.- Returns:
this
-
currentVersionName
The current version name of the ProductStack.- Parameters:
currentVersionName
- The current version name of the ProductStack. This parameter is required.- Returns:
this
-
productStack
The ProductStack whose history will be retained as a snapshot.- Parameters:
productStack
- The ProductStack whose history will be retained as a snapshot. This parameter is required.- Returns:
this
-
description
The description of the product version.Default: - No description provided
- Parameters:
description
- The description of the product version. This parameter is required.- Returns:
this
-
directory
The directory where template snapshots will be stored.Default: 'product-stack-snapshots'
- Parameters:
directory
- The directory where template snapshots will be stored. This parameter is required.- Returns:
this
-
validateTemplate
Whether the specified product template will be validated by CloudFormation.If turned off, an invalid template configuration can be stored.
Default: true
- Parameters:
validateTemplate
- Whether the specified product template will be validated by CloudFormation. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ProductStackHistory>
- Returns:
- a newly built instance of
ProductStackHistory
.
-