@Generated(value="software.amazon.awssdk:codegen") public final class CustomerAction extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CustomerAction.Builder,CustomerAction>
Contains information about the action that you can take to respond to the alarm.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CustomerAction.Builder |
| Modifier and Type | Method and Description |
|---|---|
AcknowledgeActionConfiguration |
acknowledgeActionConfiguration()
Contains the configuration information of an acknowledge action.
|
CustomerActionName |
actionName()
The name of the action.
|
String |
actionNameAsString()
The name of the action.
|
static CustomerAction.Builder |
builder() |
DisableActionConfiguration |
disableActionConfiguration()
Contains the configuration information of a disable action.
|
EnableActionConfiguration |
enableActionConfiguration()
Contains the configuration information of an enable action.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
ResetActionConfiguration |
resetActionConfiguration()
Contains the configuration information of a reset action.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CustomerAction.Builder> |
serializableBuilderClass() |
SnoozeActionConfiguration |
snoozeActionConfiguration()
Contains the configuration information of a snooze action.
|
CustomerAction.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final CustomerActionName actionName()
The name of the action. The action name can be one of the following values:
SNOOZE - When you snooze the alarm, the alarm state changes to SNOOZE_DISABLED.
ENABLE - When you enable the alarm, the alarm state changes to NORMAL.
DISABLE - When you disable the alarm, the alarm state changes to DISABLED.
ACKNOWLEDGE - When you acknowledge the alarm, the alarm state changes to ACKNOWLEDGED.
RESET - When you reset the alarm, the alarm state changes to NORMAL.
For more information, see the AlarmState API.
If the service returns an enum value that is not available in the current SDK version, actionName will
return CustomerActionName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
actionNameAsString().
SNOOZE - When you snooze the alarm, the alarm state changes to SNOOZE_DISABLED.
ENABLE - When you enable the alarm, the alarm state changes to NORMAL.
DISABLE - When you disable the alarm, the alarm state changes to DISABLED.
ACKNOWLEDGE - When you acknowledge the alarm, the alarm state changes to
ACKNOWLEDGED.
RESET - When you reset the alarm, the alarm state changes to NORMAL.
For more information, see the AlarmState API.
CustomerActionNamepublic final String actionNameAsString()
The name of the action. The action name can be one of the following values:
SNOOZE - When you snooze the alarm, the alarm state changes to SNOOZE_DISABLED.
ENABLE - When you enable the alarm, the alarm state changes to NORMAL.
DISABLE - When you disable the alarm, the alarm state changes to DISABLED.
ACKNOWLEDGE - When you acknowledge the alarm, the alarm state changes to ACKNOWLEDGED.
RESET - When you reset the alarm, the alarm state changes to NORMAL.
For more information, see the AlarmState API.
If the service returns an enum value that is not available in the current SDK version, actionName will
return CustomerActionName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
actionNameAsString().
SNOOZE - When you snooze the alarm, the alarm state changes to SNOOZE_DISABLED.
ENABLE - When you enable the alarm, the alarm state changes to NORMAL.
DISABLE - When you disable the alarm, the alarm state changes to DISABLED.
ACKNOWLEDGE - When you acknowledge the alarm, the alarm state changes to
ACKNOWLEDGED.
RESET - When you reset the alarm, the alarm state changes to NORMAL.
For more information, see the AlarmState API.
CustomerActionNamepublic final SnoozeActionConfiguration snoozeActionConfiguration()
Contains the configuration information of a snooze action.
public final EnableActionConfiguration enableActionConfiguration()
Contains the configuration information of an enable action.
public final DisableActionConfiguration disableActionConfiguration()
Contains the configuration information of a disable action.
public final AcknowledgeActionConfiguration acknowledgeActionConfiguration()
Contains the configuration information of an acknowledge action.
public final ResetActionConfiguration resetActionConfiguration()
Contains the configuration information of a reset action.
public CustomerAction.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CustomerAction.Builder,CustomerAction>public static CustomerAction.Builder builder()
public static Class<? extends CustomerAction.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.