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.
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; useful for testing and
debugging.
|
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()
public void setAllowedValues(Collection<String> allowedValues)
allowedValues
- A list of values that are permitted for a parameter.public ParameterConstraints withAllowedValues(String... allowedValues)
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.
Returns a reference to this object so that method calls can be chained together.
allowedValues
- A list of values that are permitted for a parameter.public ParameterConstraints withAllowedValues(Collection<String> allowedValues)
Returns a reference to this object so that method calls can be chained together.
allowedValues
- A list of values that are permitted for a parameter.public String toString()
toString
in class Object
Object.toString()
public ParameterConstraints clone()
Copyright © 2015. All rights reserved.