Class CloudwatchMetricAction
- All Implemented Interfaces:
Serializable
,Cloneable
Describes an action that captures a CloudWatch metric.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The CloudWatch metric name.The CloudWatch metric namespace name.An optional Unix timestamp.The metric unit supported by CloudWatch.The CloudWatch metric value.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.toString()
Returns a string representation of this object; useful for testing and debugging.withMetricName
(String metricName) The CloudWatch metric name.withMetricNamespace
(String metricNamespace) The CloudWatch metric namespace name.withMetricTimestamp
(String metricTimestamp) An optional Unix timestamp.withMetricUnit
(String metricUnit) The metric unit supported by CloudWatch.withMetricValue
(String metricValue) The CloudWatch metric value.withRoleArn
(String roleArn) The IAM role that allows access to the CloudWatch metric.
-
Constructor Details
-
CloudwatchMetricAction
public CloudwatchMetricAction()
-
-
Method Details
-
setRoleArn
The IAM role that allows access to the CloudWatch metric.
- Parameters:
roleArn
- The IAM role that allows access to the CloudWatch metric.
-
getRoleArn
The IAM role that allows access to the CloudWatch metric.
- Returns:
- The IAM role that allows access to the CloudWatch metric.
-
withRoleArn
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
The CloudWatch metric namespace name.
- Parameters:
metricNamespace
- The CloudWatch metric namespace name.
-
getMetricNamespace
The CloudWatch metric namespace name.
- Returns:
- The CloudWatch metric namespace name.
-
withMetricNamespace
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
The CloudWatch metric name.
- Parameters:
metricName
- The CloudWatch metric name.
-
getMetricName
The CloudWatch metric name.
- Returns:
- The CloudWatch metric name.
-
withMetricName
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
The CloudWatch metric value.
- Parameters:
metricValue
- The CloudWatch metric value.
-
getMetricValue
The CloudWatch metric value.
- Returns:
- The CloudWatch metric value.
-
withMetricValue
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
The metric unit supported by CloudWatch.
- Parameters:
metricUnit
- The metric unit supported by CloudWatch.
-
getMetricUnit
The metric unit supported by CloudWatch.
- Returns:
- The metric unit supported by CloudWatch.
-
withMetricUnit
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
An optional Unix timestamp.
- Parameters:
metricTimestamp
- An optional Unix timestamp.
-
getMetricTimestamp
An optional Unix timestamp.
- Returns:
- An optional Unix timestamp.
-
withMetricTimestamp
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-