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

Contains information about one or more alarm actions.

See * Also:

AWS * API Reference

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

Specifies one or more supported actions to receive notifications when the * alarm state changes.

*/ inline const Aws::Vector& GetAlarmActions() const{ return m_alarmActions; } /** *

Specifies one or more supported actions to receive notifications when the * alarm state changes.

*/ inline bool AlarmActionsHasBeenSet() const { return m_alarmActionsHasBeenSet; } /** *

Specifies one or more supported actions to receive notifications when the * alarm state changes.

*/ inline void SetAlarmActions(const Aws::Vector& value) { m_alarmActionsHasBeenSet = true; m_alarmActions = value; } /** *

Specifies one or more supported actions to receive notifications when the * alarm state changes.

*/ inline void SetAlarmActions(Aws::Vector&& value) { m_alarmActionsHasBeenSet = true; m_alarmActions = std::move(value); } /** *

Specifies one or more supported actions to receive notifications when the * alarm state changes.

*/ inline AlarmEventActions& WithAlarmActions(const Aws::Vector& value) { SetAlarmActions(value); return *this;} /** *

Specifies one or more supported actions to receive notifications when the * alarm state changes.

*/ inline AlarmEventActions& WithAlarmActions(Aws::Vector&& value) { SetAlarmActions(std::move(value)); return *this;} /** *

Specifies one or more supported actions to receive notifications when the * alarm state changes.

*/ inline AlarmEventActions& AddAlarmActions(const AlarmAction& value) { m_alarmActionsHasBeenSet = true; m_alarmActions.push_back(value); return *this; } /** *

Specifies one or more supported actions to receive notifications when the * alarm state changes.

*/ inline AlarmEventActions& AddAlarmActions(AlarmAction&& value) { m_alarmActionsHasBeenSet = true; m_alarmActions.push_back(std::move(value)); return *this; } private: Aws::Vector m_alarmActions; bool m_alarmActionsHasBeenSet = false; }; } // namespace Model } // namespace IoTEvents } // namespace Aws