Class CommonConstraintOptions.Builder
java.lang.Object
software.amazon.awscdk.services.servicecatalog.CommonConstraintOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CommonConstraintOptions>
- Enclosing interface:
CommonConstraintOptions
@Stability(Stable)
public static final class CommonConstraintOptions.Builder
extends Object
implements software.amazon.jsii.Builder<CommonConstraintOptions>
A builder for
CommonConstraintOptions
-
Constructor Summary
-
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()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofCommonConstraintOptions.getDescription()
- Parameters:
description
- The description of the constraint.- Returns:
this
-
messageLanguage
@Stability(Stable) public CommonConstraintOptions.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<CommonConstraintOptions>
- Returns:
- a new instance of
CommonConstraintOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-