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 forString
types.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 forString
types.A numeric value that determines the largest numeric value you want to allow forNumber
types.An integer value that determines the smallest number of characters you want to allow forString
types.A numeric value that determines the smallest numeric value you want to allow forNumber
types.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, 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
String
types. The pattern must match the entire parameter value provided.- Parameters:
allowedPattern
- A regular expression that represents the patterns that allow forString
types. 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
String
types.- Parameters:
maxLength
- An integer value that determines the largest number of characters you want to allow forString
types.- 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
String
types.- Parameters:
minLength
- An integer value that determines the smallest number of characters you want to allow forString
types.- 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
Number
types.- Parameters:
maxValue
- A numeric value that determines the largest numeric value you want to allow forNumber
types.- 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
Number
types.- Parameters:
minValue
- A numeric value that determines the smallest numeric value you want to allow forNumber
types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-