public static interface ParameterConstraints.Builder extends SdkPojo, CopyableBuilder<ParameterConstraints.Builder,ParameterConstraints>
| Modifier and Type | Method and Description |
|---|---|
ParameterConstraints.Builder |
allowedPattern(String allowedPattern)
A regular expression that represents the patterns that allow for
String types. |
ParameterConstraints.Builder |
allowedValues(Collection<String> allowedValues)
The values that the administrator has allowed for the parameter.
|
ParameterConstraints.Builder |
allowedValues(String... allowedValues)
The values that the administrator has allowed for the parameter.
|
ParameterConstraints.Builder |
constraintDescription(String constraintDescription)
A string that explains a constraint when the constraint is violated.
|
ParameterConstraints.Builder |
maxLength(String maxLength)
An integer value that determines the largest number of characters you want to allow for
String
types. |
ParameterConstraints.Builder |
maxValue(String maxValue)
A numeric value that determines the largest numeric value you want to allow for
Number types. |
ParameterConstraints.Builder |
minLength(String minLength)
An integer value that determines the smallest number of characters you want to allow for
String
types. |
ParameterConstraints.Builder |
minValue(String minValue)
A numeric value that determines the smallest numeric value you want to allow for
Number types. |
equalsBySdkFields, sdkFieldscopyapplyMutation, buildParameterConstraints.Builder allowedValues(Collection<String> allowedValues)
The values that the administrator has allowed for the parameter.
allowedValues - The values that the administrator has allowed for the parameter.ParameterConstraints.Builder allowedValues(String... allowedValues)
The values that the administrator has allowed for the parameter.
allowedValues - The values that the administrator has allowed for the parameter.ParameterConstraints.Builder allowedPattern(String allowedPattern)
A regular expression that represents the patterns that allow for String types. The pattern must
match the entire parameter value provided.
allowedPattern - A regular expression that represents the patterns that allow for String types. The
pattern must match the entire parameter value provided.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.
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.
ParameterConstraints.Builder maxLength(String maxLength)
An integer value that determines the largest number of characters you want to allow for String
types.
maxLength - An integer value that determines the largest number of characters you want to allow for
String types.ParameterConstraints.Builder minLength(String minLength)
An integer value that determines the smallest number of characters you want to allow for String
types.
minLength - An integer value that determines the smallest number of characters you want to allow for
String types.ParameterConstraints.Builder maxValue(String maxValue)
A numeric value that determines the largest numeric value you want to allow for Number types.
maxValue - A numeric value that determines the largest numeric value you want to allow for Number
types.ParameterConstraints.Builder minValue(String minValue)
A numeric value that determines the smallest numeric value you want to allow for Number types.
minValue - A numeric value that determines the smallest numeric value you want to allow for Number
types.Copyright © 2023. All rights reserved.