public class CloudwatchMetricAction extends Object implements Serializable
Describes an action that captures a CloudWatch metric.
| Constructor and Description |
|---|
CloudwatchMetricAction() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public String getRoleArn()
public void setRoleArn(String roleArn)
roleArn - The IAM role that allows access to the CloudWatch metric.public CloudwatchMetricAction withRoleArn(String roleArn)
Returns a reference to this object so that method calls can be chained together.
roleArn - The IAM role that allows access to the CloudWatch metric.public String getMetricNamespace()
public void setMetricNamespace(String metricNamespace)
metricNamespace - The CloudWatch metric namespace name.public CloudwatchMetricAction withMetricNamespace(String metricNamespace)
Returns a reference to this object so that method calls can be chained together.
metricNamespace - The CloudWatch metric namespace name.public String getMetricName()
public void setMetricName(String metricName)
metricName - The CloudWatch metric name.public CloudwatchMetricAction withMetricName(String metricName)
Returns a reference to this object so that method calls can be chained together.
metricName - The CloudWatch metric name.public String getMetricValue()
public void setMetricValue(String metricValue)
metricValue - The CloudWatch metric value.public CloudwatchMetricAction withMetricValue(String metricValue)
Returns a reference to this object so that method calls can be chained together.
metricValue - The CloudWatch metric value.public String getMetricUnit()
public void setMetricUnit(String metricUnit)
metricUnit - The metric
unit supported by CloudWatch.public CloudwatchMetricAction withMetricUnit(String metricUnit)
Returns a reference to this object so that method calls can be chained together.
metricUnit - The metric
unit supported by CloudWatch.public String getMetricTimestamp()
public void setMetricTimestamp(String metricTimestamp)
metricTimestamp - An optional Unix
timestamp.public CloudwatchMetricAction withMetricTimestamp(String metricTimestamp)
Returns a reference to this object so that method calls can be chained together.
metricTimestamp - An optional Unix
timestamp.public String toString()
toString in class ObjectObject.toString()Copyright © 2016. All rights reserved.