Class CloudFormationProductVersion.Builder
java.lang.Object
software.amazon.awscdk.services.servicecatalog.CloudFormationProductVersion.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudFormationProductVersion>
- Enclosing interface:
CloudFormationProductVersion
@Stability(Stable)
public static final class CloudFormationProductVersion.Builder
extends Object
implements software.amazon.jsii.Builder<CloudFormationProductVersion>
A builder for
CloudFormationProductVersion-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.cloudFormationTemplate(CloudFormationTemplate cloudFormationTemplate) Sets the value ofCloudFormationProductVersion.getCloudFormationTemplate()description(String description) Sets the value ofCloudFormationProductVersion.getDescription()productVersionName(String productVersionName) Sets the value ofCloudFormationProductVersion.getProductVersionName()validateTemplate(Boolean validateTemplate) Sets the value ofCloudFormationProductVersion.getValidateTemplate()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cloudFormationTemplate
@Stability(Stable) public CloudFormationProductVersion.Builder cloudFormationTemplate(CloudFormationTemplate cloudFormationTemplate) Sets the value ofCloudFormationProductVersion.getCloudFormationTemplate()- Parameters:
cloudFormationTemplate- The S3 template that points to the provisioning version template. This parameter is required.- Returns:
this
-
description
Sets the value ofCloudFormationProductVersion.getDescription()- Parameters:
description- The description of the product version.- Returns:
this
-
productVersionName
@Stability(Stable) public CloudFormationProductVersion.Builder productVersionName(String productVersionName) Sets the value ofCloudFormationProductVersion.getProductVersionName()- Parameters:
productVersionName- The name of the product version.- Returns:
this
-
validateTemplate
@Stability(Stable) public CloudFormationProductVersion.Builder validateTemplate(Boolean validateTemplate) Sets the value ofCloudFormationProductVersion.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:
buildin interfacesoftware.amazon.jsii.Builder<CloudFormationProductVersion>- Returns:
- a new instance of
CloudFormationProductVersion - Throws:
NullPointerException- if any required attribute was not provided
-