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
SampledHTTPRequestscomplex type that appears asSampledRequestsin the response syntax.SampledHTTPRequestscontains oneSampledHTTPRequestobject 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 SampledHTTPRequestclone()booleanequals(Object obj)StringgetAction()The action for theRulethat the request matched:ALLOW,BLOCK, orCOUNT.HTTPRequestgetRequest()A complex type that contains detailed information about the request.DategetTimestamp()The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).LonggetWeight()A value that indicates how one result in the response relates proportionally to other results in the response.inthashCode()voidsetAction(String action)The action for theRulethat the request matched:ALLOW,BLOCK, orCOUNT.voidsetRequest(HTTPRequest request)A complex type that contains detailed information about the request.voidsetTimestamp(Date timestamp)The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).voidsetWeight(Long weight)A value that indicates how one result in the response relates proportionally to other results in the response.StringtoString()Returns a string representation of this object; useful for testing and debugging.SampledHTTPRequestwithAction(String action)The action for theRulethat the request matched:ALLOW,BLOCK, orCOUNT.SampledHTTPRequestwithRequest(HTTPRequest request)A complex type that contains detailed information about the request.SampledHTTPRequestwithTimestamp(Date timestamp)The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).SampledHTTPRequestwithWeight(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
2represents 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 of2represents 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
2represents 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
2represents 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
2represents 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 of2represents 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
Rulethat the request matched:ALLOW,BLOCK, orCOUNT.- Parameters:
action- The action for theRulethat the request matched:ALLOW,BLOCK, orCOUNT.
-
getAction
public String getAction()
The action for the
Rulethat the request matched:ALLOW,BLOCK, orCOUNT.- Returns:
- The action for the
Rulethat the request matched:ALLOW,BLOCK, orCOUNT.
-
withAction
public SampledHTTPRequest withAction(String action)
The action for the
Rulethat the request matched:ALLOW,BLOCK, orCOUNT.- Parameters:
action- The action for theRulethat 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SampledHTTPRequest clone()
-
-