@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 this
GetMetricData operation, 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 this
GetMetricData operation, 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 this
GetMetricData operation, if the operation results in such a message. |
GetMetricDataResult |
withMessages(MessageData... messages)
Contains a message about this
GetMetricData operation, 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 this GetMetricData
operation, if the operation results in such a message.
An example of a message that might be returned is Maximum number of allowed metrics exceeded
. If
there is a message, as much of the operation as possible is still executed.
A message appears here only if it is related to the global GetMetricData
operation. Any message
about a specific metric returned by the operation appears in the MetricDataResult
object returned
for that metric.
GetMetricData
operation, if the operation results in such a
message. An example of a message that might be returned is
Maximum number of allowed metrics exceeded
. If there is a message, as much of the operation
as possible is still executed.
A message appears here only if it is related to the global GetMetricData
operation. Any
message about a specific metric returned by the operation appears in the MetricDataResult
object returned for that metric.
public void setMessages(Collection<MessageData> messages)
Contains a message about this GetMetricData
operation, if the operation results in such a message.
An example of a message that might be returned is Maximum number of allowed metrics exceeded
. If
there is a message, as much of the operation as possible is still executed.
A message appears here only if it is related to the global GetMetricData
operation. Any message
about a specific metric returned by the operation appears in the MetricDataResult
object returned
for that metric.
messages
- Contains a message about this GetMetricData
operation, if the operation results in such a
message. An example of a message that might be returned is
Maximum number of allowed metrics exceeded
. If there is a message, as much of the operation
as possible is still executed.
A message appears here only if it is related to the global GetMetricData
operation. Any
message about a specific metric returned by the operation appears in the MetricDataResult
object returned for that metric.
public GetMetricDataResult withMessages(MessageData... messages)
Contains a message about this GetMetricData
operation, if the operation results in such a message.
An example of a message that might be returned is Maximum number of allowed metrics exceeded
. If
there is a message, as much of the operation as possible is still executed.
A message appears here only if it is related to the global GetMetricData
operation. Any message
about a specific metric returned by the operation appears in the MetricDataResult
object returned
for that metric.
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 this GetMetricData
operation, if the operation results in such a
message. An example of a message that might be returned is
Maximum number of allowed metrics exceeded
. If there is a message, as much of the operation
as possible is still executed.
A message appears here only if it is related to the global GetMetricData
operation. Any
message about a specific metric returned by the operation appears in the MetricDataResult
object returned for that metric.
public GetMetricDataResult withMessages(Collection<MessageData> messages)
Contains a message about this GetMetricData
operation, if the operation results in such a message.
An example of a message that might be returned is Maximum number of allowed metrics exceeded
. If
there is a message, as much of the operation as possible is still executed.
A message appears here only if it is related to the global GetMetricData
operation. Any message
about a specific metric returned by the operation appears in the MetricDataResult
object returned
for that metric.
messages
- Contains a message about this GetMetricData
operation, if the operation results in such a
message. An example of a message that might be returned is
Maximum number of allowed metrics exceeded
. If there is a message, as much of the operation
as possible is still executed.
A message appears here only if it is related to the global GetMetricData
operation. Any
message about a specific metric returned by the operation appears in the MetricDataResult
object returned for that metric.
public String toString()
toString
in class Object
Object.toString()
public GetMetricDataResult clone()
Copyright © 2022. All rights reserved.