@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RegexMatchStatement extends Object implements Serializable, Cloneable, StructuredPojo
A rule statement used to search web request components for a match against a single regular expression.
Constructor and Description |
---|
RegexMatchStatement() |
Modifier and Type | Method and Description |
---|---|
RegexMatchStatement |
clone() |
boolean |
equals(Object obj) |
FieldToMatch |
getFieldToMatch()
The part of a web request that you want WAF to inspect.
|
String |
getRegexString()
The string representing the regular expression.
|
List<TextTransformation> |
getTextTransformations()
Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to
bypass detection.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setFieldToMatch(FieldToMatch fieldToMatch)
The part of a web request that you want WAF to inspect.
|
void |
setRegexString(String regexString)
The string representing the regular expression.
|
void |
setTextTransformations(Collection<TextTransformation> textTransformations)
Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to
bypass detection.
|
String |
toString()
Returns a string representation of this object.
|
RegexMatchStatement |
withFieldToMatch(FieldToMatch fieldToMatch)
The part of a web request that you want WAF to inspect.
|
RegexMatchStatement |
withRegexString(String regexString)
The string representing the regular expression.
|
RegexMatchStatement |
withTextTransformations(Collection<TextTransformation> textTransformations)
Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to
bypass detection.
|
RegexMatchStatement |
withTextTransformations(TextTransformation... textTransformations)
Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to
bypass detection.
|
public void setRegexString(String regexString)
The string representing the regular expression.
regexString
- The string representing the regular expression.public String getRegexString()
The string representing the regular expression.
public RegexMatchStatement withRegexString(String regexString)
The string representing the regular expression.
regexString
- The string representing the regular expression.public void setFieldToMatch(FieldToMatch fieldToMatch)
The part of a web request that you want WAF to inspect. For more information, see FieldToMatch.
fieldToMatch
- The part of a web request that you want WAF to inspect. For more information, see FieldToMatch.public FieldToMatch getFieldToMatch()
The part of a web request that you want WAF to inspect. For more information, see FieldToMatch.
public RegexMatchStatement withFieldToMatch(FieldToMatch fieldToMatch)
The part of a web request that you want WAF to inspect. For more information, see FieldToMatch.
fieldToMatch
- The part of a web request that you want WAF to inspect. For more information, see FieldToMatch.public List<TextTransformation> getTextTransformations()
Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to
bypass detection. If you specify one or more transformations in a rule statement, WAF performs all
transformations on the content of the request component identified by FieldToMatch
, starting from
the lowest priority setting, before inspecting the content for a match.
FieldToMatch
,
starting from the lowest priority setting, before inspecting the content for a match.public void setTextTransformations(Collection<TextTransformation> textTransformations)
Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to
bypass detection. If you specify one or more transformations in a rule statement, WAF performs all
transformations on the content of the request component identified by FieldToMatch
, starting from
the lowest priority setting, before inspecting the content for a match.
textTransformations
- Text transformations eliminate some of the unusual formatting that attackers use in web requests in an
effort to bypass detection. If you specify one or more transformations in a rule statement, WAF performs
all transformations on the content of the request component identified by FieldToMatch
,
starting from the lowest priority setting, before inspecting the content for a match.public RegexMatchStatement withTextTransformations(TextTransformation... textTransformations)
Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to
bypass detection. If you specify one or more transformations in a rule statement, WAF performs all
transformations on the content of the request component identified by FieldToMatch
, starting from
the lowest priority setting, before inspecting the content for a match.
NOTE: This method appends the values to the existing list (if any). Use
setTextTransformations(java.util.Collection)
or withTextTransformations(java.util.Collection)
if you want to override the existing values.
textTransformations
- Text transformations eliminate some of the unusual formatting that attackers use in web requests in an
effort to bypass detection. If you specify one or more transformations in a rule statement, WAF performs
all transformations on the content of the request component identified by FieldToMatch
,
starting from the lowest priority setting, before inspecting the content for a match.public RegexMatchStatement withTextTransformations(Collection<TextTransformation> textTransformations)
Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to
bypass detection. If you specify one or more transformations in a rule statement, WAF performs all
transformations on the content of the request component identified by FieldToMatch
, starting from
the lowest priority setting, before inspecting the content for a match.
textTransformations
- Text transformations eliminate some of the unusual formatting that attackers use in web requests in an
effort to bypass detection. If you specify one or more transformations in a rule statement, WAF performs
all transformations on the content of the request component identified by FieldToMatch
,
starting from the lowest priority setting, before inspecting the content for a match.public String toString()
toString
in class Object
Object.toString()
public RegexMatchStatement clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.