@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TestAlarmRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
TestAlarmRequest() |
Modifier and Type | Method and Description |
---|---|
TestAlarmRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAlarmName()
The name of the alarm to test.
|
String |
getState()
The alarm state to test.
|
int |
hashCode() |
void |
setAlarmName(String alarmName)
The name of the alarm to test.
|
void |
setState(String state)
The alarm state to test.
|
String |
toString()
Returns a string representation of this object.
|
TestAlarmRequest |
withAlarmName(String alarmName)
The name of the alarm to test.
|
TestAlarmRequest |
withState(AlarmState state)
The alarm state to test.
|
TestAlarmRequest |
withState(String state)
The alarm state to test.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setAlarmName(String alarmName)
The name of the alarm to test.
alarmName
- The name of the alarm to test.public String getAlarmName()
The name of the alarm to test.
public TestAlarmRequest withAlarmName(String alarmName)
The name of the alarm to test.
alarmName
- The name of the alarm to test.public void setState(String state)
The alarm state to test.
An alarm has the following possible states that can be tested:
ALARM
- The metric is outside of the defined threshold.
INSUFFICIENT_DATA
- The alarm has just started, the metric is not available, or not enough data is
available for the metric to determine the alarm state.
OK
- The metric is within the defined threshold.
state
- The alarm state to test.
An alarm has the following possible states that can be tested:
ALARM
- The metric is outside of the defined threshold.
INSUFFICIENT_DATA
- The alarm has just started, the metric is not available, or not enough
data is available for the metric to determine the alarm state.
OK
- The metric is within the defined threshold.
AlarmState
public String getState()
The alarm state to test.
An alarm has the following possible states that can be tested:
ALARM
- The metric is outside of the defined threshold.
INSUFFICIENT_DATA
- The alarm has just started, the metric is not available, or not enough data is
available for the metric to determine the alarm state.
OK
- The metric is within the defined threshold.
An alarm has the following possible states that can be tested:
ALARM
- The metric is outside of the defined threshold.
INSUFFICIENT_DATA
- The alarm has just started, the metric is not available, or not enough
data is available for the metric to determine the alarm state.
OK
- The metric is within the defined threshold.
AlarmState
public TestAlarmRequest withState(String state)
The alarm state to test.
An alarm has the following possible states that can be tested:
ALARM
- The metric is outside of the defined threshold.
INSUFFICIENT_DATA
- The alarm has just started, the metric is not available, or not enough data is
available for the metric to determine the alarm state.
OK
- The metric is within the defined threshold.
state
- The alarm state to test.
An alarm has the following possible states that can be tested:
ALARM
- The metric is outside of the defined threshold.
INSUFFICIENT_DATA
- The alarm has just started, the metric is not available, or not enough
data is available for the metric to determine the alarm state.
OK
- The metric is within the defined threshold.
AlarmState
public TestAlarmRequest withState(AlarmState state)
The alarm state to test.
An alarm has the following possible states that can be tested:
ALARM
- The metric is outside of the defined threshold.
INSUFFICIENT_DATA
- The alarm has just started, the metric is not available, or not enough data is
available for the metric to determine the alarm state.
OK
- The metric is within the defined threshold.
state
- The alarm state to test.
An alarm has the following possible states that can be tested:
ALARM
- The metric is outside of the defined threshold.
INSUFFICIENT_DATA
- The alarm has just started, the metric is not available, or not enough
data is available for the metric to determine the alarm state.
OK
- The metric is within the defined threshold.
AlarmState
public String toString()
toString
in class Object
Object.toString()
public TestAlarmRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()