@Generated(value="software.amazon.awssdk:codegen") public final class TestAlarmRequest extends LightsailRequest implements ToCopyableBuilder<TestAlarmRequest.Builder,TestAlarmRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
TestAlarmRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
alarmName()
The name of the alarm to test.
|
static TestAlarmRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends TestAlarmRequest.Builder> |
serializableBuilderClass() |
AlarmState |
state()
The alarm state to test.
|
String |
stateAsString()
The alarm state to test.
|
TestAlarmRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String alarmName()
The name of the alarm to test.
public final 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.
If the service returns an enum value that is not available in the current SDK version, state will return
AlarmState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
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.
AlarmStatepublic final String stateAsString()
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.
If the service returns an enum value that is not available in the current SDK version, state will return
AlarmState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
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.
AlarmStatepublic TestAlarmRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<TestAlarmRequest.Builder,TestAlarmRequest>toBuilder in class LightsailRequestpublic static TestAlarmRequest.Builder builder()
public static Class<? extends TestAlarmRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2021. All rights reserved.