/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IoTEvents { namespace Model { /** *

Specifies whether to get notified for alarm state changes.

See * Also:

AWS * API Reference

*/ class AcknowledgeFlow { public: AWS_IOTEVENTS_API AcknowledgeFlow(); AWS_IOTEVENTS_API AcknowledgeFlow(Aws::Utils::Json::JsonView jsonValue); AWS_IOTEVENTS_API AcknowledgeFlow& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The value must be TRUE or FALSE. If * TRUE, you receive a notification when the alarm state changes. You * must choose to acknowledge the notification before the alarm state can return to * NORMAL. If FALSE, you won't receive notifications. The * alarm automatically changes to the NORMAL state when the input * property value returns to the specified range.

*/ inline bool GetEnabled() const{ return m_enabled; } /** *

The value must be TRUE or FALSE. If * TRUE, you receive a notification when the alarm state changes. You * must choose to acknowledge the notification before the alarm state can return to * NORMAL. If FALSE, you won't receive notifications. The * alarm automatically changes to the NORMAL state when the input * property value returns to the specified range.

*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *

The value must be TRUE or FALSE. If * TRUE, you receive a notification when the alarm state changes. You * must choose to acknowledge the notification before the alarm state can return to * NORMAL. If FALSE, you won't receive notifications. The * alarm automatically changes to the NORMAL state when the input * property value returns to the specified range.

*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *

The value must be TRUE or FALSE. If * TRUE, you receive a notification when the alarm state changes. You * must choose to acknowledge the notification before the alarm state can return to * NORMAL. If FALSE, you won't receive notifications. The * alarm automatically changes to the NORMAL state when the input * property value returns to the specified range.

*/ inline AcknowledgeFlow& WithEnabled(bool value) { SetEnabled(value); return *this;} private: bool m_enabled; bool m_enabledHasBeenSet = false; }; } // namespace Model } // namespace IoTEvents } // namespace Aws