@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RegexPatternSet extends Object implements Serializable, Cloneable, StructuredPojo
The RegexPatternSet
specifies the regular expression (regex) pattern that you want AWS WAF to search
for, such as B[a@]dB[o0]t
. You can then configure AWS WAF to reject those requests.
Constructor and Description |
---|
RegexPatternSet() |
Modifier and Type | Method and Description |
---|---|
RegexPatternSet |
clone() |
boolean |
equals(Object obj) |
String |
getName()
A friendly name or description of the RegexPatternSet.
|
String |
getRegexPatternSetId()
The identifier for the
RegexPatternSet . |
List<String> |
getRegexPatternStrings()
Specifies the regular expression (regex) patterns that you want AWS WAF to search for, such as
B[a@]dB[o0]t . |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setName(String name)
A friendly name or description of the RegexPatternSet.
|
void |
setRegexPatternSetId(String regexPatternSetId)
The identifier for the
RegexPatternSet . |
void |
setRegexPatternStrings(Collection<String> regexPatternStrings)
Specifies the regular expression (regex) patterns that you want AWS WAF to search for, such as
B[a@]dB[o0]t . |
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
RegexPatternSet |
withName(String name)
A friendly name or description of the RegexPatternSet.
|
RegexPatternSet |
withRegexPatternSetId(String regexPatternSetId)
The identifier for the
RegexPatternSet . |
RegexPatternSet |
withRegexPatternStrings(Collection<String> regexPatternStrings)
Specifies the regular expression (regex) patterns that you want AWS WAF to search for, such as
B[a@]dB[o0]t . |
RegexPatternSet |
withRegexPatternStrings(String... regexPatternStrings)
Specifies the regular expression (regex) patterns that you want AWS WAF to search for, such as
B[a@]dB[o0]t . |
public void setRegexPatternSetId(String regexPatternSetId)
The identifier for the RegexPatternSet
. You use RegexPatternSetId
to get information
about a RegexPatternSet
, update a RegexPatternSet
, remove a
RegexPatternSet
from a RegexMatchSet
, and delete a RegexPatternSet
from
AWS WAF.
RegexMatchSetId
is returned by CreateRegexPatternSet and by ListRegexPatternSets.
regexPatternSetId
- The identifier for the RegexPatternSet
. You use RegexPatternSetId
to get
information about a RegexPatternSet
, update a RegexPatternSet
, remove a
RegexPatternSet
from a RegexMatchSet
, and delete a RegexPatternSet
from AWS WAF.
RegexMatchSetId
is returned by CreateRegexPatternSet and by
ListRegexPatternSets.
public String getRegexPatternSetId()
The identifier for the RegexPatternSet
. You use RegexPatternSetId
to get information
about a RegexPatternSet
, update a RegexPatternSet
, remove a
RegexPatternSet
from a RegexMatchSet
, and delete a RegexPatternSet
from
AWS WAF.
RegexMatchSetId
is returned by CreateRegexPatternSet and by ListRegexPatternSets.
RegexPatternSet
. You use RegexPatternSetId
to get
information about a RegexPatternSet
, update a RegexPatternSet
, remove a
RegexPatternSet
from a RegexMatchSet
, and delete a RegexPatternSet
from AWS WAF.
RegexMatchSetId
is returned by CreateRegexPatternSet and by
ListRegexPatternSets.
public RegexPatternSet withRegexPatternSetId(String regexPatternSetId)
The identifier for the RegexPatternSet
. You use RegexPatternSetId
to get information
about a RegexPatternSet
, update a RegexPatternSet
, remove a
RegexPatternSet
from a RegexMatchSet
, and delete a RegexPatternSet
from
AWS WAF.
RegexMatchSetId
is returned by CreateRegexPatternSet and by ListRegexPatternSets.
regexPatternSetId
- The identifier for the RegexPatternSet
. You use RegexPatternSetId
to get
information about a RegexPatternSet
, update a RegexPatternSet
, remove a
RegexPatternSet
from a RegexMatchSet
, and delete a RegexPatternSet
from AWS WAF.
RegexMatchSetId
is returned by CreateRegexPatternSet and by
ListRegexPatternSets.
public void setName(String name)
A friendly name or description of the RegexPatternSet. You can't change Name
after you create
a RegexPatternSet
.
name
- A friendly name or description of the RegexPatternSet. You can't change Name
after you
create a RegexPatternSet
.public String getName()
A friendly name or description of the RegexPatternSet. You can't change Name
after you create
a RegexPatternSet
.
Name
after
you create a RegexPatternSet
.public RegexPatternSet withName(String name)
A friendly name or description of the RegexPatternSet. You can't change Name
after you create
a RegexPatternSet
.
name
- A friendly name or description of the RegexPatternSet. You can't change Name
after you
create a RegexPatternSet
.public List<String> getRegexPatternStrings()
Specifies the regular expression (regex) patterns that you want AWS WAF to search for, such as
B[a@]dB[o0]t
.
B[a@]dB[o0]t
.public void setRegexPatternStrings(Collection<String> regexPatternStrings)
Specifies the regular expression (regex) patterns that you want AWS WAF to search for, such as
B[a@]dB[o0]t
.
regexPatternStrings
- Specifies the regular expression (regex) patterns that you want AWS WAF to search for, such as
B[a@]dB[o0]t
.public RegexPatternSet withRegexPatternStrings(String... regexPatternStrings)
Specifies the regular expression (regex) patterns that you want AWS WAF to search for, such as
B[a@]dB[o0]t
.
NOTE: This method appends the values to the existing list (if any). Use
setRegexPatternStrings(java.util.Collection)
or withRegexPatternStrings(java.util.Collection)
if you want to override the existing values.
regexPatternStrings
- Specifies the regular expression (regex) patterns that you want AWS WAF to search for, such as
B[a@]dB[o0]t
.public RegexPatternSet withRegexPatternStrings(Collection<String> regexPatternStrings)
Specifies the regular expression (regex) patterns that you want AWS WAF to search for, such as
B[a@]dB[o0]t
.
regexPatternStrings
- Specifies the regular expression (regex) patterns that you want AWS WAF to search for, such as
B[a@]dB[o0]t
.public String toString()
toString
in class Object
Object.toString()
public RegexPatternSet clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.