Class ParameterConstraints
java.lang.Object
com.amazonaws.services.cloudformation.model.ParameterConstraints
- All Implemented Interfaces:
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
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.toString()
Returns a string representation of this object; useful for testing and debugging.withAllowedValues
(String... allowedValues) A list of values that are permitted for a parameter.withAllowedValues
(Collection<String> allowedValues) A list of values that are permitted for a parameter.
-
Constructor Details
-
ParameterConstraints
public ParameterConstraints()
-
-
Method Details
-
getAllowedValues
A list of values that are permitted for a parameter.
- Returns:
- A list of values that are permitted for a parameter.
-
setAllowedValues
A list of values that are permitted for a parameter.
- Parameters:
allowedValues
- A list of values that are permitted for a parameter.
-
withAllowedValues
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-