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 aSqlInjectionMatchSet
contains more than oneSqlInjectionMatchTuple
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SqlInjectionMatchSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SqlInjectionMatchSet
clone()
boolean
equals(Object obj)
String
getName()
The name, if any, of theSqlInjectionMatchSet
.String
getSqlInjectionMatchSetId()
A unique identifier for aSqlInjectionMatchSet
.List<SqlInjectionMatchTuple>
getSqlInjectionMatchTuples()
Specifies the parts of web requests that you want to inspect for snippets of malicious SQL code.int
hashCode()
void
setName(String name)
The name, if any, of theSqlInjectionMatchSet
.void
setSqlInjectionMatchSetId(String sqlInjectionMatchSetId)
A unique identifier for aSqlInjectionMatchSet
.void
setSqlInjectionMatchTuples(Collection<SqlInjectionMatchTuple> sqlInjectionMatchTuples)
Specifies the parts of web requests that you want to inspect for snippets of malicious SQL code.String
toString()
Returns a string representation of this object; useful for testing and debugging.SqlInjectionMatchSet
withName(String name)
The name, if any, of theSqlInjectionMatchSet
.SqlInjectionMatchSet
withSqlInjectionMatchSetId(String sqlInjectionMatchSetId)
A unique identifier for aSqlInjectionMatchSet
.SqlInjectionMatchSet
withSqlInjectionMatchTuples(SqlInjectionMatchTuple... sqlInjectionMatchTuples)
Specifies the parts of web requests that you want to inspect for snippets of malicious SQL code.SqlInjectionMatchSet
withSqlInjectionMatchTuples(Collection<SqlInjectionMatchTuple> sqlInjectionMatchTuples)
Specifies the parts of web requests that you want to inspect for snippets of malicious SQL code.
-
-
-
Method Detail
-
setSqlInjectionMatchSetId
public void setSqlInjectionMatchSetId(String sqlInjectionMatchSetId)
A unique identifier for a
SqlInjectionMatchSet
. You useSqlInjectionMatchSetId
to get information about aSqlInjectionMatchSet
(see GetSqlInjectionMatchSet), update aSqlInjectionMatchSet
(see UpdateSqlInjectionMatchSet), insert aSqlInjectionMatchSet
into aRule
or delete one from aRule
(see UpdateRule), and delete aSqlInjectionMatchSet
from AWS WAF (see DeleteSqlInjectionMatchSet).SqlInjectionMatchSetId
is returned by CreateSqlInjectionMatchSet and by ListSqlInjectionMatchSets.- Parameters:
sqlInjectionMatchSetId
- A unique identifier for aSqlInjectionMatchSet
. You useSqlInjectionMatchSetId
to get information about aSqlInjectionMatchSet
(see GetSqlInjectionMatchSet), update aSqlInjectionMatchSet
(see UpdateSqlInjectionMatchSet), insert aSqlInjectionMatchSet
into aRule
or delete one from aRule
(see UpdateRule), and delete aSqlInjectionMatchSet
from AWS WAF (see DeleteSqlInjectionMatchSet).SqlInjectionMatchSetId
is returned by CreateSqlInjectionMatchSet and by ListSqlInjectionMatchSets.
-
getSqlInjectionMatchSetId
public String getSqlInjectionMatchSetId()
A unique identifier for a
SqlInjectionMatchSet
. You useSqlInjectionMatchSetId
to get information about aSqlInjectionMatchSet
(see GetSqlInjectionMatchSet), update aSqlInjectionMatchSet
(see UpdateSqlInjectionMatchSet), insert aSqlInjectionMatchSet
into aRule
or delete one from aRule
(see UpdateRule), and delete aSqlInjectionMatchSet
from AWS WAF (see DeleteSqlInjectionMatchSet).SqlInjectionMatchSetId
is returned by CreateSqlInjectionMatchSet and by ListSqlInjectionMatchSets.- Returns:
- A unique identifier for a
SqlInjectionMatchSet
. You useSqlInjectionMatchSetId
to get information about aSqlInjectionMatchSet
(see GetSqlInjectionMatchSet), update aSqlInjectionMatchSet
(see UpdateSqlInjectionMatchSet), insert aSqlInjectionMatchSet
into aRule
or delete one from aRule
(see UpdateRule), and delete aSqlInjectionMatchSet
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 useSqlInjectionMatchSetId
to get information about aSqlInjectionMatchSet
(see GetSqlInjectionMatchSet), update aSqlInjectionMatchSet
(see UpdateSqlInjectionMatchSet), insert aSqlInjectionMatchSet
into aRule
or delete one from aRule
(see UpdateRule), and delete aSqlInjectionMatchSet
from AWS WAF (see DeleteSqlInjectionMatchSet).SqlInjectionMatchSetId
is returned by CreateSqlInjectionMatchSet and by ListSqlInjectionMatchSets.- Parameters:
sqlInjectionMatchSetId
- A unique identifier for aSqlInjectionMatchSet
. You useSqlInjectionMatchSetId
to get information about aSqlInjectionMatchSet
(see GetSqlInjectionMatchSet), update aSqlInjectionMatchSet
(see UpdateSqlInjectionMatchSet), insert aSqlInjectionMatchSet
into aRule
or delete one from aRule
(see UpdateRule), and delete aSqlInjectionMatchSet
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 theSqlInjectionMatchSet
.
-
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 theSqlInjectionMatchSet
.- 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)
orwithSqlInjectionMatchTuples(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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SqlInjectionMatchSet clone()
-
-