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 GetSampledRequestsRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
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.String
getRuleId()
RuleId
is one of two values:TimeWindow
getTimeWindow()
The start date and time and the end date and time of the range for which you wantGetSampledRequests
to return a sample of requests.String
getWebAclId()
TheWebACLId
of theWebACL
for which you wantGetSampledRequests
to return a sample of requests.int
hashCode()
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.void
setRuleId(String ruleId)
RuleId
is one of two values:void
setTimeWindow(TimeWindow timeWindow)
The start date and time and the end date and time of the range for which you wantGetSampledRequests
to return a sample of requests.void
setWebAclId(String webAclId)
TheWebACLId
of theWebACL
for which you wantGetSampledRequests
to return a sample of requests.String
toString()
Returns a string representation of this object; useful for testing and debugging.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.GetSampledRequestsRequest
withRuleId(String ruleId)
RuleId
is one of two values:GetSampledRequestsRequest
withTimeWindow(TimeWindow timeWindow)
The start date and time and the end date and time of the range for which you wantGetSampledRequests
to return a sample of requests.GetSampledRequestsRequest
withWebAclId(String webAclId)
TheWebACLId
of theWebACL
for which you wantGetSampledRequests
to 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
WebACLId
of theWebACL
for which you wantGetSampledRequests
to return a sample of requests.- Parameters:
webAclId
- TheWebACLId
of theWebACL
for which you wantGetSampledRequests
to return a sample of requests.
-
getWebAclId
public String getWebAclId()
The
WebACLId
of theWebACL
for which you wantGetSampledRequests
to return a sample of requests.- Returns:
- The
WebACLId
of theWebACL
for which you wantGetSampledRequests
to return a sample of requests.
-
withWebAclId
public GetSampledRequestsRequest withWebAclId(String webAclId)
The
WebACLId
of theWebACL
for which you wantGetSampledRequests
to return a sample of requests.- Parameters:
webAclId
- TheWebACLId
of theWebACL
for which you wantGetSampledRequests
to 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)
RuleId
is one of two values:- The
RuleId
of theRule
for which you wantGetSampledRequests
to return a sample of requests. Default_Action
, which causesGetSampledRequests
to 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
RuleId
of theRule
for which you wantGetSampledRequests
to return a sample of requests. Default_Action
, which causesGetSampledRequests
to return a sample of the requests that didn't match any of the rules in the specifiedWebACL
.
- The
- The
-
getRuleId
public String getRuleId()
RuleId
is one of two values:- The
RuleId
of theRule
for which you wantGetSampledRequests
to return a sample of requests. Default_Action
, which causesGetSampledRequests
to 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
RuleId
of theRule
for which you wantGetSampledRequests
to return a sample of requests. Default_Action
, which causesGetSampledRequests
to 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)
RuleId
is one of two values:- The
RuleId
of theRule
for which you wantGetSampledRequests
to return a sample of requests. Default_Action
, which causesGetSampledRequests
to 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
RuleId
of theRule
for which you wantGetSampledRequests
to return a sample of requests. Default_Action
, which causesGetSampledRequests
to 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
GetSampledRequests
to 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 wantGetSampledRequests
to 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
GetSampledRequests
to 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
GetSampledRequests
to 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
GetSampledRequests
to 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 wantGetSampledRequests
to 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
,GetSampledRequests
returns 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
,GetSampledRequests
returns 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
,GetSampledRequests
returns 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
,GetSampledRequests
returns 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
,GetSampledRequests
returns 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
,GetSampledRequests
returns 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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public GetSampledRequestsRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-