@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SampledHTTPRequest extends Object implements Serializable, Cloneable, StructuredPojo
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
.
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.
|
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 |
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; useful for testing and debugging.
|
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 |
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. 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 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(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(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 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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.