Class CfnLaunchTemplateConstraintProps.Builder
java.lang.Object
software.amazon.awscdk.services.servicecatalog.CfnLaunchTemplateConstraintProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLaunchTemplateConstraintProps>
- Enclosing interface:
CfnLaunchTemplateConstraintProps
@Stability(Stable)
public static final class CfnLaunchTemplateConstraintProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLaunchTemplateConstraintProps>
A builder for
CfnLaunchTemplateConstraintProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacceptLanguage(String acceptLanguage) Sets the value ofCfnLaunchTemplateConstraintProps.getAcceptLanguage()build()Builds the configured instance.description(String description) Sets the value ofCfnLaunchTemplateConstraintProps.getDescription()portfolioId(String portfolioId) Sets the value ofCfnLaunchTemplateConstraintProps.getPortfolioId()Sets the value ofCfnLaunchTemplateConstraintProps.getProductId()Sets the value ofCfnLaunchTemplateConstraintProps.getRules()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
portfolioId
Sets the value ofCfnLaunchTemplateConstraintProps.getPortfolioId()- Parameters:
portfolioId- The portfolio identifier. This parameter is required.- Returns:
this
-
productId
Sets the value ofCfnLaunchTemplateConstraintProps.getProductId()- Parameters:
productId- The product identifier. This parameter is required.- Returns:
this
-
rules
Sets the value ofCfnLaunchTemplateConstraintProps.getRules()- Parameters:
rules- The constraint rules. This parameter is required.- Returns:
this
-
acceptLanguage
@Stability(Stable) public CfnLaunchTemplateConstraintProps.Builder acceptLanguage(String acceptLanguage) Sets the value ofCfnLaunchTemplateConstraintProps.getAcceptLanguage()- Parameters:
acceptLanguage- The language code.jp- Japanesezh- Chinese
- Returns:
this
-
description
Sets the value ofCfnLaunchTemplateConstraintProps.getDescription()- Parameters:
description- The description of the constraint.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLaunchTemplateConstraintProps>- Returns:
- a new instance of
CfnLaunchTemplateConstraintProps - Throws:
NullPointerException- if any required attribute was not provided
-