Class XssMatchSet

java.lang.Object
com.amazonaws.services.waf.model.XssMatchSet
All Implemented Interfaces:
Serializable, Cloneable

public class XssMatchSet extends Object implements Serializable, Cloneable

A complex type that contains XssMatchTuple objects, which specify the parts of web requests that you want AWS WAF to inspect for cross-site scripting attacks and, if you want AWS WAF to inspect a header, the name of the header. If a XssMatchSet contains more than one XssMatchTuple object, a request needs to include cross-site scripting attacks in only one of the specified parts of the request to be considered a match.

See Also:
  • Constructor Details

    • XssMatchSet

      public XssMatchSet()
  • Method Details

    • setXssMatchSetId

      public void setXssMatchSetId(String xssMatchSetId)

      A unique identifier for an XssMatchSet. You use XssMatchSetId to get information about an XssMatchSet (see GetXssMatchSet), update an XssMatchSet (see UpdateXssMatchSet), insert an XssMatchSet into a Rule or delete one from a Rule (see UpdateRule), and delete an XssMatchSet from AWS WAF (see DeleteXssMatchSet).

      XssMatchSetId is returned by CreateXssMatchSet and by ListXssMatchSets.

      Parameters:
      xssMatchSetId - A unique identifier for an XssMatchSet. You use XssMatchSetId to get information about an XssMatchSet (see GetXssMatchSet), update an XssMatchSet (see UpdateXssMatchSet), insert an XssMatchSet into a Rule or delete one from a Rule (see UpdateRule), and delete an XssMatchSet from AWS WAF (see DeleteXssMatchSet).

      XssMatchSetId is returned by CreateXssMatchSet and by ListXssMatchSets.

    • getXssMatchSetId

      public String getXssMatchSetId()

      A unique identifier for an XssMatchSet. You use XssMatchSetId to get information about an XssMatchSet (see GetXssMatchSet), update an XssMatchSet (see UpdateXssMatchSet), insert an XssMatchSet into a Rule or delete one from a Rule (see UpdateRule), and delete an XssMatchSet from AWS WAF (see DeleteXssMatchSet).

      XssMatchSetId is returned by CreateXssMatchSet and by ListXssMatchSets.

      Returns:
      A unique identifier for an XssMatchSet. You use XssMatchSetId to get information about an XssMatchSet (see GetXssMatchSet), update an XssMatchSet (see UpdateXssMatchSet), insert an XssMatchSet into a Rule or delete one from a Rule (see UpdateRule), and delete an XssMatchSet from AWS WAF (see DeleteXssMatchSet).

      XssMatchSetId is returned by CreateXssMatchSet and by ListXssMatchSets.

    • withXssMatchSetId

      public XssMatchSet withXssMatchSetId(String xssMatchSetId)

      A unique identifier for an XssMatchSet. You use XssMatchSetId to get information about an XssMatchSet (see GetXssMatchSet), update an XssMatchSet (see UpdateXssMatchSet), insert an XssMatchSet into a Rule or delete one from a Rule (see UpdateRule), and delete an XssMatchSet from AWS WAF (see DeleteXssMatchSet).

      XssMatchSetId is returned by CreateXssMatchSet and by ListXssMatchSets.

      Parameters:
      xssMatchSetId - A unique identifier for an XssMatchSet. You use XssMatchSetId to get information about an XssMatchSet (see GetXssMatchSet), update an XssMatchSet (see UpdateXssMatchSet), insert an XssMatchSet into a Rule or delete one from a Rule (see UpdateRule), and delete an XssMatchSet from AWS WAF (see DeleteXssMatchSet).

      XssMatchSetId is returned by CreateXssMatchSet and by ListXssMatchSets.

      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 XssMatchSet.

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

      public String getName()

      The name, if any, of the XssMatchSet.

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

      public XssMatchSet withName(String name)

      The name, if any, of the XssMatchSet.

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

      public List<XssMatchTuple> getXssMatchTuples()

      Specifies the parts of web requests that you want to inspect for cross-site scripting attacks.

      Returns:
      Specifies the parts of web requests that you want to inspect for cross-site scripting attacks.
    • setXssMatchTuples

      public void setXssMatchTuples(Collection<XssMatchTuple> xssMatchTuples)

      Specifies the parts of web requests that you want to inspect for cross-site scripting attacks.

      Parameters:
      xssMatchTuples - Specifies the parts of web requests that you want to inspect for cross-site scripting attacks.
    • withXssMatchTuples

      public XssMatchSet withXssMatchTuples(XssMatchTuple... xssMatchTuples)

      Specifies the parts of web requests that you want to inspect for cross-site scripting attacks.

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

      Parameters:
      xssMatchTuples - Specifies the parts of web requests that you want to inspect for cross-site scripting attacks.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withXssMatchTuples

      public XssMatchSet withXssMatchTuples(Collection<XssMatchTuple> xssMatchTuples)

      Specifies the parts of web requests that you want to inspect for cross-site scripting attacks.

      Parameters:
      xssMatchTuples - Specifies the parts of web requests that you want to inspect for cross-site scripting attacks.
      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 XssMatchSet clone()
      Overrides:
      clone in class Object