public class ParameterConstraints
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
A set of criteria that AWS CloudFormation uses to validate parameter values.
Although other constraints might be defined in the stack template, AWS
CloudFormation returns only the AllowedValues
property.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<java.lang.String> |
allowedValues
A list of values that are permitted for a parameter.
|
Constructor and Description |
---|
ParameterConstraints() |
Modifier and Type | Method and Description |
---|---|
ParameterConstraints |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getAllowedValues()
A list of values that are permitted for a parameter.
|
int |
hashCode() |
void |
setAllowedValues(java.util.Collection<java.lang.String> allowedValues)
A list of values that are permitted for a parameter.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ParameterConstraints |
withAllowedValues(java.util.Collection<java.lang.String> allowedValues)
A list of values that are permitted for a parameter.
|
ParameterConstraints |
withAllowedValues(java.lang.String... allowedValues)
A list of values that are permitted for a parameter.
|
private SdkInternalList<java.lang.String> allowedValues
A list of values that are permitted for a parameter.
public java.util.List<java.lang.String> getAllowedValues()
A list of values that are permitted for a parameter.
public void setAllowedValues(java.util.Collection<java.lang.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(java.lang.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(java.util.Collection<java.lang.String> allowedValues)
A list of values that are permitted for a parameter.
allowedValues
- A list of values that are permitted for a parameter.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ParameterConstraints clone()
clone
in class java.lang.Object