@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ParameterConstraints extends Object implements Serializable, Cloneable
A set of criteria that CloudFormation uses to validate parameter values. Although other constraints might be defined
in the stack template, CloudFormation returns only the AllowedValues property.
| Constructor and Description |
|---|
ParameterConstraints() |
| Modifier and Type | Method and Description |
|---|---|
ParameterConstraints |
clone() |
boolean |
equals(Object obj) |
List<String> |
getAllowedValues()
A list of values that are permitted for a parameter.
|
int |
hashCode() |
void |
setAllowedValues(Collection<String> allowedValues)
A list of values that are permitted for a parameter.
|
String |
toString()
Returns a string representation of this object.
|
ParameterConstraints |
withAllowedValues(Collection<String> allowedValues)
A list of values that are permitted for a parameter.
|
ParameterConstraints |
withAllowedValues(String... allowedValues)
A list of values that are permitted for a parameter.
|
public List<String> getAllowedValues()
A list of values that are permitted for a parameter.
public void setAllowedValues(Collection<String> allowedValues)
A list of values that are permitted for a parameter.
allowedValues - A list of values that are permitted for a parameter.public ParameterConstraints withAllowedValues(String... allowedValues)
A list of values that are permitted for a parameter.
NOTE: This method appends the values to the existing list (if any). Use
setAllowedValues(java.util.Collection) or withAllowedValues(java.util.Collection) if you want
to override the existing values.
allowedValues - A list of values that are permitted for a parameter.public ParameterConstraints withAllowedValues(Collection<String> allowedValues)
A list of values that are permitted for a parameter.
allowedValues - A list of values that are permitted for a parameter.public String toString()
toString in class ObjectObject.toString()public ParameterConstraints clone()