Class CloudwatchMetricAction

java.lang.Object
com.amazonaws.services.iot.model.CloudwatchMetricAction
All Implemented Interfaces:
Serializable, Cloneable

public class CloudwatchMetricAction extends Object implements Serializable, Cloneable

Describes an action that captures a CloudWatch metric.

See Also:
  • Constructor Details

    • CloudwatchMetricAction

      public CloudwatchMetricAction()
  • Method Details

    • setRoleArn

      public void setRoleArn(String roleArn)

      The IAM role that allows access to the CloudWatch metric.

      Parameters:
      roleArn - The IAM role that allows access to the CloudWatch metric.
    • getRoleArn

      public String getRoleArn()

      The IAM role that allows access to the CloudWatch metric.

      Returns:
      The IAM role that allows access to the CloudWatch metric.
    • withRoleArn

      public CloudwatchMetricAction withRoleArn(String roleArn)

      The IAM role that allows access to the CloudWatch metric.

      Parameters:
      roleArn - The IAM role that allows access to the CloudWatch metric.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setMetricNamespace

      public void setMetricNamespace(String metricNamespace)

      The CloudWatch metric namespace name.

      Parameters:
      metricNamespace - The CloudWatch metric namespace name.
    • getMetricNamespace

      public String getMetricNamespace()

      The CloudWatch metric namespace name.

      Returns:
      The CloudWatch metric namespace name.
    • withMetricNamespace

      public CloudwatchMetricAction withMetricNamespace(String metricNamespace)

      The CloudWatch metric namespace name.

      Parameters:
      metricNamespace - The CloudWatch metric namespace name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setMetricName

      public void setMetricName(String metricName)

      The CloudWatch metric name.

      Parameters:
      metricName - The CloudWatch metric name.
    • getMetricName

      public String getMetricName()

      The CloudWatch metric name.

      Returns:
      The CloudWatch metric name.
    • withMetricName

      public CloudwatchMetricAction withMetricName(String metricName)

      The CloudWatch metric name.

      Parameters:
      metricName - The CloudWatch metric name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setMetricValue

      public void setMetricValue(String metricValue)

      The CloudWatch metric value.

      Parameters:
      metricValue - The CloudWatch metric value.
    • getMetricValue

      public String getMetricValue()

      The CloudWatch metric value.

      Returns:
      The CloudWatch metric value.
    • withMetricValue

      public CloudwatchMetricAction withMetricValue(String metricValue)

      The CloudWatch metric value.

      Parameters:
      metricValue - The CloudWatch metric value.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setMetricUnit

      public void setMetricUnit(String metricUnit)

      The metric unit supported by CloudWatch.

      Parameters:
      metricUnit - The metric unit supported by CloudWatch.
    • getMetricUnit

      public String getMetricUnit()

      The metric unit supported by CloudWatch.

      Returns:
      The metric unit supported by CloudWatch.
    • withMetricUnit

      public CloudwatchMetricAction withMetricUnit(String metricUnit)

      The metric unit supported by CloudWatch.

      Parameters:
      metricUnit - The metric unit supported by CloudWatch.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setMetricTimestamp

      public void setMetricTimestamp(String metricTimestamp)

      An optional Unix timestamp.

      Parameters:
      metricTimestamp - An optional Unix timestamp.
    • getMetricTimestamp

      public String getMetricTimestamp()

      An optional Unix timestamp.

      Returns:
      An optional Unix timestamp.
    • withMetricTimestamp

      public CloudwatchMetricAction withMetricTimestamp(String metricTimestamp)

      An optional Unix timestamp.

      Parameters:
      metricTimestamp - An optional Unix timestamp.
      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 CloudwatchMetricAction clone()
      Overrides:
      clone in class Object