Class SizeConstraintSet

  • All Implemented Interfaces:
    Serializable, Cloneable

    public class SizeConstraintSet
    extends Object
    implements Serializable, Cloneable

    A complex type that contains SizeConstraint objects, which specify the parts of web requests that you want AWS WAF to inspect the size of. If a SizeConstraintSet contains more than one SizeConstraint object, a request only needs to match one constraint to be considered a match.

    See Also:
    Serialized Form
    • Constructor Detail

      • SizeConstraintSet

        public SizeConstraintSet()
    • Method Detail

      • setName

        public void setName​(String name)

        The name, if any, of the SizeConstraintSet.

        Parameters:
        name - The name, if any, of the SizeConstraintSet.
      • getName

        public String getName()

        The name, if any, of the SizeConstraintSet.

        Returns:
        The name, if any, of the SizeConstraintSet.
      • withName

        public SizeConstraintSet withName​(String name)

        The name, if any, of the SizeConstraintSet.

        Parameters:
        name - The name, if any, of the SizeConstraintSet.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getSizeConstraints

        public List<SizeConstraint> getSizeConstraints()

        Specifies the parts of web requests that you want to inspect the size of.

        Returns:
        Specifies the parts of web requests that you want to inspect the size of.
      • setSizeConstraints

        public void setSizeConstraints​(Collection<SizeConstraint> sizeConstraints)

        Specifies the parts of web requests that you want to inspect the size of.

        Parameters:
        sizeConstraints - Specifies the parts of web requests that you want to inspect the size of.
      • withSizeConstraints

        public SizeConstraintSet withSizeConstraints​(SizeConstraint... sizeConstraints)

        Specifies the parts of web requests that you want to inspect the size of.

        NOTE: This method appends the values to the existing list (if any). Use setSizeConstraints(java.util.Collection) or withSizeConstraints(java.util.Collection) if you want to override the existing values.

        Parameters:
        sizeConstraints - Specifies the parts of web requests that you want to inspect the size of.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withSizeConstraints

        public SizeConstraintSet withSizeConstraints​(Collection<SizeConstraint> sizeConstraints)

        Specifies the parts of web requests that you want to inspect the size of.

        Parameters:
        sizeConstraints - Specifies the parts of web requests that you want to inspect the size of.
        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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object