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:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
A list of data describing the metric.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.toString()
Returns a string representation of this object; useful for testing and debugging.withMetricData
(MetricDatum... metricData) A list of data describing the metric.withMetricData
(Collection<MetricDatum> metricData) A list of data describing the metric.withNamespace
(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
-
Constructor Details
-
PutMetricDataRequest
public PutMetricDataRequest()
-
-
Method Details
-
setNamespace
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
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
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
A list of data describing the metric.
- Returns:
- A list of data describing the metric.
-
setMetricData
A list of data describing the metric.
- Parameters:
metricData
- A list of data describing the metric.
-
withMetricData
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
-