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:
  • Constructor Details

    • ParameterConstraints

      public ParameterConstraints()
  • Method Details

    • 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) or withAllowedValues(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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public ParameterConstraints clone()
      Overrides:
      clone in class Object