Class GetSampledRequestsResult
- java.lang.Object
-
- com.amazonaws.services.waf.model.GetSampledRequestsResult
-
- All Implemented Interfaces:
Serializable,Cloneable
public class GetSampledRequestsResult extends Object implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GetSampledRequestsResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetSampledRequestsResultclone()booleanequals(Object obj)LonggetPopulationSize()The total number of requests from whichGetSampledRequestsgot a sample ofMaxItemsrequests.List<SampledHTTPRequest>getSampledRequests()A complex type that contains detailed information about each of the requests in the sample.TimeWindowgetTimeWindow()Usually,TimeWindowis the time range that you specified in theGetSampledRequestsrequest.inthashCode()voidsetPopulationSize(Long populationSize)The total number of requests from whichGetSampledRequestsgot a sample ofMaxItemsrequests.voidsetSampledRequests(Collection<SampledHTTPRequest> sampledRequests)A complex type that contains detailed information about each of the requests in the sample.voidsetTimeWindow(TimeWindow timeWindow)Usually,TimeWindowis the time range that you specified in theGetSampledRequestsrequest.StringtoString()Returns a string representation of this object; useful for testing and debugging.GetSampledRequestsResultwithPopulationSize(Long populationSize)The total number of requests from whichGetSampledRequestsgot a sample ofMaxItemsrequests.GetSampledRequestsResultwithSampledRequests(SampledHTTPRequest... sampledRequests)A complex type that contains detailed information about each of the requests in the sample.GetSampledRequestsResultwithSampledRequests(Collection<SampledHTTPRequest> sampledRequests)A complex type that contains detailed information about each of the requests in the sample.GetSampledRequestsResultwithTimeWindow(TimeWindow timeWindow)Usually,TimeWindowis the time range that you specified in theGetSampledRequestsrequest.
-
-
-
Method Detail
-
getSampledRequests
public List<SampledHTTPRequest> getSampledRequests()
A complex type that contains detailed information about each of the requests in the sample.
- Returns:
- A complex type that contains detailed information about each of the requests in the sample.
-
setSampledRequests
public void setSampledRequests(Collection<SampledHTTPRequest> sampledRequests)
A complex type that contains detailed information about each of the requests in the sample.
- Parameters:
sampledRequests- A complex type that contains detailed information about each of the requests in the sample.
-
withSampledRequests
public GetSampledRequestsResult withSampledRequests(SampledHTTPRequest... sampledRequests)
A complex type that contains detailed information about each of the requests in the sample.
NOTE: This method appends the values to the existing list (if any). Use
setSampledRequests(java.util.Collection)orwithSampledRequests(java.util.Collection)if you want to override the existing values.- Parameters:
sampledRequests- A complex type that contains detailed information about each of the requests in the sample.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withSampledRequests
public GetSampledRequestsResult withSampledRequests(Collection<SampledHTTPRequest> sampledRequests)
A complex type that contains detailed information about each of the requests in the sample.
- Parameters:
sampledRequests- A complex type that contains detailed information about each of the requests in the sample.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPopulationSize
public void setPopulationSize(Long populationSize)
The total number of requests from which
GetSampledRequestsgot a sample ofMaxItemsrequests. IfPopulationSizeis less thanMaxItems, the sample includes every request that your AWS resource received during the specified time range.- Parameters:
populationSize- The total number of requests from whichGetSampledRequestsgot a sample ofMaxItemsrequests. IfPopulationSizeis less thanMaxItems, the sample includes every request that your AWS resource received during the specified time range.
-
getPopulationSize
public Long getPopulationSize()
The total number of requests from which
GetSampledRequestsgot a sample ofMaxItemsrequests. IfPopulationSizeis less thanMaxItems, the sample includes every request that your AWS resource received during the specified time range.- Returns:
- The total number of requests from which
GetSampledRequestsgot a sample ofMaxItemsrequests. IfPopulationSizeis less thanMaxItems, the sample includes every request that your AWS resource received during the specified time range.
-
withPopulationSize
public GetSampledRequestsResult withPopulationSize(Long populationSize)
The total number of requests from which
GetSampledRequestsgot a sample ofMaxItemsrequests. IfPopulationSizeis less thanMaxItems, the sample includes every request that your AWS resource received during the specified time range.- Parameters:
populationSize- The total number of requests from whichGetSampledRequestsgot a sample ofMaxItemsrequests. IfPopulationSizeis less thanMaxItems, the sample includes every request that your AWS resource received during the specified time range.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTimeWindow
public void setTimeWindow(TimeWindow timeWindow)
Usually,
TimeWindowis the time range that you specified in theGetSampledRequestsrequest. However, if your AWS resource received more than 5,000 requests during the time range that you specified in the request,GetSampledRequestsreturns the time range for the first 5,000 requests.- Parameters:
timeWindow- Usually,TimeWindowis the time range that you specified in theGetSampledRequestsrequest. However, if your AWS resource received more than 5,000 requests during the time range that you specified in the request,GetSampledRequestsreturns the time range for the first 5,000 requests.
-
getTimeWindow
public TimeWindow getTimeWindow()
Usually,
TimeWindowis the time range that you specified in theGetSampledRequestsrequest. However, if your AWS resource received more than 5,000 requests during the time range that you specified in the request,GetSampledRequestsreturns the time range for the first 5,000 requests.- Returns:
- Usually,
TimeWindowis the time range that you specified in theGetSampledRequestsrequest. However, if your AWS resource received more than 5,000 requests during the time range that you specified in the request,GetSampledRequestsreturns the time range for the first 5,000 requests.
-
withTimeWindow
public GetSampledRequestsResult withTimeWindow(TimeWindow timeWindow)
Usually,
TimeWindowis the time range that you specified in theGetSampledRequestsrequest. However, if your AWS resource received more than 5,000 requests during the time range that you specified in the request,GetSampledRequestsreturns the time range for the first 5,000 requests.- Parameters:
timeWindow- Usually,TimeWindowis the time range that you specified in theGetSampledRequestsrequest. However, if your AWS resource received more than 5,000 requests during the time range that you specified in the request,GetSampledRequestsreturns the time range for the first 5,000 requests.- 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 GetSampledRequestsResult clone()
-
-