Class GetSampledRequestsRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.waf.model.GetSampledRequestsRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class GetSampledRequestsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description GetSampledRequestsRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetSampledRequestsRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)LonggetMaxItems()The number of requests that you want AWS WAF to return from among the first 5,000 requests that your AWS resource received during the time range.StringgetRuleId()RuleIdis one of two values:TimeWindowgetTimeWindow()The start date and time and the end date and time of the range for which you wantGetSampledRequeststo return a sample of requests.StringgetWebAclId()TheWebACLIdof theWebACLfor which you wantGetSampledRequeststo return a sample of requests.inthashCode()voidsetMaxItems(Long maxItems)The number of requests that you want AWS WAF to return from among the first 5,000 requests that your AWS resource received during the time range.voidsetRuleId(String ruleId)RuleIdis one of two values:voidsetTimeWindow(TimeWindow timeWindow)The start date and time and the end date and time of the range for which you wantGetSampledRequeststo return a sample of requests.voidsetWebAclId(String webAclId)TheWebACLIdof theWebACLfor which you wantGetSampledRequeststo return a sample of requests.StringtoString()Returns a string representation of this object; useful for testing and debugging.GetSampledRequestsRequestwithMaxItems(Long maxItems)The number of requests that you want AWS WAF to return from among the first 5,000 requests that your AWS resource received during the time range.GetSampledRequestsRequestwithRuleId(String ruleId)RuleIdis one of two values:GetSampledRequestsRequestwithTimeWindow(TimeWindow timeWindow)The start date and time and the end date and time of the range for which you wantGetSampledRequeststo return a sample of requests.GetSampledRequestsRequestwithWebAclId(String webAclId)TheWebACLIdof theWebACLfor which you wantGetSampledRequeststo return a sample of requests.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setWebAclId
public void setWebAclId(String webAclId)
The
WebACLIdof theWebACLfor which you wantGetSampledRequeststo return a sample of requests.- Parameters:
webAclId- TheWebACLIdof theWebACLfor which you wantGetSampledRequeststo return a sample of requests.
-
getWebAclId
public String getWebAclId()
The
WebACLIdof theWebACLfor which you wantGetSampledRequeststo return a sample of requests.- Returns:
- The
WebACLIdof theWebACLfor which you wantGetSampledRequeststo return a sample of requests.
-
withWebAclId
public GetSampledRequestsRequest withWebAclId(String webAclId)
The
WebACLIdof theWebACLfor which you wantGetSampledRequeststo return a sample of requests.- Parameters:
webAclId- TheWebACLIdof theWebACLfor which you wantGetSampledRequeststo return a sample of requests.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRuleId
public void setRuleId(String ruleId)
RuleIdis one of two values:- The
RuleIdof theRulefor which you wantGetSampledRequeststo return a sample of requests. Default_Action, which causesGetSampledRequeststo return a sample of the requests that didn't match any of the rules in the specifiedWebACL.
- Parameters:
ruleId- RuleId is one of two values:- The
RuleIdof theRulefor which you wantGetSampledRequeststo return a sample of requests. Default_Action, which causesGetSampledRequeststo return a sample of the requests that didn't match any of the rules in the specifiedWebACL.
- The
- The
-
getRuleId
public String getRuleId()
RuleIdis one of two values:- The
RuleIdof theRulefor which you wantGetSampledRequeststo return a sample of requests. Default_Action, which causesGetSampledRequeststo return a sample of the requests that didn't match any of the rules in the specifiedWebACL.
- Returns:
- RuleId is one of two values:
- The
RuleIdof theRulefor which you wantGetSampledRequeststo return a sample of requests. Default_Action, which causesGetSampledRequeststo return a sample of the requests that didn't match any of the rules in the specifiedWebACL.
- The
- The
-
withRuleId
public GetSampledRequestsRequest withRuleId(String ruleId)
RuleIdis one of two values:- The
RuleIdof theRulefor which you wantGetSampledRequeststo return a sample of requests. Default_Action, which causesGetSampledRequeststo return a sample of the requests that didn't match any of the rules in the specifiedWebACL.
- Parameters:
ruleId- RuleId is one of two values:- The
RuleIdof theRulefor which you wantGetSampledRequeststo return a sample of requests. Default_Action, which causesGetSampledRequeststo return a sample of the requests that didn't match any of the rules in the specifiedWebACL.
- The
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- The
-
setTimeWindow
public void setTimeWindow(TimeWindow timeWindow)
The start date and time and the end date and time of the range for which you want
GetSampledRequeststo return a sample of requests. Specify the date and time in Unix time format (in seconds). You can specify any time range in the previous three hours.- Parameters:
timeWindow- The start date and time and the end date and time of the range for which you wantGetSampledRequeststo return a sample of requests. Specify the date and time in Unix time format (in seconds). You can specify any time range in the previous three hours.
-
getTimeWindow
public TimeWindow getTimeWindow()
The start date and time and the end date and time of the range for which you want
GetSampledRequeststo return a sample of requests. Specify the date and time in Unix time format (in seconds). You can specify any time range in the previous three hours.- Returns:
- The start date and time and the end date and time of the range
for which you want
GetSampledRequeststo return a sample of requests. Specify the date and time in Unix time format (in seconds). You can specify any time range in the previous three hours.
-
withTimeWindow
public GetSampledRequestsRequest withTimeWindow(TimeWindow timeWindow)
The start date and time and the end date and time of the range for which you want
GetSampledRequeststo return a sample of requests. Specify the date and time in Unix time format (in seconds). You can specify any time range in the previous three hours.- Parameters:
timeWindow- The start date and time and the end date and time of the range for which you wantGetSampledRequeststo return a sample of requests. Specify the date and time in Unix time format (in seconds). You can specify any time range in the previous three hours.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMaxItems
public void setMaxItems(Long maxItems)
The number of requests that you want AWS WAF to return from among the first 5,000 requests that your AWS resource received during the time range. If your resource received fewer requests than the value of
MaxItems,GetSampledRequestsreturns information about all of them.- Parameters:
maxItems- The number of requests that you want AWS WAF to return from among the first 5,000 requests that your AWS resource received during the time range. If your resource received fewer requests than the value ofMaxItems,GetSampledRequestsreturns information about all of them.
-
getMaxItems
public Long getMaxItems()
The number of requests that you want AWS WAF to return from among the first 5,000 requests that your AWS resource received during the time range. If your resource received fewer requests than the value of
MaxItems,GetSampledRequestsreturns information about all of them.- Returns:
- The number of requests that you want AWS WAF to return from among
the first 5,000 requests that your AWS resource received during
the time range. If your resource received fewer requests than the
value of
MaxItems,GetSampledRequestsreturns information about all of them.
-
withMaxItems
public GetSampledRequestsRequest withMaxItems(Long maxItems)
The number of requests that you want AWS WAF to return from among the first 5,000 requests that your AWS resource received during the time range. If your resource received fewer requests than the value of
MaxItems,GetSampledRequestsreturns information about all of them.- Parameters:
maxItems- The number of requests that you want AWS WAF to return from among the first 5,000 requests that your AWS resource received during the time range. If your resource received fewer requests than the value ofMaxItems,GetSampledRequestsreturns information about all of them.- 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 GetSampledRequestsRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-