public class PutMetricAlarmRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.Boolean |
actionsEnabled
Indicates whether or not actions should be executed during any changes to
the alarm's state.
|
private SdkInternalList<java.lang.String> |
alarmActions
The list of actions to execute when this alarm transitions into an
ALARM state from any other state. |
private java.lang.String |
alarmDescription
The description for the alarm.
|
private java.lang.String |
alarmName
The descriptive name for the alarm.
|
private java.lang.String |
comparisonOperator
The arithmetic operation to use when comparing the specified
Statistic and Threshold . |
private SdkInternalList<Dimension> |
dimensions
The dimensions for the alarm's associated metric.
|
private java.lang.Integer |
evaluationPeriods
The number of periods over which data is compared to the specified
threshold.
|
private SdkInternalList<java.lang.String> |
insufficientDataActions
The list of actions to execute when this alarm transitions into an
INSUFFICIENT_DATA state from any other state. |
private java.lang.String |
metricName
The name for the alarm's associated metric.
|
private java.lang.String |
namespace
The namespace for the alarm's associated metric.
|
private SdkInternalList<java.lang.String> |
oKActions
The list of actions to execute when this alarm transitions into an
OK state from any other state. |
private java.lang.Integer |
period
The period in seconds over which the specified statistic is applied.
|
private java.lang.String |
statistic
The statistic to apply to the alarm's associated metric.
|
private java.lang.Double |
threshold
The value against which the specified statistic is compared.
|
private java.lang.String |
unit
The statistic's unit of measure.
|
NOOP
Constructor and Description |
---|
PutMetricAlarmRequest() |
Modifier and Type | Method and Description |
---|---|
PutMetricAlarmRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.Boolean |
getActionsEnabled()
Indicates whether or not actions should be executed during any changes to
the alarm's state.
|
java.util.List<java.lang.String> |
getAlarmActions()
The list of actions to execute when this alarm transitions into an
ALARM state from any other state. |
java.lang.String |
getAlarmDescription()
The description for the alarm.
|
java.lang.String |
getAlarmName()
The descriptive name for the alarm.
|
java.lang.String |
getComparisonOperator()
The arithmetic operation to use when comparing the specified
Statistic and Threshold . |
java.util.List<Dimension> |
getDimensions()
The dimensions for the alarm's associated metric.
|
java.lang.Integer |
getEvaluationPeriods()
The number of periods over which data is compared to the specified
threshold.
|
java.util.List<java.lang.String> |
getInsufficientDataActions()
The list of actions to execute when this alarm transitions into an
INSUFFICIENT_DATA state from any other state. |
java.lang.String |
getMetricName()
The name for the alarm's associated metric.
|
java.lang.String |
getNamespace()
The namespace for the alarm's associated metric.
|
java.util.List<java.lang.String> |
getOKActions()
The list of actions to execute when this alarm transitions into an
OK state from any other state. |
java.lang.Integer |
getPeriod()
The period in seconds over which the specified statistic is applied.
|
java.lang.String |
getStatistic()
The statistic to apply to the alarm's associated metric.
|
java.lang.Double |
getThreshold()
The value against which the specified statistic is compared.
|
java.lang.String |
getUnit()
The statistic's unit of measure.
|
int |
hashCode() |
java.lang.Boolean |
isActionsEnabled()
Indicates whether or not actions should be executed during any changes to
the alarm's state.
|
void |
setActionsEnabled(java.lang.Boolean actionsEnabled)
Indicates whether or not actions should be executed during any changes to
the alarm's state.
|
void |
setAlarmActions(java.util.Collection<java.lang.String> alarmActions)
The list of actions to execute when this alarm transitions into an
ALARM state from any other state. |
void |
setAlarmDescription(java.lang.String alarmDescription)
The description for the alarm.
|
void |
setAlarmName(java.lang.String alarmName)
The descriptive name for the alarm.
|
void |
setComparisonOperator(ComparisonOperator comparisonOperator)
The arithmetic operation to use when comparing the specified
Statistic and Threshold . |
void |
setComparisonOperator(java.lang.String comparisonOperator)
The arithmetic operation to use when comparing the specified
Statistic and Threshold . |
void |
setDimensions(java.util.Collection<Dimension> dimensions)
The dimensions for the alarm's associated metric.
|
void |
setEvaluationPeriods(java.lang.Integer evaluationPeriods)
The number of periods over which data is compared to the specified
threshold.
|
void |
setInsufficientDataActions(java.util.Collection<java.lang.String> insufficientDataActions)
The list of actions to execute when this alarm transitions into an
INSUFFICIENT_DATA state from any other state. |
void |
setMetricName(java.lang.String metricName)
The name for the alarm's associated metric.
|
void |
setNamespace(java.lang.String namespace)
The namespace for the alarm's associated metric.
|
void |
setOKActions(java.util.Collection<java.lang.String> oKActions)
The list of actions to execute when this alarm transitions into an
OK state from any other state. |
void |
setPeriod(java.lang.Integer period)
The period in seconds over which the specified statistic is applied.
|
void |
setStatistic(Statistic statistic)
The statistic to apply to the alarm's associated metric.
|
void |
setStatistic(java.lang.String statistic)
The statistic to apply to the alarm's associated metric.
|
void |
setThreshold(java.lang.Double threshold)
The value against which the specified statistic is compared.
|
void |
setUnit(StandardUnit unit)
The statistic's unit of measure.
|
void |
setUnit(java.lang.String unit)
The statistic's unit of measure.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutMetricAlarmRequest |
withActionsEnabled(java.lang.Boolean actionsEnabled)
Indicates whether or not actions should be executed during any changes to
the alarm's state.
|
PutMetricAlarmRequest |
withAlarmActions(java.util.Collection<java.lang.String> alarmActions)
The list of actions to execute when this alarm transitions into an
ALARM state from any other state. |
PutMetricAlarmRequest |
withAlarmActions(java.lang.String... alarmActions)
The list of actions to execute when this alarm transitions into an
ALARM state from any other state. |
PutMetricAlarmRequest |
withAlarmDescription(java.lang.String alarmDescription)
The description for the alarm.
|
PutMetricAlarmRequest |
withAlarmName(java.lang.String alarmName)
The descriptive name for the alarm.
|
PutMetricAlarmRequest |
withComparisonOperator(ComparisonOperator comparisonOperator)
The arithmetic operation to use when comparing the specified
Statistic and Threshold . |
PutMetricAlarmRequest |
withComparisonOperator(java.lang.String comparisonOperator)
The arithmetic operation to use when comparing the specified
Statistic and Threshold . |
PutMetricAlarmRequest |
withDimensions(java.util.Collection<Dimension> dimensions)
The dimensions for the alarm's associated metric.
|
PutMetricAlarmRequest |
withDimensions(Dimension... dimensions)
The dimensions for the alarm's associated metric.
|
PutMetricAlarmRequest |
withEvaluationPeriods(java.lang.Integer evaluationPeriods)
The number of periods over which data is compared to the specified
threshold.
|
PutMetricAlarmRequest |
withInsufficientDataActions(java.util.Collection<java.lang.String> insufficientDataActions)
The list of actions to execute when this alarm transitions into an
INSUFFICIENT_DATA state from any other state. |
PutMetricAlarmRequest |
withInsufficientDataActions(java.lang.String... insufficientDataActions)
The list of actions to execute when this alarm transitions into an
INSUFFICIENT_DATA state from any other state. |
PutMetricAlarmRequest |
withMetricName(java.lang.String metricName)
The name for the alarm's associated metric.
|
PutMetricAlarmRequest |
withNamespace(java.lang.String namespace)
The namespace for the alarm's associated metric.
|
PutMetricAlarmRequest |
withOKActions(java.util.Collection<java.lang.String> oKActions)
The list of actions to execute when this alarm transitions into an
OK state from any other state. |
PutMetricAlarmRequest |
withOKActions(java.lang.String... oKActions)
The list of actions to execute when this alarm transitions into an
OK state from any other state. |
PutMetricAlarmRequest |
withPeriod(java.lang.Integer period)
The period in seconds over which the specified statistic is applied.
|
PutMetricAlarmRequest |
withStatistic(Statistic statistic)
The statistic to apply to the alarm's associated metric.
|
PutMetricAlarmRequest |
withStatistic(java.lang.String statistic)
The statistic to apply to the alarm's associated metric.
|
PutMetricAlarmRequest |
withThreshold(java.lang.Double threshold)
The value against which the specified statistic is compared.
|
PutMetricAlarmRequest |
withUnit(StandardUnit unit)
The statistic's unit of measure.
|
PutMetricAlarmRequest |
withUnit(java.lang.String unit)
The statistic's unit of measure.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String alarmName
The descriptive name for the alarm. This name must be unique within the user's AWS account
private java.lang.String alarmDescription
The description for the alarm.
private java.lang.Boolean actionsEnabled
Indicates whether or not actions should be executed during any changes to the alarm's state.
private SdkInternalList<java.lang.String> oKActions
The list of actions to execute when this alarm transitions into an
OK
state from any other state. Each action is specified as
an Amazon Resource Name (ARN).
Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover
Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer- account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:us-east -1:{customer-account}:action/actions/AWS_EC2.InstanceId .Terminate/1.0 | arn:aws:swf:us-east-1:{customer-account}:action/actions /AWS_EC2.InstanceId.Reboot/1.0
Note: You must create at least one stop, terminate, or reboot alarm using the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role for the first time. After this IAM role is created, you can create stop, terminate, or reboot alarms using the CLI.
private SdkInternalList<java.lang.String> alarmActions
The list of actions to execute when this alarm transitions into an
ALARM
state from any other state. Each action is specified
as an Amazon Resource Name (ARN).
Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover
Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer- account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:us-east -1:{customer-account}:action/actions/AWS_EC2.InstanceId .Terminate/1.0 | arn:aws:swf:us-east-1:{customer-account}:action/actions /AWS_EC2.InstanceId.Reboot/1.0
Note: You must create at least one stop, terminate, or reboot alarm using the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role for the first time. After this IAM role is created, you can create stop, terminate, or reboot alarms using the CLI.
private SdkInternalList<java.lang.String> insufficientDataActions
The list of actions to execute when this alarm transitions into an
INSUFFICIENT_DATA
state from any other state. Each action is
specified as an Amazon Resource Name (ARN).
Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover
Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer- account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:us-east -1:{customer-account}:action/actions/AWS_EC2.InstanceId .Terminate/1.0 | arn:aws:swf:us-east-1:{customer-account}:action/actions /AWS_EC2.InstanceId.Reboot/1.0
Note: You must create at least one stop, terminate, or reboot alarm using the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role for the first time. After this IAM role is created, you can create stop, terminate, or reboot alarms using the CLI.
private java.lang.String metricName
The name for the alarm's associated metric.
private java.lang.String namespace
The namespace for the alarm's associated metric.
private java.lang.String statistic
The statistic to apply to the alarm's associated metric.
private SdkInternalList<Dimension> dimensions
The dimensions for the alarm's associated metric.
private java.lang.Integer period
The period in seconds over which the specified statistic is applied.
private java.lang.String unit
The statistic's unit of measure. For example, the units for the Amazon EC2 NetworkIn metric are Bytes because NetworkIn tracks the number of bytes that an instance receives on all network interfaces. You can also specify a unit when you create a custom metric. Units help provide conceptual meaning to your data. Metric data points that specify a unit of measure, such as Percent, are aggregated separately.
Note: If you specify a unit, you must use a unit that is appropriate for the metric. Otherwise, this can cause an Amazon CloudWatch alarm to get stuck in the INSUFFICIENT DATA state.
private java.lang.Integer evaluationPeriods
The number of periods over which data is compared to the specified threshold.
private java.lang.Double threshold
The value against which the specified statistic is compared.
private java.lang.String comparisonOperator
The arithmetic operation to use when comparing the specified
Statistic
and Threshold
. The specified
Statistic
value is used as the first operand.
public void setAlarmName(java.lang.String alarmName)
The descriptive name for the alarm. This name must be unique within the user's AWS account
alarmName
- The descriptive name for the alarm. This name must be unique
within the user's AWS accountpublic java.lang.String getAlarmName()
The descriptive name for the alarm. This name must be unique within the user's AWS account
public PutMetricAlarmRequest withAlarmName(java.lang.String alarmName)
The descriptive name for the alarm. This name must be unique within the user's AWS account
alarmName
- The descriptive name for the alarm. This name must be unique
within the user's AWS accountpublic void setAlarmDescription(java.lang.String alarmDescription)
The description for the alarm.
alarmDescription
- The description for the alarm.public java.lang.String getAlarmDescription()
The description for the alarm.
public PutMetricAlarmRequest withAlarmDescription(java.lang.String alarmDescription)
The description for the alarm.
alarmDescription
- The description for the alarm.public void setActionsEnabled(java.lang.Boolean actionsEnabled)
Indicates whether or not actions should be executed during any changes to the alarm's state.
actionsEnabled
- Indicates whether or not actions should be executed during any
changes to the alarm's state.public java.lang.Boolean getActionsEnabled()
Indicates whether or not actions should be executed during any changes to the alarm's state.
public PutMetricAlarmRequest withActionsEnabled(java.lang.Boolean actionsEnabled)
Indicates whether or not actions should be executed during any changes to the alarm's state.
actionsEnabled
- Indicates whether or not actions should be executed during any
changes to the alarm's state.public java.lang.Boolean isActionsEnabled()
Indicates whether or not actions should be executed during any changes to the alarm's state.
public java.util.List<java.lang.String> getOKActions()
The list of actions to execute when this alarm transitions into an
OK
state from any other state. Each action is specified as
an Amazon Resource Name (ARN).
Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover
Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer- account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:us-east -1:{customer-account}:action/actions/AWS_EC2.InstanceId .Terminate/1.0 | arn:aws:swf:us-east-1:{customer-account}:action/actions /AWS_EC2.InstanceId.Reboot/1.0
Note: You must create at least one stop, terminate, or reboot alarm using the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role for the first time. After this IAM role is created, you can create stop, terminate, or reboot alarms using the CLI.
OK
state from any other state. Each action is
specified as an Amazon Resource Name (ARN).
Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover
Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer -account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws :swf:us-east-1:{customer-account}:action/actions/AWS_EC2 .InstanceId.Terminate/1.0 | arn:aws:swf:us-east-1:{customer-account }:action/actions/AWS_EC2.InstanceId.Reboot/1.0
Note: You must create at least one stop, terminate, or reboot alarm using the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role for the first time. After this IAM role is created, you can create stop, terminate, or reboot alarms using the CLI.
public void setOKActions(java.util.Collection<java.lang.String> oKActions)
The list of actions to execute when this alarm transitions into an
OK
state from any other state. Each action is specified as
an Amazon Resource Name (ARN).
Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover
Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer- account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:us-east -1:{customer-account}:action/actions/AWS_EC2.InstanceId .Terminate/1.0 | arn:aws:swf:us-east-1:{customer-account}:action/actions /AWS_EC2.InstanceId.Reboot/1.0
Note: You must create at least one stop, terminate, or reboot alarm using the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role for the first time. After this IAM role is created, you can create stop, terminate, or reboot alarms using the CLI.
oKActions
- The list of actions to execute when this alarm transitions into an
OK
state from any other state. Each action is
specified as an Amazon Resource Name (ARN).
Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover
Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer -account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws: swf:us-east-1:{customer-account}:action/actions/AWS_EC2 .InstanceId.Terminate/1.0 | arn:aws:swf:us-east-1:{customer-account }:action/actions/AWS_EC2.InstanceId.Reboot/1.0
Note: You must create at least one stop, terminate, or reboot alarm using the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role for the first time. After this IAM role is created, you can create stop, terminate, or reboot alarms using the CLI.
public PutMetricAlarmRequest withOKActions(java.lang.String... oKActions)
The list of actions to execute when this alarm transitions into an
OK
state from any other state. Each action is specified as
an Amazon Resource Name (ARN).
Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover
Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer- account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:us-east -1:{customer-account}:action/actions/AWS_EC2.InstanceId .Terminate/1.0 | arn:aws:swf:us-east-1:{customer-account}:action/actions /AWS_EC2.InstanceId.Reboot/1.0
Note: You must create at least one stop, terminate, or reboot alarm using the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role for the first time. After this IAM role is created, you can create stop, terminate, or reboot alarms using the CLI.
NOTE: This method appends the values to the existing list (if
any). Use setOKActions(java.util.Collection)
or
withOKActions(java.util.Collection)
if you want to override the
existing values.
oKActions
- The list of actions to execute when this alarm transitions into an
OK
state from any other state. Each action is
specified as an Amazon Resource Name (ARN).
Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover
Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer -account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws: swf:us-east-1:{customer-account}:action/actions/AWS_EC2 .InstanceId.Terminate/1.0 | arn:aws:swf:us-east-1:{customer-account }:action/actions/AWS_EC2.InstanceId.Reboot/1.0
Note: You must create at least one stop, terminate, or reboot alarm using the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role for the first time. After this IAM role is created, you can create stop, terminate, or reboot alarms using the CLI.
public PutMetricAlarmRequest withOKActions(java.util.Collection<java.lang.String> oKActions)
The list of actions to execute when this alarm transitions into an
OK
state from any other state. Each action is specified as
an Amazon Resource Name (ARN).
Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover
Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer- account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:us-east -1:{customer-account}:action/actions/AWS_EC2.InstanceId .Terminate/1.0 | arn:aws:swf:us-east-1:{customer-account}:action/actions /AWS_EC2.InstanceId.Reboot/1.0
Note: You must create at least one stop, terminate, or reboot alarm using the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role for the first time. After this IAM role is created, you can create stop, terminate, or reboot alarms using the CLI.
oKActions
- The list of actions to execute when this alarm transitions into an
OK
state from any other state. Each action is
specified as an Amazon Resource Name (ARN).
Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover
Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer -account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws: swf:us-east-1:{customer-account}:action/actions/AWS_EC2 .InstanceId.Terminate/1.0 | arn:aws:swf:us-east-1:{customer-account }:action/actions/AWS_EC2.InstanceId.Reboot/1.0
Note: You must create at least one stop, terminate, or reboot alarm using the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role for the first time. After this IAM role is created, you can create stop, terminate, or reboot alarms using the CLI.
public java.util.List<java.lang.String> getAlarmActions()
The list of actions to execute when this alarm transitions into an
ALARM
state from any other state. Each action is specified
as an Amazon Resource Name (ARN).
Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover
Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer- account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:us-east -1:{customer-account}:action/actions/AWS_EC2.InstanceId .Terminate/1.0 | arn:aws:swf:us-east-1:{customer-account}:action/actions /AWS_EC2.InstanceId.Reboot/1.0
Note: You must create at least one stop, terminate, or reboot alarm using the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role for the first time. After this IAM role is created, you can create stop, terminate, or reboot alarms using the CLI.
ALARM
state from any other state. Each action is
specified as an Amazon Resource Name (ARN).
Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover
Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer -account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws :swf:us-east-1:{customer-account}:action/actions/AWS_EC2 .InstanceId.Terminate/1.0 | arn:aws:swf:us-east-1:{customer-account }:action/actions/AWS_EC2.InstanceId.Reboot/1.0
Note: You must create at least one stop, terminate, or reboot alarm using the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role for the first time. After this IAM role is created, you can create stop, terminate, or reboot alarms using the CLI.
public void setAlarmActions(java.util.Collection<java.lang.String> alarmActions)
The list of actions to execute when this alarm transitions into an
ALARM
state from any other state. Each action is specified
as an Amazon Resource Name (ARN).
Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover
Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer- account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:us-east -1:{customer-account}:action/actions/AWS_EC2.InstanceId .Terminate/1.0 | arn:aws:swf:us-east-1:{customer-account}:action/actions /AWS_EC2.InstanceId.Reboot/1.0
Note: You must create at least one stop, terminate, or reboot alarm using the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role for the first time. After this IAM role is created, you can create stop, terminate, or reboot alarms using the CLI.
alarmActions
- The list of actions to execute when this alarm transitions into an
ALARM
state from any other state. Each action is
specified as an Amazon Resource Name (ARN).
Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover
Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer -account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws: swf:us-east-1:{customer-account}:action/actions/AWS_EC2 .InstanceId.Terminate/1.0 | arn:aws:swf:us-east-1:{customer-account }:action/actions/AWS_EC2.InstanceId.Reboot/1.0
Note: You must create at least one stop, terminate, or reboot alarm using the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role for the first time. After this IAM role is created, you can create stop, terminate, or reboot alarms using the CLI.
public PutMetricAlarmRequest withAlarmActions(java.lang.String... alarmActions)
The list of actions to execute when this alarm transitions into an
ALARM
state from any other state. Each action is specified
as an Amazon Resource Name (ARN).
Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover
Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer- account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:us-east -1:{customer-account}:action/actions/AWS_EC2.InstanceId .Terminate/1.0 | arn:aws:swf:us-east-1:{customer-account}:action/actions /AWS_EC2.InstanceId.Reboot/1.0
Note: You must create at least one stop, terminate, or reboot alarm using the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role for the first time. After this IAM role is created, you can create stop, terminate, or reboot alarms using the CLI.
NOTE: This method appends the values to the existing list (if
any). Use setAlarmActions(java.util.Collection)
or
withAlarmActions(java.util.Collection)
if you want to override
the existing values.
alarmActions
- The list of actions to execute when this alarm transitions into an
ALARM
state from any other state. Each action is
specified as an Amazon Resource Name (ARN).
Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover
Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer -account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws: swf:us-east-1:{customer-account}:action/actions/AWS_EC2 .InstanceId.Terminate/1.0 | arn:aws:swf:us-east-1:{customer-account }:action/actions/AWS_EC2.InstanceId.Reboot/1.0
Note: You must create at least one stop, terminate, or reboot alarm using the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role for the first time. After this IAM role is created, you can create stop, terminate, or reboot alarms using the CLI.
public PutMetricAlarmRequest withAlarmActions(java.util.Collection<java.lang.String> alarmActions)
The list of actions to execute when this alarm transitions into an
ALARM
state from any other state. Each action is specified
as an Amazon Resource Name (ARN).
Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover
Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer- account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:us-east -1:{customer-account}:action/actions/AWS_EC2.InstanceId .Terminate/1.0 | arn:aws:swf:us-east-1:{customer-account}:action/actions /AWS_EC2.InstanceId.Reboot/1.0
Note: You must create at least one stop, terminate, or reboot alarm using the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role for the first time. After this IAM role is created, you can create stop, terminate, or reboot alarms using the CLI.
alarmActions
- The list of actions to execute when this alarm transitions into an
ALARM
state from any other state. Each action is
specified as an Amazon Resource Name (ARN).
Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover
Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer -account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws: swf:us-east-1:{customer-account}:action/actions/AWS_EC2 .InstanceId.Terminate/1.0 | arn:aws:swf:us-east-1:{customer-account }:action/actions/AWS_EC2.InstanceId.Reboot/1.0
Note: You must create at least one stop, terminate, or reboot alarm using the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role for the first time. After this IAM role is created, you can create stop, terminate, or reboot alarms using the CLI.
public java.util.List<java.lang.String> getInsufficientDataActions()
The list of actions to execute when this alarm transitions into an
INSUFFICIENT_DATA
state from any other state. Each action is
specified as an Amazon Resource Name (ARN).
Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover
Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer- account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:us-east -1:{customer-account}:action/actions/AWS_EC2.InstanceId .Terminate/1.0 | arn:aws:swf:us-east-1:{customer-account}:action/actions /AWS_EC2.InstanceId.Reboot/1.0
Note: You must create at least one stop, terminate, or reboot alarm using the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role for the first time. After this IAM role is created, you can create stop, terminate, or reboot alarms using the CLI.
INSUFFICIENT_DATA
state from any other state.
Each action is specified as an Amazon Resource Name (ARN).
Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover
Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer -account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws :swf:us-east-1:{customer-account}:action/actions/AWS_EC2 .InstanceId.Terminate/1.0 | arn:aws:swf:us-east-1:{customer-account }:action/actions/AWS_EC2.InstanceId.Reboot/1.0
Note: You must create at least one stop, terminate, or reboot alarm using the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role for the first time. After this IAM role is created, you can create stop, terminate, or reboot alarms using the CLI.
public void setInsufficientDataActions(java.util.Collection<java.lang.String> insufficientDataActions)
The list of actions to execute when this alarm transitions into an
INSUFFICIENT_DATA
state from any other state. Each action is
specified as an Amazon Resource Name (ARN).
Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover
Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer- account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:us-east -1:{customer-account}:action/actions/AWS_EC2.InstanceId .Terminate/1.0 | arn:aws:swf:us-east-1:{customer-account}:action/actions /AWS_EC2.InstanceId.Reboot/1.0
Note: You must create at least one stop, terminate, or reboot alarm using the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role for the first time. After this IAM role is created, you can create stop, terminate, or reboot alarms using the CLI.
insufficientDataActions
- The list of actions to execute when this alarm transitions into an
INSUFFICIENT_DATA
state from any other state. Each
action is specified as an Amazon Resource Name (ARN).
Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover
Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer -account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws: swf:us-east-1:{customer-account}:action/actions/AWS_EC2 .InstanceId.Terminate/1.0 | arn:aws:swf:us-east-1:{customer-account }:action/actions/AWS_EC2.InstanceId.Reboot/1.0
Note: You must create at least one stop, terminate, or reboot alarm using the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role for the first time. After this IAM role is created, you can create stop, terminate, or reboot alarms using the CLI.
public PutMetricAlarmRequest withInsufficientDataActions(java.lang.String... insufficientDataActions)
The list of actions to execute when this alarm transitions into an
INSUFFICIENT_DATA
state from any other state. Each action is
specified as an Amazon Resource Name (ARN).
Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover
Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer- account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:us-east -1:{customer-account}:action/actions/AWS_EC2.InstanceId .Terminate/1.0 | arn:aws:swf:us-east-1:{customer-account}:action/actions /AWS_EC2.InstanceId.Reboot/1.0
Note: You must create at least one stop, terminate, or reboot alarm using the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role for the first time. After this IAM role is created, you can create stop, terminate, or reboot alarms using the CLI.
NOTE: This method appends the values to the existing list (if
any). Use setInsufficientDataActions(java.util.Collection)
or
withInsufficientDataActions(java.util.Collection)
if you want to
override the existing values.
insufficientDataActions
- The list of actions to execute when this alarm transitions into an
INSUFFICIENT_DATA
state from any other state. Each
action is specified as an Amazon Resource Name (ARN).
Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover
Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer -account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws: swf:us-east-1:{customer-account}:action/actions/AWS_EC2 .InstanceId.Terminate/1.0 | arn:aws:swf:us-east-1:{customer-account }:action/actions/AWS_EC2.InstanceId.Reboot/1.0
Note: You must create at least one stop, terminate, or reboot alarm using the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role for the first time. After this IAM role is created, you can create stop, terminate, or reboot alarms using the CLI.
public PutMetricAlarmRequest withInsufficientDataActions(java.util.Collection<java.lang.String> insufficientDataActions)
The list of actions to execute when this alarm transitions into an
INSUFFICIENT_DATA
state from any other state. Each action is
specified as an Amazon Resource Name (ARN).
Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover
Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer- account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws:swf:us-east -1:{customer-account}:action/actions/AWS_EC2.InstanceId .Terminate/1.0 | arn:aws:swf:us-east-1:{customer-account}:action/actions /AWS_EC2.InstanceId.Reboot/1.0
Note: You must create at least one stop, terminate, or reboot alarm using the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role for the first time. After this IAM role is created, you can create stop, terminate, or reboot alarms using the CLI.
insufficientDataActions
- The list of actions to execute when this alarm transitions into an
INSUFFICIENT_DATA
state from any other state. Each
action is specified as an Amazon Resource Name (ARN).
Valid Values: arn:aws:automate:region (e.g., us-east-1):ec2:stop | arn:aws:automate:region (e.g., us-east-1):ec2:terminate | arn:aws:automate:region (e.g., us-east-1):ec2:recover
Valid Values (for use with IAM roles): arn:aws:swf:us-east-1:{customer -account}:action/actions/AWS_EC2.InstanceId.Stop/1.0 | arn:aws: swf:us-east-1:{customer-account}:action/actions/AWS_EC2 .InstanceId.Terminate/1.0 | arn:aws:swf:us-east-1:{customer-account }:action/actions/AWS_EC2.InstanceId.Reboot/1.0
Note: You must create at least one stop, terminate, or reboot alarm using the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role for the first time. After this IAM role is created, you can create stop, terminate, or reboot alarms using the CLI.
public void setMetricName(java.lang.String metricName)
The name for the alarm's associated metric.
metricName
- The name for the alarm's associated metric.public java.lang.String getMetricName()
The name for the alarm's associated metric.
public PutMetricAlarmRequest withMetricName(java.lang.String metricName)
The name for the alarm's associated metric.
metricName
- The name for the alarm's associated metric.public void setNamespace(java.lang.String namespace)
The namespace for the alarm's associated metric.
namespace
- The namespace for the alarm's associated metric.public java.lang.String getNamespace()
The namespace for the alarm's associated metric.
public PutMetricAlarmRequest withNamespace(java.lang.String namespace)
The namespace for the alarm's associated metric.
namespace
- The namespace for the alarm's associated metric.public void setStatistic(java.lang.String statistic)
The statistic to apply to the alarm's associated metric.
statistic
- The statistic to apply to the alarm's associated metric.Statistic
public java.lang.String getStatistic()
The statistic to apply to the alarm's associated metric.
Statistic
public PutMetricAlarmRequest withStatistic(java.lang.String statistic)
The statistic to apply to the alarm's associated metric.
statistic
- The statistic to apply to the alarm's associated metric.Statistic
public void setStatistic(Statistic statistic)
The statistic to apply to the alarm's associated metric.
statistic
- The statistic to apply to the alarm's associated metric.Statistic
public PutMetricAlarmRequest withStatistic(Statistic statistic)
The statistic to apply to the alarm's associated metric.
statistic
- The statistic to apply to the alarm's associated metric.Statistic
public java.util.List<Dimension> getDimensions()
The dimensions for the alarm's associated metric.
public void setDimensions(java.util.Collection<Dimension> dimensions)
The dimensions for the alarm's associated metric.
dimensions
- The dimensions for the alarm's associated metric.public PutMetricAlarmRequest withDimensions(Dimension... dimensions)
The dimensions for the alarm's associated metric.
NOTE: This method appends the values to the existing list (if
any). Use setDimensions(java.util.Collection)
or
withDimensions(java.util.Collection)
if you want to override the
existing values.
dimensions
- The dimensions for the alarm's associated metric.public PutMetricAlarmRequest withDimensions(java.util.Collection<Dimension> dimensions)
The dimensions for the alarm's associated metric.
dimensions
- The dimensions for the alarm's associated metric.public void setPeriod(java.lang.Integer period)
The period in seconds over which the specified statistic is applied.
period
- The period in seconds over which the specified statistic is
applied.public java.lang.Integer getPeriod()
The period in seconds over which the specified statistic is applied.
public PutMetricAlarmRequest withPeriod(java.lang.Integer period)
The period in seconds over which the specified statistic is applied.
period
- The period in seconds over which the specified statistic is
applied.public void setUnit(java.lang.String unit)
The statistic's unit of measure. For example, the units for the Amazon EC2 NetworkIn metric are Bytes because NetworkIn tracks the number of bytes that an instance receives on all network interfaces. You can also specify a unit when you create a custom metric. Units help provide conceptual meaning to your data. Metric data points that specify a unit of measure, such as Percent, are aggregated separately.
Note: If you specify a unit, you must use a unit that is appropriate for the metric. Otherwise, this can cause an Amazon CloudWatch alarm to get stuck in the INSUFFICIENT DATA state.
unit
- The statistic's unit of measure. For example, the units for the
Amazon EC2 NetworkIn metric are Bytes because NetworkIn tracks the
number of bytes that an instance receives on all network
interfaces. You can also specify a unit when you create a custom
metric. Units help provide conceptual meaning to your data. Metric
data points that specify a unit of measure, such as Percent, are
aggregated separately.
Note: If you specify a unit, you must use a unit that is appropriate for the metric. Otherwise, this can cause an Amazon CloudWatch alarm to get stuck in the INSUFFICIENT DATA state.
StandardUnit
public java.lang.String getUnit()
The statistic's unit of measure. For example, the units for the Amazon EC2 NetworkIn metric are Bytes because NetworkIn tracks the number of bytes that an instance receives on all network interfaces. You can also specify a unit when you create a custom metric. Units help provide conceptual meaning to your data. Metric data points that specify a unit of measure, such as Percent, are aggregated separately.
Note: If you specify a unit, you must use a unit that is appropriate for the metric. Otherwise, this can cause an Amazon CloudWatch alarm to get stuck in the INSUFFICIENT DATA state.
Note: If you specify a unit, you must use a unit that is appropriate for the metric. Otherwise, this can cause an Amazon CloudWatch alarm to get stuck in the INSUFFICIENT DATA state.
StandardUnit
public PutMetricAlarmRequest withUnit(java.lang.String unit)
The statistic's unit of measure. For example, the units for the Amazon EC2 NetworkIn metric are Bytes because NetworkIn tracks the number of bytes that an instance receives on all network interfaces. You can also specify a unit when you create a custom metric. Units help provide conceptual meaning to your data. Metric data points that specify a unit of measure, such as Percent, are aggregated separately.
Note: If you specify a unit, you must use a unit that is appropriate for the metric. Otherwise, this can cause an Amazon CloudWatch alarm to get stuck in the INSUFFICIENT DATA state.
unit
- The statistic's unit of measure. For example, the units for the
Amazon EC2 NetworkIn metric are Bytes because NetworkIn tracks the
number of bytes that an instance receives on all network
interfaces. You can also specify a unit when you create a custom
metric. Units help provide conceptual meaning to your data. Metric
data points that specify a unit of measure, such as Percent, are
aggregated separately.
Note: If you specify a unit, you must use a unit that is appropriate for the metric. Otherwise, this can cause an Amazon CloudWatch alarm to get stuck in the INSUFFICIENT DATA state.
StandardUnit
public void setUnit(StandardUnit unit)
The statistic's unit of measure. For example, the units for the Amazon EC2 NetworkIn metric are Bytes because NetworkIn tracks the number of bytes that an instance receives on all network interfaces. You can also specify a unit when you create a custom metric. Units help provide conceptual meaning to your data. Metric data points that specify a unit of measure, such as Percent, are aggregated separately.
Note: If you specify a unit, you must use a unit that is appropriate for the metric. Otherwise, this can cause an Amazon CloudWatch alarm to get stuck in the INSUFFICIENT DATA state.
unit
- The statistic's unit of measure. For example, the units for the
Amazon EC2 NetworkIn metric are Bytes because NetworkIn tracks the
number of bytes that an instance receives on all network
interfaces. You can also specify a unit when you create a custom
metric. Units help provide conceptual meaning to your data. Metric
data points that specify a unit of measure, such as Percent, are
aggregated separately.
Note: If you specify a unit, you must use a unit that is appropriate for the metric. Otherwise, this can cause an Amazon CloudWatch alarm to get stuck in the INSUFFICIENT DATA state.
StandardUnit
public PutMetricAlarmRequest withUnit(StandardUnit unit)
The statistic's unit of measure. For example, the units for the Amazon EC2 NetworkIn metric are Bytes because NetworkIn tracks the number of bytes that an instance receives on all network interfaces. You can also specify a unit when you create a custom metric. Units help provide conceptual meaning to your data. Metric data points that specify a unit of measure, such as Percent, are aggregated separately.
Note: If you specify a unit, you must use a unit that is appropriate for the metric. Otherwise, this can cause an Amazon CloudWatch alarm to get stuck in the INSUFFICIENT DATA state.
unit
- The statistic's unit of measure. For example, the units for the
Amazon EC2 NetworkIn metric are Bytes because NetworkIn tracks the
number of bytes that an instance receives on all network
interfaces. You can also specify a unit when you create a custom
metric. Units help provide conceptual meaning to your data. Metric
data points that specify a unit of measure, such as Percent, are
aggregated separately.
Note: If you specify a unit, you must use a unit that is appropriate for the metric. Otherwise, this can cause an Amazon CloudWatch alarm to get stuck in the INSUFFICIENT DATA state.
StandardUnit
public void setEvaluationPeriods(java.lang.Integer evaluationPeriods)
The number of periods over which data is compared to the specified threshold.
evaluationPeriods
- The number of periods over which data is compared to the specified
threshold.public java.lang.Integer getEvaluationPeriods()
The number of periods over which data is compared to the specified threshold.
public PutMetricAlarmRequest withEvaluationPeriods(java.lang.Integer evaluationPeriods)
The number of periods over which data is compared to the specified threshold.
evaluationPeriods
- The number of periods over which data is compared to the specified
threshold.public void setThreshold(java.lang.Double threshold)
The value against which the specified statistic is compared.
threshold
- The value against which the specified statistic is compared.public java.lang.Double getThreshold()
The value against which the specified statistic is compared.
public PutMetricAlarmRequest withThreshold(java.lang.Double threshold)
The value against which the specified statistic is compared.
threshold
- The value against which the specified statistic is compared.public void setComparisonOperator(java.lang.String comparisonOperator)
The arithmetic operation to use when comparing the specified
Statistic
and Threshold
. The specified
Statistic
value is used as the first operand.
comparisonOperator
- The arithmetic operation to use when comparing the specified
Statistic
and Threshold
. The specified
Statistic
value is used as the first operand.ComparisonOperator
public java.lang.String getComparisonOperator()
The arithmetic operation to use when comparing the specified
Statistic
and Threshold
. The specified
Statistic
value is used as the first operand.
Statistic
and Threshold
. The specified
Statistic
value is used as the first operand.ComparisonOperator
public PutMetricAlarmRequest withComparisonOperator(java.lang.String comparisonOperator)
The arithmetic operation to use when comparing the specified
Statistic
and Threshold
. The specified
Statistic
value is used as the first operand.
comparisonOperator
- The arithmetic operation to use when comparing the specified
Statistic
and Threshold
. The specified
Statistic
value is used as the first operand.ComparisonOperator
public void setComparisonOperator(ComparisonOperator comparisonOperator)
The arithmetic operation to use when comparing the specified
Statistic
and Threshold
. The specified
Statistic
value is used as the first operand.
comparisonOperator
- The arithmetic operation to use when comparing the specified
Statistic
and Threshold
. The specified
Statistic
value is used as the first operand.ComparisonOperator
public PutMetricAlarmRequest withComparisonOperator(ComparisonOperator comparisonOperator)
The arithmetic operation to use when comparing the specified
Statistic
and Threshold
. The specified
Statistic
value is used as the first operand.
comparisonOperator
- The arithmetic operation to use when comparing the specified
Statistic
and Threshold
. The specified
Statistic
value is used as the first operand.ComparisonOperator
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 PutMetricAlarmRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()