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 CloudwatchMetricAction
clone()
boolean
equals(Object obj)
String
getMetricName()
The CloudWatch metric name.String
getMetricNamespace()
The CloudWatch metric namespace name.String
getMetricTimestamp()
An optional Unix timestamp.String
getMetricUnit()
The metric unit supported by CloudWatch.String
getMetricValue()
The CloudWatch metric value.String
getRoleArn()
The IAM role that allows access to the CloudWatch metric.int
hashCode()
void
setMetricName(String metricName)
The CloudWatch metric name.void
setMetricNamespace(String metricNamespace)
The CloudWatch metric namespace name.void
setMetricTimestamp(String metricTimestamp)
An optional Unix timestamp.void
setMetricUnit(String metricUnit)
The metric unit supported by CloudWatch.void
setMetricValue(String metricValue)
The CloudWatch metric value.void
setRoleArn(String roleArn)
The IAM role that allows access to the CloudWatch metric.String
toString()
Returns a string representation of this object; useful for testing and debugging.CloudwatchMetricAction
withMetricName(String metricName)
The CloudWatch metric name.CloudwatchMetricAction
withMetricNamespace(String metricNamespace)
The CloudWatch metric namespace name.CloudwatchMetricAction
withMetricTimestamp(String metricTimestamp)
An optional Unix timestamp.CloudwatchMetricAction
withMetricUnit(String metricUnit)
The metric unit supported by CloudWatch.CloudwatchMetricAction
withMetricValue(String metricValue)
The CloudWatch metric value.CloudwatchMetricAction
withRoleArn(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CloudwatchMetricAction clone()
-
-