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