Class SizeConstraintSet

java.lang.Object
com.amazonaws.services.waf.model.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:
  • Constructor Details

    • SizeConstraintSet

      public SizeConstraintSet()
  • Method Details

    • setSizeConstraintSetId

      public void setSizeConstraintSetId(String sizeConstraintSetId)

      A unique identifier for a SizeConstraintSet. You use SizeConstraintSetId to get information about a SizeConstraintSet (see GetSizeConstraintSet), update a SizeConstraintSet (see UpdateSizeConstraintSet), insert a SizeConstraintSet into a Rule or delete one from a Rule (see UpdateRule), and delete a SizeConstraintSet from AWS WAF (see DeleteSizeConstraintSet).

      SizeConstraintSetId is returned by CreateSizeConstraintSet and by ListSizeConstraintSets.

      Parameters:
      sizeConstraintSetId - A unique identifier for a SizeConstraintSet. You use SizeConstraintSetId to get information about a SizeConstraintSet (see GetSizeConstraintSet), update a SizeConstraintSet (see UpdateSizeConstraintSet), insert a SizeConstraintSet into a Rule or delete one from a Rule (see UpdateRule), and delete a SizeConstraintSet from AWS WAF (see DeleteSizeConstraintSet).

      SizeConstraintSetId is returned by CreateSizeConstraintSet and by ListSizeConstraintSets.

    • getSizeConstraintSetId

      public String getSizeConstraintSetId()

      A unique identifier for a SizeConstraintSet. You use SizeConstraintSetId to get information about a SizeConstraintSet (see GetSizeConstraintSet), update a SizeConstraintSet (see UpdateSizeConstraintSet), insert a SizeConstraintSet into a Rule or delete one from a Rule (see UpdateRule), and delete a SizeConstraintSet from AWS WAF (see DeleteSizeConstraintSet).

      SizeConstraintSetId is returned by CreateSizeConstraintSet and by ListSizeConstraintSets.

      Returns:
      A unique identifier for a SizeConstraintSet. You use SizeConstraintSetId to get information about a SizeConstraintSet (see GetSizeConstraintSet), update a SizeConstraintSet (see UpdateSizeConstraintSet), insert a SizeConstraintSet into a Rule or delete one from a Rule (see UpdateRule), and delete a SizeConstraintSet from AWS WAF (see DeleteSizeConstraintSet).

      SizeConstraintSetId is returned by CreateSizeConstraintSet and by ListSizeConstraintSets.

    • withSizeConstraintSetId

      public SizeConstraintSet withSizeConstraintSetId(String sizeConstraintSetId)

      A unique identifier for a SizeConstraintSet. You use SizeConstraintSetId to get information about a SizeConstraintSet (see GetSizeConstraintSet), update a SizeConstraintSet (see UpdateSizeConstraintSet), insert a SizeConstraintSet into a Rule or delete one from a Rule (see UpdateRule), and delete a SizeConstraintSet from AWS WAF (see DeleteSizeConstraintSet).

      SizeConstraintSetId is returned by CreateSizeConstraintSet and by ListSizeConstraintSets.

      Parameters:
      sizeConstraintSetId - A unique identifier for a SizeConstraintSet. You use SizeConstraintSetId to get information about a SizeConstraintSet (see GetSizeConstraintSet), update a SizeConstraintSet (see UpdateSizeConstraintSet), insert a SizeConstraintSet into a Rule or delete one from a Rule (see UpdateRule), and delete a SizeConstraintSet from AWS WAF (see DeleteSizeConstraintSet).

      SizeConstraintSetId is returned by CreateSizeConstraintSet and by ListSizeConstraintSets.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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:
    • equals

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

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

      public SizeConstraintSet clone()
      Overrides:
      clone in class Object