@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CloudwatchMetricAction extends Object implements Serializable, Cloneable, StructuredPojo
Describes an action that captures a CloudWatch metric.
Constructor and Description |
---|
CloudwatchMetricAction() |
Modifier and Type | Method and 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 |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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 void setRoleArn(String roleArn)
The IAM role that allows access to the CloudWatch metric.
roleArn
- The IAM role that allows access to the CloudWatch metric.public String getRoleArn()
The IAM role that allows access to the CloudWatch metric.
public CloudwatchMetricAction withRoleArn(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(String metricNamespace)
The CloudWatch metric namespace name.
metricNamespace
- The CloudWatch metric namespace name.public String getMetricNamespace()
The CloudWatch metric namespace name.
public CloudwatchMetricAction withMetricNamespace(String metricNamespace)
The CloudWatch metric namespace name.
metricNamespace
- The CloudWatch metric namespace name.public void setMetricName(String metricName)
The CloudWatch metric name.
metricName
- The CloudWatch metric name.public String getMetricName()
The CloudWatch metric name.
public CloudwatchMetricAction withMetricName(String metricName)
The CloudWatch metric name.
metricName
- The CloudWatch metric name.public void setMetricValue(String metricValue)
The CloudWatch metric value.
metricValue
- The CloudWatch metric value.public String getMetricValue()
The CloudWatch metric value.
public CloudwatchMetricAction withMetricValue(String metricValue)
The CloudWatch metric value.
metricValue
- The CloudWatch metric value.public void setMetricUnit(String metricUnit)
The metric unit supported by CloudWatch.
metricUnit
- The metric unit supported by CloudWatch.public String getMetricUnit()
The metric unit supported by CloudWatch.
public CloudwatchMetricAction withMetricUnit(String metricUnit)
The metric unit supported by CloudWatch.
metricUnit
- The metric unit supported by CloudWatch.public void setMetricTimestamp(String metricTimestamp)
An optional Unix timestamp.
metricTimestamp
- An optional Unix timestamp.public String getMetricTimestamp()
An optional Unix timestamp.
public CloudwatchMetricAction withMetricTimestamp(String metricTimestamp)
An optional Unix timestamp.
metricTimestamp
- An optional Unix timestamp.public String toString()
toString
in class Object
Object.toString()
public CloudwatchMetricAction clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.