Class ProductStackHistoryProps.Builder
java.lang.Object
software.amazon.awscdk.services.servicecatalog.ProductStackHistoryProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ProductStackHistoryProps>
- Enclosing interface:
- ProductStackHistoryProps
@Stability(Stable)
public static final class ProductStackHistoryProps.Builder
extends Object
implements software.amazon.jsii.Builder<ProductStackHistoryProps>
A builder for
ProductStackHistoryProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.currentVersionLocked
(Boolean currentVersionLocked) Sets the value ofProductStackHistoryProps.getCurrentVersionLocked()
currentVersionName
(String currentVersionName) Sets the value ofProductStackHistoryProps.getCurrentVersionName()
description
(String description) Sets the value ofProductStackHistoryProps.getDescription()
Sets the value ofProductStackHistoryProps.getDirectory()
productStack
(ProductStack productStack) Sets the value ofProductStackHistoryProps.getProductStack()
validateTemplate
(Boolean validateTemplate) Sets the value ofProductStackHistoryProps.getValidateTemplate()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
currentVersionLocked
@Stability(Stable) public ProductStackHistoryProps.Builder currentVersionLocked(Boolean currentVersionLocked) Sets the value ofProductStackHistoryProps.getCurrentVersionLocked()
- 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
@Stability(Stable) public ProductStackHistoryProps.Builder currentVersionName(String currentVersionName) Sets the value ofProductStackHistoryProps.getCurrentVersionName()
- Parameters:
currentVersionName
- The current version name of the ProductStack. This parameter is required.- Returns:
this
-
productStack
Sets the value ofProductStackHistoryProps.getProductStack()
- Parameters:
productStack
- The ProductStack whose history will be retained as a snapshot. This parameter is required.- Returns:
this
-
description
Sets the value ofProductStackHistoryProps.getDescription()
- Parameters:
description
- The description of the product version.- Returns:
this
-
directory
Sets the value ofProductStackHistoryProps.getDirectory()
- Parameters:
directory
- The directory where template snapshots will be stored.- Returns:
this
-
validateTemplate
@Stability(Stable) public ProductStackHistoryProps.Builder validateTemplate(Boolean validateTemplate) Sets the value ofProductStackHistoryProps.getValidateTemplate()
- Parameters:
validateTemplate
- Whether the specified product template will be validated by CloudFormation. If turned off, an invalid template configuration can be stored.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ProductStackHistoryProps>
- Returns:
- a new instance of
ProductStackHistoryProps
- Throws:
NullPointerException
- if any required attribute was not provided
-