Class CloudFormationRuleConstraintOptions.Builder
java.lang.Object
software.amazon.awscdk.services.servicecatalog.CloudFormationRuleConstraintOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudFormationRuleConstraintOptions>
- Enclosing interface:
CloudFormationRuleConstraintOptions
@Stability(Stable)
public static final class CloudFormationRuleConstraintOptions.Builder
extends Object
implements software.amazon.jsii.Builder<CloudFormationRuleConstraintOptions>
A builder for
CloudFormationRuleConstraintOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) Sets the value ofCommonConstraintOptions.getDescription()
messageLanguage
(MessageLanguage messageLanguage) Sets the value ofCommonConstraintOptions.getMessageLanguage()
rule
(TemplateRule rule) Sets the value ofCloudFormationRuleConstraintOptions.getRule()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
rule
Sets the value ofCloudFormationRuleConstraintOptions.getRule()
- Parameters:
rule
- The rule with condition and assertions to apply to template. This parameter is required.- Returns:
this
-
description
@Stability(Stable) public CloudFormationRuleConstraintOptions.Builder description(String description) Sets the value ofCommonConstraintOptions.getDescription()
- Parameters:
description
- The description of the constraint.- Returns:
this
-
messageLanguage
@Stability(Stable) public CloudFormationRuleConstraintOptions.Builder messageLanguage(MessageLanguage messageLanguage) Sets the value ofCommonConstraintOptions.getMessageLanguage()
- Parameters:
messageLanguage
- The language code. Configures the language for error messages from service catalog.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CloudFormationRuleConstraintOptions>
- Returns:
- a new instance of
CloudFormationRuleConstraintOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-