@Generated(value="software.amazon.awssdk:codegen") public final class PutMetricDataRequest extends CloudWatchRequest implements ToCopyableBuilder<PutMetricDataRequest.Builder,PutMetricDataRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
PutMetricDataRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static PutMetricDataRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasMetricData()
Returns true if the MetricData property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
List<MetricDatum> |
metricData()
The data for the metric.
|
String |
namespace()
The namespace for the metric data.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PutMetricDataRequest.Builder> |
serializableBuilderClass() |
PutMetricDataRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String namespace()
The namespace for the metric data.
To avoid conflicts with AWS service namespaces, you should not specify a namespace that begins with
AWS/
To avoid conflicts with AWS service namespaces, you should not specify a namespace that begins with
AWS/
public final boolean hasMetricData()
public final List<MetricDatum> metricData()
The data for the metric. The array can include no more than 20 metrics per call.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasMetricData() to see if a value was sent in this field.
public PutMetricDataRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PutMetricDataRequest.Builder,PutMetricDataRequest>toBuilder in class CloudWatchRequestpublic static PutMetricDataRequest.Builder builder()
public static Class<? extends PutMetricDataRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2021. All rights reserved.