public class CloudwatchMetricAction
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes an action that captures a CloudWatch metric.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
metricName
The CloudWatch metric name.
|
private java.lang.String |
metricNamespace
The CloudWatch metric namespace name.
|
private java.lang.String |
metricTimestamp
An optional Unix timestamp.
|
private java.lang.String |
metricUnit
The metric unit supported by CloudWatch.
|
private java.lang.String |
metricValue
The CloudWatch metric value.
|
private java.lang.String |
roleArn
The IAM role that allows access to the CloudWatch metric.
|
Constructor and Description |
---|
CloudwatchMetricAction() |
Modifier and Type | Method and Description |
---|---|
CloudwatchMetricAction |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getMetricName()
The CloudWatch metric name.
|
java.lang.String |
getMetricNamespace()
The CloudWatch metric namespace name.
|
java.lang.String |
getMetricTimestamp()
An optional Unix timestamp.
|
java.lang.String |
getMetricUnit()
The metric unit supported by CloudWatch.
|
java.lang.String |
getMetricValue()
The CloudWatch metric value.
|
java.lang.String |
getRoleArn()
The IAM role that allows access to the CloudWatch metric.
|
int |
hashCode() |
void |
setMetricName(java.lang.String metricName)
The CloudWatch metric name.
|
void |
setMetricNamespace(java.lang.String metricNamespace)
The CloudWatch metric namespace name.
|
void |
setMetricTimestamp(java.lang.String metricTimestamp)
An optional Unix timestamp.
|
void |
setMetricUnit(java.lang.String metricUnit)
The metric unit supported by CloudWatch.
|
void |
setMetricValue(java.lang.String metricValue)
The CloudWatch metric value.
|
void |
setRoleArn(java.lang.String roleArn)
The IAM role that allows access to the CloudWatch metric.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CloudwatchMetricAction |
withMetricName(java.lang.String metricName)
The CloudWatch metric name.
|
CloudwatchMetricAction |
withMetricNamespace(java.lang.String metricNamespace)
The CloudWatch metric namespace name.
|
CloudwatchMetricAction |
withMetricTimestamp(java.lang.String metricTimestamp)
An optional Unix timestamp.
|
CloudwatchMetricAction |
withMetricUnit(java.lang.String metricUnit)
The metric unit supported by CloudWatch.
|
CloudwatchMetricAction |
withMetricValue(java.lang.String metricValue)
The CloudWatch metric value.
|
CloudwatchMetricAction |
withRoleArn(java.lang.String roleArn)
The IAM role that allows access to the CloudWatch metric.
|
private java.lang.String roleArn
The IAM role that allows access to the CloudWatch metric.
private java.lang.String metricNamespace
The CloudWatch metric namespace name.
private java.lang.String metricName
The CloudWatch metric name.
private java.lang.String metricValue
The CloudWatch metric value.
private java.lang.String metricUnit
The metric unit supported by CloudWatch.
private java.lang.String metricTimestamp
An optional Unix timestamp.
public void setRoleArn(java.lang.String roleArn)
The IAM role that allows access to the CloudWatch metric.
roleArn
- The IAM role that allows access to the CloudWatch metric.public java.lang.String getRoleArn()
The IAM role that allows access to the CloudWatch metric.
public CloudwatchMetricAction withRoleArn(java.lang.String roleArn)
The IAM role that allows access to the CloudWatch metric.
roleArn
- The IAM role that allows access to the CloudWatch metric.public void setMetricNamespace(java.lang.String metricNamespace)
The CloudWatch metric namespace name.
metricNamespace
- The CloudWatch metric namespace name.public java.lang.String getMetricNamespace()
The CloudWatch metric namespace name.
public CloudwatchMetricAction withMetricNamespace(java.lang.String metricNamespace)
The CloudWatch metric namespace name.
metricNamespace
- The CloudWatch metric namespace name.public void setMetricName(java.lang.String metricName)
The CloudWatch metric name.
metricName
- The CloudWatch metric name.public java.lang.String getMetricName()
The CloudWatch metric name.
public CloudwatchMetricAction withMetricName(java.lang.String metricName)
The CloudWatch metric name.
metricName
- The CloudWatch metric name.public void setMetricValue(java.lang.String metricValue)
The CloudWatch metric value.
metricValue
- The CloudWatch metric value.public java.lang.String getMetricValue()
The CloudWatch metric value.
public CloudwatchMetricAction withMetricValue(java.lang.String metricValue)
The CloudWatch metric value.
metricValue
- The CloudWatch metric value.public void setMetricUnit(java.lang.String metricUnit)
The metric unit supported by CloudWatch.
metricUnit
- The metric unit supported by CloudWatch.public java.lang.String getMetricUnit()
The metric unit supported by CloudWatch.
public CloudwatchMetricAction withMetricUnit(java.lang.String metricUnit)
The metric unit supported by CloudWatch.
metricUnit
- The metric unit supported by CloudWatch.public void setMetricTimestamp(java.lang.String metricTimestamp)
An optional Unix timestamp.
metricTimestamp
- An optional Unix timestamp.public java.lang.String getMetricTimestamp()
An optional Unix timestamp.
public CloudwatchMetricAction withMetricTimestamp(java.lang.String metricTimestamp)
An optional Unix timestamp.
metricTimestamp
- An optional Unix timestamp.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CloudwatchMetricAction clone()
clone
in class java.lang.Object