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:
  • Constructor Details

    • PutMetricDataRequest

      public PutMetricDataRequest()
  • Method Details

    • 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) or withMetricData(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:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public PutMetricDataRequest 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 class AmazonWebServiceRequest
      See Also: