Interface ParameterConstraints.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ParameterConstraints.Builder,,ParameterConstraints> SdkBuilder<ParameterConstraints.Builder,,ParameterConstraints> SdkPojo
- Enclosing class:
ParameterConstraints
-
Method Summary
Modifier and TypeMethodDescriptionallowedPattern(String allowedPattern) A regular expression that represents the patterns that allow forStringtypes.allowedValues(String... allowedValues) The values that the administrator has allowed for the parameter.allowedValues(Collection<String> allowedValues) The values that the administrator has allowed for the parameter.constraintDescription(String constraintDescription) A string that explains a constraint when the constraint is violated.An integer value that determines the largest number of characters you want to allow forStringtypes.A numeric value that determines the largest numeric value you want to allow forNumbertypes.An integer value that determines the smallest number of characters you want to allow forStringtypes.A numeric value that determines the smallest numeric value you want to allow forNumbertypes.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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
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
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
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
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
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
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.
-