Class SqlInjectionMatchSet

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

public class SqlInjectionMatchSet extends Object implements Serializable, Cloneable

A complex type that contains SqlInjectionMatchTuple objects, which specify the parts of web requests that you want AWS WAF to inspect for snippets of malicious SQL code and, if you want AWS WAF to inspect a header, the name of the header. If a SqlInjectionMatchSet contains more than one SqlInjectionMatchTuple object, a request needs to include snippets of SQL code in only one of the specified parts of the request to be considered a match.

See Also:
  • Constructor Details

    • SqlInjectionMatchSet

      public SqlInjectionMatchSet()
  • Method Details

    • setSqlInjectionMatchSetId

      public void setSqlInjectionMatchSetId(String sqlInjectionMatchSetId)

      A unique identifier for a SqlInjectionMatchSet. You use SqlInjectionMatchSetId to get information about a SqlInjectionMatchSet (see GetSqlInjectionMatchSet), update a SqlInjectionMatchSet (see UpdateSqlInjectionMatchSet), insert a SqlInjectionMatchSet into a Rule or delete one from a Rule (see UpdateRule), and delete a SqlInjectionMatchSet from AWS WAF (see DeleteSqlInjectionMatchSet).

      SqlInjectionMatchSetId is returned by CreateSqlInjectionMatchSet and by ListSqlInjectionMatchSets.

      Parameters:
      sqlInjectionMatchSetId - A unique identifier for a SqlInjectionMatchSet. You use SqlInjectionMatchSetId to get information about a SqlInjectionMatchSet (see GetSqlInjectionMatchSet), update a SqlInjectionMatchSet (see UpdateSqlInjectionMatchSet), insert a SqlInjectionMatchSet into a Rule or delete one from a Rule (see UpdateRule), and delete a SqlInjectionMatchSet from AWS WAF (see DeleteSqlInjectionMatchSet).

      SqlInjectionMatchSetId is returned by CreateSqlInjectionMatchSet and by ListSqlInjectionMatchSets.

    • getSqlInjectionMatchSetId

      public String getSqlInjectionMatchSetId()

      A unique identifier for a SqlInjectionMatchSet. You use SqlInjectionMatchSetId to get information about a SqlInjectionMatchSet (see GetSqlInjectionMatchSet), update a SqlInjectionMatchSet (see UpdateSqlInjectionMatchSet), insert a SqlInjectionMatchSet into a Rule or delete one from a Rule (see UpdateRule), and delete a SqlInjectionMatchSet from AWS WAF (see DeleteSqlInjectionMatchSet).

      SqlInjectionMatchSetId is returned by CreateSqlInjectionMatchSet and by ListSqlInjectionMatchSets.

      Returns:
      A unique identifier for a SqlInjectionMatchSet. You use SqlInjectionMatchSetId to get information about a SqlInjectionMatchSet (see GetSqlInjectionMatchSet), update a SqlInjectionMatchSet (see UpdateSqlInjectionMatchSet), insert a SqlInjectionMatchSet into a Rule or delete one from a Rule (see UpdateRule), and delete a SqlInjectionMatchSet from AWS WAF (see DeleteSqlInjectionMatchSet).

      SqlInjectionMatchSetId is returned by CreateSqlInjectionMatchSet and by ListSqlInjectionMatchSets.

    • withSqlInjectionMatchSetId

      public SqlInjectionMatchSet withSqlInjectionMatchSetId(String sqlInjectionMatchSetId)

      A unique identifier for a SqlInjectionMatchSet. You use SqlInjectionMatchSetId to get information about a SqlInjectionMatchSet (see GetSqlInjectionMatchSet), update a SqlInjectionMatchSet (see UpdateSqlInjectionMatchSet), insert a SqlInjectionMatchSet into a Rule or delete one from a Rule (see UpdateRule), and delete a SqlInjectionMatchSet from AWS WAF (see DeleteSqlInjectionMatchSet).

      SqlInjectionMatchSetId is returned by CreateSqlInjectionMatchSet and by ListSqlInjectionMatchSets.

      Parameters:
      sqlInjectionMatchSetId - A unique identifier for a SqlInjectionMatchSet. You use SqlInjectionMatchSetId to get information about a SqlInjectionMatchSet (see GetSqlInjectionMatchSet), update a SqlInjectionMatchSet (see UpdateSqlInjectionMatchSet), insert a SqlInjectionMatchSet into a Rule or delete one from a Rule (see UpdateRule), and delete a SqlInjectionMatchSet from AWS WAF (see DeleteSqlInjectionMatchSet).

      SqlInjectionMatchSetId is returned by CreateSqlInjectionMatchSet and by ListSqlInjectionMatchSets.

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

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

      public String getName()

      The name, if any, of the SqlInjectionMatchSet.

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

      public SqlInjectionMatchSet withName(String name)

      The name, if any, of the SqlInjectionMatchSet.

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

      public List<SqlInjectionMatchTuple> getSqlInjectionMatchTuples()

      Specifies the parts of web requests that you want to inspect for snippets of malicious SQL code.

      Returns:
      Specifies the parts of web requests that you want to inspect for snippets of malicious SQL code.
    • setSqlInjectionMatchTuples

      public void setSqlInjectionMatchTuples(Collection<SqlInjectionMatchTuple> sqlInjectionMatchTuples)

      Specifies the parts of web requests that you want to inspect for snippets of malicious SQL code.

      Parameters:
      sqlInjectionMatchTuples - Specifies the parts of web requests that you want to inspect for snippets of malicious SQL code.
    • withSqlInjectionMatchTuples

      public SqlInjectionMatchSet withSqlInjectionMatchTuples(SqlInjectionMatchTuple... sqlInjectionMatchTuples)

      Specifies the parts of web requests that you want to inspect for snippets of malicious SQL code.

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

      Parameters:
      sqlInjectionMatchTuples - Specifies the parts of web requests that you want to inspect for snippets of malicious SQL code.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withSqlInjectionMatchTuples

      public SqlInjectionMatchSet withSqlInjectionMatchTuples(Collection<SqlInjectionMatchTuple> sqlInjectionMatchTuples)

      Specifies the parts of web requests that you want to inspect for snippets of malicious SQL code.

      Parameters:
      sqlInjectionMatchTuples - Specifies the parts of web requests that you want to inspect for snippets of malicious SQL code.
      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 SqlInjectionMatchSet clone()
      Overrides:
      clone in class Object