Class SampledHTTPRequest
- All Implemented Interfaces:
Serializable
,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
.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The action for theRule
that the request matched:ALLOW
,BLOCK
, orCOUNT
.A complex type that contains detailed information about the request.The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).A value that indicates how one result in the response relates proportionally to other results in the response.int
hashCode()
void
The action for theRule
that the request matched:ALLOW
,BLOCK
, orCOUNT
.void
setRequest
(HTTPRequest request) A complex type that contains detailed information about the request.void
setTimestamp
(Date timestamp) The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).void
A value that indicates how one result in the response relates proportionally to other results in the response.toString()
Returns a string representation of this object; useful for testing and debugging.withAction
(String action) The action for theRule
that the request matched:ALLOW
,BLOCK
, orCOUNT
.withRequest
(HTTPRequest request) A complex type that contains detailed information about the request.withTimestamp
(Date timestamp) The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).withWeight
(Long weight) A value that indicates how one result in the response relates proportionally to other results in the response.
-
Constructor Details
-
SampledHTTPRequest
public SampledHTTPRequest()
-
-
Method Details
-
setRequest
A complex type that contains detailed information about the request.
- Parameters:
request
- A complex type that contains detailed information about the request.
-
getRequest
A complex type that contains detailed information about the request.
- Returns:
- A complex type that contains detailed information about the request.
-
withRequest
A complex type that contains detailed information about the request.
- Parameters:
request
- A complex type that contains detailed information about the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setWeight
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 of1
.- Parameters:
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 of2
represents roughly twice as many CloudFront web requests as a result that has a weight of1
.
-
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 of1
.- Returns:
- 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 of1
.
-
withWeight
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 of1
.- Parameters:
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 of2
represents roughly twice as many CloudFront web requests as a result that has a weight of1
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTimestamp
The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).
- Parameters:
timestamp
- The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).
-
getTimestamp
The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).
- Returns:
- The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).
-
withTimestamp
The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).
- Parameters:
timestamp
- The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAction
The action for the
Rule
that the request matched:ALLOW
,BLOCK
, orCOUNT
.- Parameters:
action
- The action for theRule
that the request matched:ALLOW
,BLOCK
, orCOUNT
.
-
getAction
The action for the
Rule
that the request matched:ALLOW
,BLOCK
, orCOUNT
.- Returns:
- The action for the
Rule
that the request matched:ALLOW
,BLOCK
, orCOUNT
.
-
withAction
The action for the
Rule
that the request matched:ALLOW
,BLOCK
, orCOUNT
.- Parameters:
action
- The action for theRule
that the request matched:ALLOW
,BLOCK
, orCOUNT
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-