public class PutMetricDataRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<MetricDatum> |
metricData
A list of data describing the metric.
|
private java.lang.String |
namespace
The namespace for the metric data.
|
NOOP
Constructor and Description |
---|
PutMetricDataRequest() |
Modifier and Type | Method and Description |
---|---|
PutMetricDataRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.util.List<MetricDatum> |
getMetricData()
A list of data describing the metric.
|
java.lang.String |
getNamespace()
The namespace for the metric data.
|
int |
hashCode() |
void |
setMetricData(java.util.Collection<MetricDatum> metricData)
A list of data describing the metric.
|
void |
setNamespace(java.lang.String namespace)
The namespace for the metric data.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutMetricDataRequest |
withMetricData(java.util.Collection<MetricDatum> metricData)
A list of data describing the metric.
|
PutMetricDataRequest |
withMetricData(MetricDatum... metricData)
A list of data describing the metric.
|
PutMetricDataRequest |
withNamespace(java.lang.String namespace)
The namespace for the metric data.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String namespace
The namespace for the metric data.
private SdkInternalList<MetricDatum> metricData
A list of data describing the metric.
public void setNamespace(java.lang.String namespace)
The namespace for the metric data.
namespace
- The namespace for the metric data. public java.lang.String getNamespace()
The namespace for the metric data.
public PutMetricDataRequest withNamespace(java.lang.String namespace)
The namespace for the metric data.
namespace
- The namespace for the metric data. public java.util.List<MetricDatum> getMetricData()
A list of data describing the metric.
public void setMetricData(java.util.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(java.util.Collection<MetricDatum> metricData)
A list of data describing the metric.
metricData
- A list of data describing the metric.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public PutMetricDataRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()