Class SampledHTTPRequest
- java.lang.Object
-
- com.amazonaws.services.waf.model.SampledHTTPRequest
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class SampledHTTPRequest extends Object implements Serializable, Cloneable
The response from a GetSampledRequests request includes a
SampledHTTPRequests
complex type that appears asSampledRequests
in the response syntax.SampledHTTPRequests
contains oneSampledHTTPRequest
object for each web request that is returned byGetSampledRequests
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SampledHTTPRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SampledHTTPRequest
clone()
boolean
equals(Object obj)
String
getAction()
The action for theRule
that the request matched:ALLOW
,BLOCK
, orCOUNT
.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
setAction(String action)
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
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 theRule
that the request matched:ALLOW
,BLOCK
, orCOUNT
.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.
-
-
-
Method Detail
-
setRequest
public void setRequest(HTTPRequest request)
A complex type that contains detailed information about the request.
- Parameters:
request
- A complex type that contains detailed information about the request.
-
getRequest
public HTTPRequest getRequest()
A complex type that contains detailed information about the request.
- Returns:
- A complex type that contains detailed information about the request.
-
withRequest
public SampledHTTPRequest withRequest(HTTPRequest request)
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
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 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
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 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
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 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
public void setTimestamp(Date timestamp)
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
public Date 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
public SampledHTTPRequest withTimestamp(Date timestamp)
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
public void setAction(String action)
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
public String 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
public SampledHTTPRequest withAction(String action)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SampledHTTPRequest clone()
-
-