public static interface ParameterDefinition.Builder extends CopyableBuilder<ParameterDefinition.Builder,ParameterDefinition>
Modifier and Type | Method and Description |
---|---|
ParameterDefinition.Builder |
allowedPattern(String allowedPattern)
A regular expression that represents the patterns to allow for String types.
|
ParameterDefinition.Builder |
allowedValues(Collection<String> allowedValues)
Array containing the list of values allowed for the parameter.
|
ParameterDefinition.Builder |
allowedValues(String... allowedValues)
Array containing the list of values allowed for the parameter.
|
ParameterDefinition.Builder |
constraintDescription(String constraintDescription)
A string that explains a constraint when the constraint is violated.
|
ParameterDefinition.Builder |
defaultValue(String defaultValue)
A value of the appropriate type for the template to use if no value is specified when a stack is created.\n
If you define constraints for the parameter, you must specify a value that adheres to those constraints.
|
ParameterDefinition.Builder |
description(String description)
A string of up to 4,000 characters that describes the parameter.
|
ParameterDefinition.Builder |
maxLength(Integer maxLength)
An integer value that determines the largest number of characters you want to allow for String types.
|
ParameterDefinition.Builder |
maxValue(Integer maxValue)
A numeric value that determines the largest numeric value you want to allow for Number types.
|
ParameterDefinition.Builder |
minLength(Integer minLength)
An integer value that determines the smallest number of characters you want to allow for String types.
|
ParameterDefinition.Builder |
minValue(Integer minValue)
A numeric value that determines the smallest numeric value you want to allow for Number types.
|
ParameterDefinition.Builder |
name(String name)
The name of the parameter.
|
ParameterDefinition.Builder |
noEcho(Boolean noEcho)
Whether to mask the parameter value whenever anyone makes a call that describes the stack.
|
ParameterDefinition.Builder |
referencedByResources(Collection<String> referencedByResources)
A list of SAM resources that use this parameter.
|
ParameterDefinition.Builder |
referencedByResources(String... referencedByResources)
A list of SAM resources that use this parameter.
|
ParameterDefinition.Builder |
type(String type)
The type of the parameter.\nValid values: String | Number | List
|
copy
applyMutation, build
ParameterDefinition.Builder allowedPattern(String allowedPattern)
allowedPattern
- A regular expression that represents the patterns to allow for String types.ParameterDefinition.Builder allowedValues(Collection<String> allowedValues)
allowedValues
- Array containing the list of values allowed for the parameter.ParameterDefinition.Builder allowedValues(String... allowedValues)
allowedValues
- Array containing the list of values allowed for the parameter.ParameterDefinition.Builder constraintDescription(String constraintDescription)
constraintDescription
- A string that explains a constraint when the constraint is violated. For example, without a constraint
description,\n a parameter that has an allowed pattern of [A-Za-z0-9]+ displays the following error
message when the user\n specifies an invalid value:\n\n Malformed input-Parameter MyParameter must
match pattern [A-Za-z0-9]+ \n \nBy adding a constraint description, such as
"must contain only uppercase and lowercase letters, and numbers," you can display\n the following
customized error message:\n\n Malformed input-Parameter MyParameter must contain only uppercase and
lowercase letters and numbers.ParameterDefinition.Builder defaultValue(String defaultValue)
defaultValue
- A value of the appropriate type for the template to use if no value is specified when a stack is
created.\n If you define constraints for the parameter, you must specify a value that adheres to those
constraints.ParameterDefinition.Builder description(String description)
description
- A string of up to 4,000 characters that describes the parameter.ParameterDefinition.Builder maxLength(Integer maxLength)
maxLength
- An integer value that determines the largest number of characters you want to allow for String types.ParameterDefinition.Builder maxValue(Integer maxValue)
maxValue
- A numeric value that determines the largest numeric value you want to allow for Number types.ParameterDefinition.Builder minLength(Integer minLength)
minLength
- An integer value that determines the smallest number of characters you want to allow for String types.ParameterDefinition.Builder minValue(Integer minValue)
minValue
- A numeric value that determines the smallest numeric value you want to allow for Number types.ParameterDefinition.Builder name(String name)
name
- The name of the parameter.ParameterDefinition.Builder noEcho(Boolean noEcho)
noEcho
- Whether to mask the parameter value whenever anyone makes a call that describes the stack. If you set
the\n value to true, the parameter value is masked with asterisks (*****).ParameterDefinition.Builder referencedByResources(Collection<String> referencedByResources)
referencedByResources
- A list of SAM resources that use this parameter.ParameterDefinition.Builder referencedByResources(String... referencedByResources)
referencedByResources
- A list of SAM resources that use this parameter.ParameterDefinition.Builder type(String type)
type
- The type of the parameter.\nValid values: String | Number | ListCopyright © 2017 Amazon Web Services, Inc. All Rights Reserved.