Package software.amazon.awscdk.core
Class CfnParameterProps.Builder
java.lang.Object
software.amazon.awscdk.core.CfnParameterProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnParameterProps>
- Enclosing interface:
- CfnParameterProps
@Stability(Stable)
public static final class CfnParameterProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnParameterProps>
A builder for
CfnParameterProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallowedPattern
(String allowedPattern) Sets the value ofCfnParameterProps.getAllowedPattern()
allowedValues
(List<String> allowedValues) Sets the value ofCfnParameterProps.getAllowedValues()
build()
Builds the configured instance.constraintDescription
(String constraintDescription) Sets the value ofCfnParameterProps.getConstraintDescription()
defaultValue
(Object defaultValue) Sets the value ofCfnParameterProps.getDefaultValue()
description
(String description) Sets the value ofCfnParameterProps.getDescription()
Sets the value ofCfnParameterProps.getMaxLength()
Sets the value ofCfnParameterProps.getMaxValue()
Sets the value ofCfnParameterProps.getMinLength()
Sets the value ofCfnParameterProps.getMinValue()
Sets the value ofCfnParameterProps.getNoEcho()
Sets the value ofCfnParameterProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowedPattern
Sets the value ofCfnParameterProps.getAllowedPattern()
- Parameters:
allowedPattern
- A regular expression that represents the patterns to allow for String types.- Returns:
this
-
allowedValues
Sets the value ofCfnParameterProps.getAllowedValues()
- Parameters:
allowedValues
- An array containing the list of values allowed for the parameter.- Returns:
this
-
constraintDescription
@Stability(Stable) public CfnParameterProps.Builder constraintDescription(String constraintDescription) Sets the value ofCfnParameterProps.getConstraintDescription()
- Parameters:
constraintDescription
- A string that explains a constraint when the constraint is violated. For example, without a constraint description, a parameter that has an allowed pattern of [A-Za-z0-9]+ displays the following error message when the user specifies an invalid value:- Returns:
this
-
defaultValue
Sets the value ofCfnParameterProps.getDefaultValue()
- Parameters:
defaultValue
- A value of the appropriate type for the template to use if no value is specified when a stack is created. If you define constraints for the parameter, you must specify a value that adheres to those constraints.- Returns:
this
-
description
Sets the value ofCfnParameterProps.getDescription()
- Parameters:
description
- A string of up to 4000 characters that describes the parameter.- Returns:
this
-
maxLength
Sets the value ofCfnParameterProps.getMaxLength()
- Parameters:
maxLength
- An integer value that determines the largest number of characters you want to allow for String types.- Returns:
this
-
maxValue
Sets the value ofCfnParameterProps.getMaxValue()
- Parameters:
maxValue
- A numeric value that determines the largest numeric value you want to allow for Number types.- Returns:
this
-
minLength
Sets the value ofCfnParameterProps.getMinLength()
- Parameters:
minLength
- An integer value that determines the smallest number of characters you want to allow for String types.- Returns:
this
-
minValue
Sets the value ofCfnParameterProps.getMinValue()
- Parameters:
minValue
- A numeric value that determines the smallest numeric value you want to allow for Number types.- Returns:
this
-
noEcho
Sets the value ofCfnParameterProps.getNoEcho()
- Parameters:
noEcho
- Whether to mask the parameter value when anyone makes a call that describes the stack. If you set the value totrue
, the parameter value is masked with asterisks (*****
).- Returns:
this
-
type
Sets the value ofCfnParameterProps.getType()
- Parameters:
type
- The data type for the parameter (DataType).- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnParameterProps>
- Returns:
- a new instance of
CfnParameterProps
- Throws:
NullPointerException
- if any required attribute was not provided
-