@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SampledHTTPRequest extends Object implements Serializable, Cloneable, StructuredPojo
This is the latest version of AWS WAF, named AWS WAFV2, released in November, 2019. For information, including how to migrate your AWS WAF resources from the prior release, see the AWS WAF Developer Guide.
Represents a single sampled web request. The response from GetSampledRequests includes a
SampledHTTPRequests
complex type that appears as SampledRequests
in the response syntax.
SampledHTTPRequests
contains an array of SampledHTTPRequest
objects.
Constructor and Description |
---|
SampledHTTPRequest() |
Modifier and Type | Method and Description |
---|---|
SampledHTTPRequest |
clone() |
boolean |
equals(Object obj) |
String |
getAction()
The action for the
Rule that the request matched: ALLOW , BLOCK , or
COUNT . |
HTTPRequest |
getRequest()
A complex type that contains detailed information about the request.
|
String |
getRuleNameWithinRuleGroup()
The name of the
Rule that the request matched. |
Date |
getTimestamp()
The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).
|
Long |
getWeight()
A value that indicates how one result in the response relates proportionally to other results in the response.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAction(String action)
The action for the
Rule that the request matched: ALLOW , BLOCK , or
COUNT . |
void |
setRequest(HTTPRequest request)
A complex type that contains detailed information about the request.
|
void |
setRuleNameWithinRuleGroup(String ruleNameWithinRuleGroup)
The name of the
Rule that the request matched. |
void |
setTimestamp(Date timestamp)
The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).
|
void |
setWeight(Long weight)
A value that indicates how one result in the response relates proportionally to other results in the response.
|
String |
toString()
Returns a string representation of this object.
|
SampledHTTPRequest |
withAction(String action)
The action for the
Rule that the request matched: ALLOW , BLOCK , or
COUNT . |
SampledHTTPRequest |
withRequest(HTTPRequest request)
A complex type that contains detailed information about the request.
|
SampledHTTPRequest |
withRuleNameWithinRuleGroup(String ruleNameWithinRuleGroup)
The name of the
Rule that the request matched. |
SampledHTTPRequest |
withTimestamp(Date timestamp)
The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).
|
SampledHTTPRequest |
withWeight(Long weight)
A value that indicates how one result in the response relates proportionally to other results in the response.
|
public void setRequest(HTTPRequest request)
A complex type that contains detailed information about the request.
request
- A complex type that contains detailed information about the request.public HTTPRequest getRequest()
A complex type that contains detailed information about the request.
public SampledHTTPRequest withRequest(HTTPRequest request)
A complex type that contains detailed information about the request.
request
- A complex type that contains detailed information about the request.public void setWeight(Long weight)
A value that indicates how one result in the response relates proportionally to other results in the response.
For example, a result that has a weight of 2
represents roughly twice as many web requests as a
result that has a weight of 1
.
weight
- A value that indicates how one result in the response relates proportionally to other results in the
response. For example, a result that has a weight of 2
represents roughly twice as many web
requests as a result that has a weight of 1
.public Long getWeight()
A value that indicates how one result in the response relates proportionally to other results in the response.
For example, a result that has a weight of 2
represents roughly twice as many web requests as a
result that has a weight of 1
.
2
represents roughly twice as many web
requests as a result that has a weight of 1
.public SampledHTTPRequest withWeight(Long weight)
A value that indicates how one result in the response relates proportionally to other results in the response.
For example, a result that has a weight of 2
represents roughly twice as many web requests as a
result that has a weight of 1
.
weight
- A value that indicates how one result in the response relates proportionally to other results in the
response. For example, a result that has a weight of 2
represents roughly twice as many web
requests as a result that has a weight of 1
.public void setTimestamp(Date timestamp)
The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).
timestamp
- The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).public Date getTimestamp()
The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).
public SampledHTTPRequest withTimestamp(Date timestamp)
The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).
timestamp
- The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).public void setAction(String action)
The action for the Rule
that the request matched: ALLOW
, BLOCK
, or
COUNT
.
action
- The action for the Rule
that the request matched: ALLOW
, BLOCK
, or
COUNT
.public String getAction()
The action for the Rule
that the request matched: ALLOW
, BLOCK
, or
COUNT
.
Rule
that the request matched: ALLOW
, BLOCK
, or
COUNT
.public SampledHTTPRequest withAction(String action)
The action for the Rule
that the request matched: ALLOW
, BLOCK
, or
COUNT
.
action
- The action for the Rule
that the request matched: ALLOW
, BLOCK
, or
COUNT
.public void setRuleNameWithinRuleGroup(String ruleNameWithinRuleGroup)
The name of the Rule
that the request matched. For managed rule groups, the format for this name is
<vendor name>#<managed rule group name>#<rule name>
. For your own rule groups, the
format for this name is <rule group name>#<rule name>
. If the rule is not in a rule
group, this field is absent.
ruleNameWithinRuleGroup
- The name of the Rule
that the request matched. For managed rule groups, the format for this
name is <vendor name>#<managed rule group name>#<rule name>
. For your own
rule groups, the format for this name is <rule group name>#<rule name>
. If the
rule is not in a rule group, this field is absent.public String getRuleNameWithinRuleGroup()
The name of the Rule
that the request matched. For managed rule groups, the format for this name is
<vendor name>#<managed rule group name>#<rule name>
. For your own rule groups, the
format for this name is <rule group name>#<rule name>
. If the rule is not in a rule
group, this field is absent.
Rule
that the request matched. For managed rule groups, the format for this
name is <vendor name>#<managed rule group name>#<rule name>
. For your own
rule groups, the format for this name is <rule group name>#<rule name>
. If the
rule is not in a rule group, this field is absent.public SampledHTTPRequest withRuleNameWithinRuleGroup(String ruleNameWithinRuleGroup)
The name of the Rule
that the request matched. For managed rule groups, the format for this name is
<vendor name>#<managed rule group name>#<rule name>
. For your own rule groups, the
format for this name is <rule group name>#<rule name>
. If the rule is not in a rule
group, this field is absent.
ruleNameWithinRuleGroup
- The name of the Rule
that the request matched. For managed rule groups, the format for this
name is <vendor name>#<managed rule group name>#<rule name>
. For your own
rule groups, the format for this name is <rule group name>#<rule name>
. If the
rule is not in a rule group, this field is absent.public String toString()
toString
in class Object
Object.toString()
public SampledHTTPRequest clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.