@Generated(value="software.amazon.awssdk:codegen") public final class GetMetricDataResponse extends CloudWatchResponse implements ToCopyableBuilder<GetMetricDataResponse.Builder,GetMetricDataResponse>
Modifier and Type | Class and Description |
---|---|
static interface |
GetMetricDataResponse.Builder |
Modifier and Type | Method and Description |
---|---|
static GetMetricDataResponse.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<MessageData> |
messages()
Contains a message about this
GetMetricData operation, if the operation results in such a message. |
List<MetricDataResult> |
metricDataResults()
The metrics that are returned, including the metric name, namespace, and dimensions.
|
String |
nextToken()
A token that marks the next batch of returned results.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends GetMetricDataResponse.Builder> |
serializableBuilderClass() |
GetMetricDataResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
responseMetadata
sdkHttpResponse
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public List<MetricDataResult> metricDataResults()
The metrics that are returned, including the metric name, namespace, and dimensions.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public String nextToken()
A token that marks the next batch of returned results.
public List<MessageData> messages()
Contains a message about this GetMetricData
operation, if the operation results in such a message.
An example of a message that may 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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
GetMetricData
operation, if the operation results in such a
message. An example of a message that may 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 GetMetricDataResponse.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<GetMetricDataResponse.Builder,GetMetricDataResponse>
toBuilder
in class AwsResponse
public static GetMetricDataResponse.Builder builder()
public static Class<? extends GetMetricDataResponse.Builder> serializableBuilderClass()
public int hashCode()
hashCode
in class AwsResponse
public boolean equals(Object obj)
equals
in class AwsResponse
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField
in class SdkResponse
Copyright © 2019. All rights reserved.