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

Contains the configuration information of alarm state changes.

See * Also:

AWS * API Reference

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

The trigger type. If the value is SNOOZE_TIMEOUT, the snooze * duration ends and the alarm automatically changes to the NORMAL * state.

*/ inline const TriggerType& GetTriggerType() const{ return m_triggerType; } /** *

The trigger type. If the value is SNOOZE_TIMEOUT, the snooze * duration ends and the alarm automatically changes to the NORMAL * state.

*/ inline bool TriggerTypeHasBeenSet() const { return m_triggerTypeHasBeenSet; } /** *

The trigger type. If the value is SNOOZE_TIMEOUT, the snooze * duration ends and the alarm automatically changes to the NORMAL * state.

*/ inline void SetTriggerType(const TriggerType& value) { m_triggerTypeHasBeenSet = true; m_triggerType = value; } /** *

The trigger type. If the value is SNOOZE_TIMEOUT, the snooze * duration ends and the alarm automatically changes to the NORMAL * state.

*/ inline void SetTriggerType(TriggerType&& value) { m_triggerTypeHasBeenSet = true; m_triggerType = std::move(value); } /** *

The trigger type. If the value is SNOOZE_TIMEOUT, the snooze * duration ends and the alarm automatically changes to the NORMAL * state.

*/ inline StateChangeConfiguration& WithTriggerType(const TriggerType& value) { SetTriggerType(value); return *this;} /** *

The trigger type. If the value is SNOOZE_TIMEOUT, the snooze * duration ends and the alarm automatically changes to the NORMAL * state.

*/ inline StateChangeConfiguration& WithTriggerType(TriggerType&& value) { SetTriggerType(std::move(value)); return *this;} private: TriggerType m_triggerType; bool m_triggerTypeHasBeenSet = false; }; } // namespace Model } // namespace IoTEventsData } // namespace Aws