* A complex type that contains detailed information about each of the requests in the sample. *
*/ private java.util.List
* The total number of requests from which GetSampledRequests
got a sample of MaxItems
* requests. If PopulationSize
is less than MaxItems
, the sample includes every request
* that your Amazon Web Services resource received during the specified time range.
*
* Usually, TimeWindow
is the time range that you specified in the GetSampledRequests
* request. However, if your Amazon Web Services resource received more than 5,000 requests during the time range
* that you specified in the request, GetSampledRequests
returns the time range for the first 5,000
* requests. Times are in Coordinated Universal Time (UTC) format.
*
* A complex type that contains detailed information about each of the requests in the sample. *
* * @return A complex type that contains detailed information about each of the requests in the sample. */ public java.util.List* A complex type that contains detailed information about each of the requests in the sample. *
* * @param sampledRequests * A complex type that contains detailed information about each of the requests in the sample. */ public void setSampledRequests(java.util.Collection* 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 * {@link #setSampledRequests(java.util.Collection)} or {@link #withSampledRequests(java.util.Collection)} if you * want to override the existing values. *
* * @param sampledRequests * A complex type that contains detailed information about each of the requests in the sample. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSampledRequestsResult withSampledRequests(SampledHTTPRequest... sampledRequests) { if (this.sampledRequests == null) { setSampledRequests(new java.util.ArrayList* A complex type that contains detailed information about each of the requests in the sample. *
* * @param sampledRequests * A complex type that contains detailed information about each of the requests in the sample. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSampledRequestsResult withSampledRequests(java.util.Collection
* The total number of requests from which GetSampledRequests
got a sample of MaxItems
* requests. If PopulationSize
is less than MaxItems
, the sample includes every request
* that your Amazon Web Services resource received during the specified time range.
*
GetSampledRequests
got a sample of
* MaxItems
requests. If PopulationSize
is less than MaxItems
, the
* sample includes every request that your Amazon Web Services resource received during the specified time
* range.
*/
public void setPopulationSize(Long populationSize) {
this.populationSize = populationSize;
}
/**
*
* The total number of requests from which GetSampledRequests
got a sample of MaxItems
* requests. If PopulationSize
is less than MaxItems
, the sample includes every request
* that your Amazon Web Services resource received during the specified time range.
*
GetSampledRequests
got a sample of
* MaxItems
requests. If PopulationSize
is less than MaxItems
, the
* sample includes every request that your Amazon Web Services resource received during the specified time
* range.
*/
public Long getPopulationSize() {
return this.populationSize;
}
/**
*
* The total number of requests from which GetSampledRequests
got a sample of MaxItems
* requests. If PopulationSize
is less than MaxItems
, the sample includes every request
* that your Amazon Web Services resource received during the specified time range.
*
GetSampledRequests
got a sample of
* MaxItems
requests. If PopulationSize
is less than MaxItems
, the
* sample includes every request that your Amazon Web Services resource received during the specified time
* range.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetSampledRequestsResult withPopulationSize(Long populationSize) {
setPopulationSize(populationSize);
return this;
}
/**
*
* Usually, TimeWindow
is the time range that you specified in the GetSampledRequests
* request. However, if your Amazon Web Services resource received more than 5,000 requests during the time range
* that you specified in the request, GetSampledRequests
returns the time range for the first 5,000
* requests. Times are in Coordinated Universal Time (UTC) format.
*
TimeWindow
is the time range that you specified in the
* GetSampledRequests
request. However, if your Amazon Web Services resource received more than
* 5,000 requests during the time range that you specified in the request, GetSampledRequests
* returns the time range for the first 5,000 requests. Times are in Coordinated Universal Time (UTC) format.
*/
public void setTimeWindow(TimeWindow timeWindow) {
this.timeWindow = timeWindow;
}
/**
*
* Usually, TimeWindow
is the time range that you specified in the GetSampledRequests
* request. However, if your Amazon Web Services resource received more than 5,000 requests during the time range
* that you specified in the request, GetSampledRequests
returns the time range for the first 5,000
* requests. Times are in Coordinated Universal Time (UTC) format.
*
TimeWindow
is the time range that you specified in the
* GetSampledRequests
request. However, if your Amazon Web Services resource received more than
* 5,000 requests during the time range that you specified in the request, GetSampledRequests
* returns the time range for the first 5,000 requests. Times are in Coordinated Universal Time (UTC)
* format.
*/
public TimeWindow getTimeWindow() {
return this.timeWindow;
}
/**
*
* Usually, TimeWindow
is the time range that you specified in the GetSampledRequests
* request. However, if your Amazon Web Services resource received more than 5,000 requests during the time range
* that you specified in the request, GetSampledRequests
returns the time range for the first 5,000
* requests. Times are in Coordinated Universal Time (UTC) format.
*
TimeWindow
is the time range that you specified in the
* GetSampledRequests
request. However, if your Amazon Web Services resource received more than
* 5,000 requests during the time range that you specified in the request, GetSampledRequests
* returns the time range for the first 5,000 requests. Times are in Coordinated Universal Time (UTC) format.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetSampledRequestsResult withTimeWindow(TimeWindow timeWindow) {
setTimeWindow(timeWindow);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getSampledRequests() != null)
sb.append("SampledRequests: ").append(getSampledRequests()).append(",");
if (getPopulationSize() != null)
sb.append("PopulationSize: ").append(getPopulationSize()).append(",");
if (getTimeWindow() != null)
sb.append("TimeWindow: ").append(getTimeWindow());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof GetSampledRequestsResult == false)
return false;
GetSampledRequestsResult other = (GetSampledRequestsResult) obj;
if (other.getSampledRequests() == null ^ this.getSampledRequests() == null)
return false;
if (other.getSampledRequests() != null && other.getSampledRequests().equals(this.getSampledRequests()) == false)
return false;
if (other.getPopulationSize() == null ^ this.getPopulationSize() == null)
return false;
if (other.getPopulationSize() != null && other.getPopulationSize().equals(this.getPopulationSize()) == false)
return false;
if (other.getTimeWindow() == null ^ this.getTimeWindow() == null)
return false;
if (other.getTimeWindow() != null && other.getTimeWindow().equals(this.getTimeWindow()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getSampledRequests() == null) ? 0 : getSampledRequests().hashCode());
hashCode = prime * hashCode + ((getPopulationSize() == null) ? 0 : getPopulationSize().hashCode());
hashCode = prime * hashCode + ((getTimeWindow() == null) ? 0 : getTimeWindow().hashCode());
return hashCode;
}
@Override
public GetSampledRequestsResult clone() {
try {
return (GetSampledRequestsResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}