Class PutMetricDataRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.cloudwatch.model.PutMetricDataRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class PutMetricDataRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description PutMetricDataRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PutMetricDataRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)List<MetricDatum>getMetricData()A list of data describing the metric.StringgetNamespace()The namespace for the metric data.inthashCode()voidsetMetricData(Collection<MetricDatum> metricData)A list of data describing the metric.voidsetNamespace(String namespace)The namespace for the metric data.StringtoString()Returns a string representation of this object; useful for testing and debugging.PutMetricDataRequestwithMetricData(MetricDatum... metricData)A list of data describing the metric.PutMetricDataRequestwithMetricData(Collection<MetricDatum> metricData)A list of data describing the metric.PutMetricDataRequestwithNamespace(String namespace)The namespace for the metric data.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
-
-
-
Method Detail
-
setNamespace
public void setNamespace(String namespace)
The namespace for the metric data.
You cannot specify a namespace that begins with "AWS/". Namespaces that begin with "AWS/" are reserved for other Amazon Web Services products that send metrics to Amazon CloudWatch. - Parameters:
namespace- The namespace for the metric data.You cannot specify a namespace that begins with "AWS/". Namespaces that begin with "AWS/" are reserved for other Amazon Web Services products that send metrics to Amazon CloudWatch.
-
getNamespace
public String getNamespace()
The namespace for the metric data.
You cannot specify a namespace that begins with "AWS/". Namespaces that begin with "AWS/" are reserved for other Amazon Web Services products that send metrics to Amazon CloudWatch. - Returns:
- The namespace for the metric data.
You cannot specify a namespace that begins with "AWS/". Namespaces that begin with "AWS/" are reserved for other Amazon Web Services products that send metrics to Amazon CloudWatch.
-
withNamespace
public PutMetricDataRequest withNamespace(String namespace)
The namespace for the metric data.
You cannot specify a namespace that begins with "AWS/". Namespaces that begin with "AWS/" are reserved for other Amazon Web Services products that send metrics to Amazon CloudWatch. - Parameters:
namespace- The namespace for the metric data.You cannot specify a namespace that begins with "AWS/". Namespaces that begin with "AWS/" are reserved for other Amazon Web Services products that send metrics to Amazon CloudWatch. - Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getMetricData
public List<MetricDatum> getMetricData()
A list of data describing the metric.
- Returns:
- A list of data describing the metric.
-
setMetricData
public void setMetricData(Collection<MetricDatum> metricData)
A list of data describing the metric.
- Parameters:
metricData- A list of data describing the metric.
-
withMetricData
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)orwithMetricData(java.util.Collection)if you want to override the existing values.- Parameters:
metricData- A list of data describing the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withMetricData
public PutMetricDataRequest withMetricData(Collection<MetricDatum> metricData)
A list of data describing the metric.
- Parameters:
metricData- A list of data describing the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public PutMetricDataRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-