Interface ParameterConstraints.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ParameterConstraints.Builder,ParameterConstraints>,SdkBuilder<ParameterConstraints.Builder,ParameterConstraints>,SdkPojo
- Enclosing class:
- ParameterConstraints
public static interface ParameterConstraints.Builder extends SdkPojo, CopyableBuilder<ParameterConstraints.Builder,ParameterConstraints>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ParameterConstraints.BuilderallowedPattern(String allowedPattern)A regular expression that represents the patterns that allow forStringtypes.ParameterConstraints.BuilderallowedValues(String... allowedValues)The values that the administrator has allowed for the parameter.ParameterConstraints.BuilderallowedValues(Collection<String> allowedValues)The values that the administrator has allowed for the parameter.ParameterConstraints.BuilderconstraintDescription(String constraintDescription)A string that explains a constraint when the constraint is violated.ParameterConstraints.BuildermaxLength(String maxLength)An integer value that determines the largest number of characters you want to allow forStringtypes.ParameterConstraints.BuildermaxValue(String maxValue)A numeric value that determines the largest numeric value you want to allow forNumbertypes.ParameterConstraints.BuilderminLength(String minLength)An integer value that determines the smallest number of characters you want to allow forStringtypes.ParameterConstraints.BuilderminValue(String minValue)A numeric value that determines the smallest numeric value you want to allow forNumbertypes.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
allowedValues
ParameterConstraints.Builder allowedValues(Collection<String> allowedValues)
The values that the administrator has allowed for the parameter.
- Parameters:
allowedValues- The values that the administrator has allowed for the parameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowedValues
ParameterConstraints.Builder allowedValues(String... allowedValues)
The values that the administrator has allowed for the parameter.
- Parameters:
allowedValues- The values that the administrator has allowed for the parameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowedPattern
ParameterConstraints.Builder allowedPattern(String allowedPattern)
A regular expression that represents the patterns that allow for
Stringtypes. The pattern must match the entire parameter value provided.- Parameters:
allowedPattern- A regular expression that represents the patterns that allow forStringtypes. The pattern must match the entire parameter value provided.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
constraintDescription
ParameterConstraints.Builder constraintDescription(String 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:Malformed input-Parameter MyParameter must match pattern [A-Za-z0-9]+By adding a constraint description, such as must only contain letters (uppercase and lowercase) and numbers, you can display the following customized error message:
Malformed input-Parameter MyParameter must only contain uppercase and lowercase letters and numbers.- 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:Malformed input-Parameter MyParameter must match pattern [A-Za-z0-9]+By adding a constraint description, such as must only contain letters (uppercase and lowercase) and numbers, you can display the following customized error message:
Malformed input-Parameter MyParameter must only contain uppercase and lowercase letters and numbers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxLength
ParameterConstraints.Builder maxLength(String maxLength)
An integer value that determines the largest number of characters you want to allow for
Stringtypes.- Parameters:
maxLength- An integer value that determines the largest number of characters you want to allow forStringtypes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
minLength
ParameterConstraints.Builder minLength(String minLength)
An integer value that determines the smallest number of characters you want to allow for
Stringtypes.- Parameters:
minLength- An integer value that determines the smallest number of characters you want to allow forStringtypes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxValue
ParameterConstraints.Builder maxValue(String maxValue)
A numeric value that determines the largest numeric value you want to allow for
Numbertypes.- Parameters:
maxValue- A numeric value that determines the largest numeric value you want to allow forNumbertypes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
minValue
ParameterConstraints.Builder minValue(String minValue)
A numeric value that determines the smallest numeric value you want to allow for
Numbertypes.- Parameters:
minValue- A numeric value that determines the smallest numeric value you want to allow forNumbertypes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-