Class CustomerAction
- java.lang.Object
-
- software.amazon.awssdk.services.ioteventsdata.model.CustomerAction
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CustomerAction.Builder,CustomerAction>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCustomerAction.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AcknowledgeActionConfigurationacknowledgeActionConfiguration()Contains the configuration information of an acknowledge action.CustomerActionNameactionName()The name of the action.StringactionNameAsString()The name of the action.static CustomerAction.Builderbuilder()DisableActionConfigurationdisableActionConfiguration()Contains the configuration information of a disable action.EnableActionConfigurationenableActionConfiguration()Contains the configuration information of an enable action.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()ResetActionConfigurationresetActionConfiguration()Contains the configuration information of a reset action.List<SdkField<?>>sdkFields()static Class<? extends CustomerAction.Builder>serializableBuilderClass()SnoozeActionConfigurationsnoozeActionConfiguration()Contains the configuration information of a snooze action.CustomerAction.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
actionName
public 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 toSNOOZE_DISABLED. -
ENABLE- When you enable the alarm, the alarm state changes toNORMAL. -
DISABLE- When you disable the alarm, the alarm state changes toDISABLED. -
ACKNOWLEDGE- When you acknowledge the alarm, the alarm state changes toACKNOWLEDGED. -
RESET- When you reset the alarm, the alarm state changes toNORMAL.
For more information, see the AlarmState API.
If the service returns an enum value that is not available in the current SDK version,
actionNamewill returnCustomerActionName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromactionNameAsString().- Returns:
- 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 toSNOOZE_DISABLED. -
ENABLE- When you enable the alarm, the alarm state changes toNORMAL. -
DISABLE- When you disable the alarm, the alarm state changes toDISABLED. -
ACKNOWLEDGE- When you acknowledge the alarm, the alarm state changes toACKNOWLEDGED. -
RESET- When you reset the alarm, the alarm state changes toNORMAL.
For more information, see the AlarmState API.
-
- See Also:
CustomerActionName
-
-
actionNameAsString
public 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 toSNOOZE_DISABLED. -
ENABLE- When you enable the alarm, the alarm state changes toNORMAL. -
DISABLE- When you disable the alarm, the alarm state changes toDISABLED. -
ACKNOWLEDGE- When you acknowledge the alarm, the alarm state changes toACKNOWLEDGED. -
RESET- When you reset the alarm, the alarm state changes toNORMAL.
For more information, see the AlarmState API.
If the service returns an enum value that is not available in the current SDK version,
actionNamewill returnCustomerActionName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromactionNameAsString().- Returns:
- 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 toSNOOZE_DISABLED. -
ENABLE- When you enable the alarm, the alarm state changes toNORMAL. -
DISABLE- When you disable the alarm, the alarm state changes toDISABLED. -
ACKNOWLEDGE- When you acknowledge the alarm, the alarm state changes toACKNOWLEDGED. -
RESET- When you reset the alarm, the alarm state changes toNORMAL.
For more information, see the AlarmState API.
-
- See Also:
CustomerActionName
-
-
snoozeActionConfiguration
public final SnoozeActionConfiguration snoozeActionConfiguration()
Contains the configuration information of a snooze action.
- Returns:
- Contains the configuration information of a snooze action.
-
enableActionConfiguration
public final EnableActionConfiguration enableActionConfiguration()
Contains the configuration information of an enable action.
- Returns:
- Contains the configuration information of an enable action.
-
disableActionConfiguration
public final DisableActionConfiguration disableActionConfiguration()
Contains the configuration information of a disable action.
- Returns:
- Contains the configuration information of a disable action.
-
acknowledgeActionConfiguration
public final AcknowledgeActionConfiguration acknowledgeActionConfiguration()
Contains the configuration information of an acknowledge action.
- Returns:
- Contains the configuration information of an acknowledge action.
-
resetActionConfiguration
public final ResetActionConfiguration resetActionConfiguration()
Contains the configuration information of a reset action.
- Returns:
- Contains the configuration information of a reset action.
-
toBuilder
public CustomerAction.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CustomerAction.Builder,CustomerAction>
-
builder
public static CustomerAction.Builder builder()
-
serializableBuilderClass
public static Class<? extends CustomerAction.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-