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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CloudwatchMetricAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloudwatchMetricActionclone()booleanequals(Object obj)StringgetMetricName()The CloudWatch metric name.StringgetMetricNamespace()The CloudWatch metric namespace name.StringgetMetricTimestamp()An optional Unix timestamp.StringgetMetricUnit()The metric unit supported by CloudWatch.StringgetMetricValue()The CloudWatch metric value.StringgetRoleArn()The IAM role that allows access to the CloudWatch metric.inthashCode()voidsetMetricName(String metricName)The CloudWatch metric name.voidsetMetricNamespace(String metricNamespace)The CloudWatch metric namespace name.voidsetMetricTimestamp(String metricTimestamp)An optional Unix timestamp.voidsetMetricUnit(String metricUnit)The metric unit supported by CloudWatch.voidsetMetricValue(String metricValue)The CloudWatch metric value.voidsetRoleArn(String roleArn)The IAM role that allows access to the CloudWatch metric.StringtoString()Returns a string representation of this object; useful for testing and debugging.CloudwatchMetricActionwithMetricName(String metricName)The CloudWatch metric name.CloudwatchMetricActionwithMetricNamespace(String metricNamespace)The CloudWatch metric namespace name.CloudwatchMetricActionwithMetricTimestamp(String metricTimestamp)An optional Unix timestamp.CloudwatchMetricActionwithMetricUnit(String metricUnit)The metric unit supported by CloudWatch.CloudwatchMetricActionwithMetricValue(String metricValue)The CloudWatch metric value.CloudwatchMetricActionwithRoleArn(String roleArn)The IAM role that allows access to the CloudWatch metric.
-
-
-
Method Detail
-
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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CloudwatchMetricAction clone()
-
-