@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<MessageData> |
getMessages()
Contains a message about the operation or the results, if the operation results in such a message.
|
List<MetricDataResult> |
getMetricDataResults()
The metrics that are returned, including the metric name, namespace, and dimensions.
|
String |
getNextToken()
A token that marks the next batch of returned results.
|
int |
hashCode() |
void |
setMessages(Collection<MessageData> messages)
Contains a message about the operation or the results, if the operation results in such a message.
|
void |
setMetricDataResults(Collection<MetricDataResult> metricDataResults)
The metrics that are returned, including the metric name, namespace, and dimensions.
|
void |
setNextToken(String nextToken)
A token that marks the next batch of returned results.
|
String |
toString()
Returns a string representation of this object.
|
GetMetricDataResult |
withMessages(Collection<MessageData> messages)
Contains a message about the operation or the results, if the operation results in such a message.
|
GetMetricDataResult |
withMessages(MessageData... messages)
Contains a message about the operation or the results, if the operation results in such a message.
|
GetMetricDataResult |
withMetricDataResults(Collection<MetricDataResult> metricDataResults)
The metrics that are returned, including the metric name, namespace, and dimensions.
|
GetMetricDataResult |
withMetricDataResults(MetricDataResult... metricDataResults)
The metrics that are returned, including the metric name, namespace, and dimensions.
|
GetMetricDataResult |
withNextToken(String nextToken)
A token that marks the next batch of returned results.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<MetricDataResult> getMetricDataResults()
The metrics that are returned, including the metric name, namespace, and dimensions.
public void setMetricDataResults(Collection<MetricDataResult> metricDataResults)
The metrics that are returned, including the metric name, namespace, and dimensions.
metricDataResults
- The metrics that are returned, including the metric name, namespace, and dimensions.public GetMetricDataResult withMetricDataResults(MetricDataResult... metricDataResults)
The metrics that are returned, including the metric name, namespace, and dimensions.
NOTE: This method appends the values to the existing list (if any). Use
setMetricDataResults(java.util.Collection)
or withMetricDataResults(java.util.Collection)
if
you want to override the existing values.
metricDataResults
- The metrics that are returned, including the metric name, namespace, and dimensions.public GetMetricDataResult withMetricDataResults(Collection<MetricDataResult> metricDataResults)
The metrics that are returned, including the metric name, namespace, and dimensions.
metricDataResults
- The metrics that are returned, including the metric name, namespace, and dimensions.public void setNextToken(String nextToken)
A token that marks the next batch of returned results.
nextToken
- A token that marks the next batch of returned results.public String getNextToken()
A token that marks the next batch of returned results.
public GetMetricDataResult withNextToken(String nextToken)
A token that marks the next batch of returned results.
nextToken
- A token that marks the next batch of returned results.public List<MessageData> getMessages()
Contains a message about the operation or the results, if the operation results in such a message. Examples of
messages that may be returned include Maximum number of allowed metrics exceeded
and
You are not authorized to search one or more metrics
. If there is a message, as much of the
operation as possible is still executed.
Maximum number of allowed metrics exceeded
and You are not authorized to search one or more metrics
. If there is a message, as much of
the operation as possible is still executed.public void setMessages(Collection<MessageData> messages)
Contains a message about the operation or the results, if the operation results in such a message. Examples of
messages that may be returned include Maximum number of allowed metrics exceeded
and
You are not authorized to search one or more metrics
. If there is a message, as much of the
operation as possible is still executed.
messages
- Contains a message about the operation or the results, if the operation results in such a message.
Examples of messages that may be returned include Maximum number of allowed metrics exceeded
and You are not authorized to search one or more metrics
. If there is a message, as much of
the operation as possible is still executed.public GetMetricDataResult withMessages(MessageData... messages)
Contains a message about the operation or the results, if the operation results in such a message. Examples of
messages that may be returned include Maximum number of allowed metrics exceeded
and
You are not authorized to search one or more metrics
. If there is a message, as much of the
operation as possible is still executed.
NOTE: This method appends the values to the existing list (if any). Use
setMessages(java.util.Collection)
or withMessages(java.util.Collection)
if you want to override
the existing values.
messages
- Contains a message about the operation or the results, if the operation results in such a message.
Examples of messages that may be returned include Maximum number of allowed metrics exceeded
and You are not authorized to search one or more metrics
. If there is a message, as much of
the operation as possible is still executed.public GetMetricDataResult withMessages(Collection<MessageData> messages)
Contains a message about the operation or the results, if the operation results in such a message. Examples of
messages that may be returned include Maximum number of allowed metrics exceeded
and
You are not authorized to search one or more metrics
. If there is a message, as much of the
operation as possible is still executed.
messages
- Contains a message about the operation or the results, if the operation results in such a message.
Examples of messages that may be returned include Maximum number of allowed metrics exceeded
and You are not authorized to search one or more metrics
. If there is a message, as much of
the operation as possible is still executed.public String toString()
toString
in class Object
Object.toString()
public GetMetricDataResult clone()
Copyright © 2019. All rights reserved.