Class ParameterConstraints
- java.lang.Object
-
- com.amazonaws.services.cloudformation.model.ParameterConstraints
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ParameterConstraints extends Object implements Serializable, 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.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ParameterConstraints()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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; useful for testing and debugging.ParameterConstraints
withAllowedValues(String... allowedValues)
A list of values that are permitted for a parameter.ParameterConstraints
withAllowedValues(Collection<String> allowedValues)
A list of values that are permitted for a parameter.
-
-
-
Method Detail
-
getAllowedValues
public List<String> getAllowedValues()
A list of values that are permitted for a parameter.
- Returns:
- A list of values that are permitted for a parameter.
-
setAllowedValues
public void setAllowedValues(Collection<String> allowedValues)
A list of values that are permitted for a parameter.
- Parameters:
allowedValues
- A list of values that are permitted for a parameter.
-
withAllowedValues
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)
orwithAllowedValues(java.util.Collection)
if you want to override the existing values.- Parameters:
allowedValues
- A list of values that are permitted for a parameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withAllowedValues
public ParameterConstraints withAllowedValues(Collection<String> allowedValues)
A list of values that are permitted for a parameter.
- Parameters:
allowedValues
- A list of values that are permitted for a parameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ParameterConstraints clone()
-
-