public class SampledHTTPRequest
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The response from a GetSampledRequests request includes a
SampledHTTPRequests
complex type that appears as
SampledRequests
in the response syntax.
SampledHTTPRequests
contains one SampledHTTPRequest
object for each web request that is returned by
GetSampledRequests
.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
action
The action for the
Rule that the request matched:
ALLOW , BLOCK , or COUNT . |
private HTTPRequest |
request
A complex type that contains detailed information about the request.
|
private java.util.Date |
timestamp
The time at which AWS WAF received the request from your AWS resource, in
Unix time format (in seconds).
|
private java.lang.Long |
weight
A value that indicates how one result in the response relates
proportionally to other results in the response.
|
Constructor and Description |
---|
SampledHTTPRequest() |
Modifier and Type | Method and Description |
---|---|
SampledHTTPRequest |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.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.
|
java.util.Date |
getTimestamp()
The time at which AWS WAF received the request from your AWS resource, in
Unix time format (in seconds).
|
java.lang.Long |
getWeight()
A value that indicates how one result in the response relates
proportionally to other results in the response.
|
int |
hashCode() |
void |
setAction(java.lang.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 |
setTimestamp(java.util.Date timestamp)
The time at which AWS WAF received the request from your AWS resource, in
Unix time format (in seconds).
|
void |
setWeight(java.lang.Long weight)
A value that indicates how one result in the response relates
proportionally to other results in the response.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SampledHTTPRequest |
withAction(java.lang.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 |
withTimestamp(java.util.Date timestamp)
The time at which AWS WAF received the request from your AWS resource, in
Unix time format (in seconds).
|
SampledHTTPRequest |
withWeight(java.lang.Long weight)
A value that indicates how one result in the response relates
proportionally to other results in the response.
|
private HTTPRequest request
A complex type that contains detailed information about the request.
private java.lang.Long weight
A value that indicates how one result in the response relates
proportionally to other results in the response. A result that has a
weight of 2
represents roughly twice as many CloudFront web
requests as a result that has a weight of 1
.
private java.util.Date timestamp
The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).
private java.lang.String action
The action for the Rule
that the request matched:
ALLOW
, BLOCK
, or COUNT
.
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(java.lang.Long weight)
A value that indicates how one result in the response relates
proportionally to other results in the response. A result that has a
weight of 2
represents roughly twice as many CloudFront 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. A result that has
a weight of 2
represents roughly twice as many
CloudFront web requests as a result that has a weight of
1
.public java.lang.Long getWeight()
A value that indicates how one result in the response relates
proportionally to other results in the response. A result that has a
weight of 2
represents roughly twice as many CloudFront web
requests as a result that has a weight of 1
.
2
represents roughly twice as many
CloudFront web requests as a result that has a weight of
1
.public SampledHTTPRequest withWeight(java.lang.Long weight)
A value that indicates how one result in the response relates
proportionally to other results in the response. A result that has a
weight of 2
represents roughly twice as many CloudFront 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. A result that has
a weight of 2
represents roughly twice as many
CloudFront web requests as a result that has a weight of
1
.public void setTimestamp(java.util.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 java.util.Date getTimestamp()
The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).
public SampledHTTPRequest withTimestamp(java.util.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(java.lang.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 java.lang.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(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public SampledHTTPRequest clone()
clone
in class java.lang.Object