public class PutMetricDataRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
PutMetricDataRequest() |
| Modifier and Type | Method and Description |
|---|---|
PutMetricDataRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
List<MetricDatum> |
getMetricData()
A list of data describing the metric.
|
String |
getNamespace()
The namespace for the metric data.
|
int |
hashCode() |
void |
setMetricData(Collection<MetricDatum> metricData)
A list of data describing the metric.
|
void |
setNamespace(String namespace)
The namespace for the metric data.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutMetricDataRequest |
withMetricData(Collection<MetricDatum> metricData)
A list of data describing the metric.
|
PutMetricDataRequest |
withMetricData(MetricDatum... metricData)
A list of data describing the metric.
|
PutMetricDataRequest |
withNamespace(String namespace)
The namespace for the metric data.
|
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setNamespace(String namespace)
The namespace for the metric data.
namespace - The namespace for the metric data.public String getNamespace()
The namespace for the metric data.
public PutMetricDataRequest withNamespace(String namespace)
The namespace for the metric data.
namespace - The namespace for the metric data.public List<MetricDatum> getMetricData()
A list of data describing the metric.
public void setMetricData(Collection<MetricDatum> metricData)
A list of data describing the metric.
metricData - A list of data describing the metric.public PutMetricDataRequest withMetricData(MetricDatum... metricData)
A list of data describing the metric.
NOTE: This method appends the values to the existing list (if
any). Use setMetricData(java.util.Collection) or
withMetricData(java.util.Collection) if you want to override the
existing values.
metricData - A list of data describing the metric.public PutMetricDataRequest withMetricData(Collection<MetricDatum> metricData)
A list of data describing the metric.
metricData - A list of data describing the metric.public String toString()
toString in class ObjectObject.toString()public PutMetricDataRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.