Class PutMetricDataRequest

    • Constructor Detail

      • PutMetricDataRequest

        public PutMetricDataRequest()
    • 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​(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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object