@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetMetricDataResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
GetMetricDataResult() |
Modifier and Type | Method and Description |
---|---|
GetMetricDataResult |
clone() |
boolean |
equals(Object obj) |
List<HistoricalMetricResult> |
getMetricResults()
Information about the historical metrics.
|
String |
getNextToken()
If there are additional results, this is the token for the next set of results.
|
int |
hashCode() |
void |
setMetricResults(Collection<HistoricalMetricResult> metricResults)
Information about the historical metrics.
|
void |
setNextToken(String nextToken)
If there are additional results, this is the token for the next set of results.
|
String |
toString()
Returns a string representation of this object.
|
GetMetricDataResult |
withMetricResults(Collection<HistoricalMetricResult> metricResults)
Information about the historical metrics.
|
GetMetricDataResult |
withMetricResults(HistoricalMetricResult... metricResults)
Information about the historical metrics.
|
GetMetricDataResult |
withNextToken(String nextToken)
If there are additional results, this is the token for the next set of results.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setNextToken(String nextToken)
If there are additional results, this is the token for the next set of results.
The token expires after 5 minutes from the time it is created. Subsequent requests that use the token must use the same request parameters as the request that generated the token.
nextToken
- If there are additional results, this is the token for the next set of results.
The token expires after 5 minutes from the time it is created. Subsequent requests that use the token must use the same request parameters as the request that generated the token.
public String getNextToken()
If there are additional results, this is the token for the next set of results.
The token expires after 5 minutes from the time it is created. Subsequent requests that use the token must use the same request parameters as the request that generated the token.
The token expires after 5 minutes from the time it is created. Subsequent requests that use the token must use the same request parameters as the request that generated the token.
public GetMetricDataResult withNextToken(String nextToken)
If there are additional results, this is the token for the next set of results.
The token expires after 5 minutes from the time it is created. Subsequent requests that use the token must use the same request parameters as the request that generated the token.
nextToken
- If there are additional results, this is the token for the next set of results.
The token expires after 5 minutes from the time it is created. Subsequent requests that use the token must use the same request parameters as the request that generated the token.
public List<HistoricalMetricResult> getMetricResults()
Information about the historical metrics.
If no grouping is specified, a summary of metric data is returned.
If no grouping is specified, a summary of metric data is returned.
public void setMetricResults(Collection<HistoricalMetricResult> metricResults)
Information about the historical metrics.
If no grouping is specified, a summary of metric data is returned.
metricResults
- Information about the historical metrics.
If no grouping is specified, a summary of metric data is returned.
public GetMetricDataResult withMetricResults(HistoricalMetricResult... metricResults)
Information about the historical metrics.
If no grouping is specified, a summary of metric data is returned.
NOTE: This method appends the values to the existing list (if any). Use
setMetricResults(java.util.Collection)
or withMetricResults(java.util.Collection)
if you want
to override the existing values.
metricResults
- Information about the historical metrics.
If no grouping is specified, a summary of metric data is returned.
public GetMetricDataResult withMetricResults(Collection<HistoricalMetricResult> metricResults)
Information about the historical metrics.
If no grouping is specified, a summary of metric data is returned.
metricResults
- Information about the historical metrics.
If no grouping is specified, a summary of metric data is returned.
public String toString()
toString
in class Object
Object.toString()
public GetMetricDataResult clone()