/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains the notification settings of an alarm model. The settings apply to
* all alarms that were created based on this alarm model.See Also:
* AWS
* API Reference
Specifies an AWS Lambda function to manage alarm notifications. You can * create one or use the AWS * Lambda function provided by AWS IoT Events.
*/ inline const NotificationTargetActions& GetAction() const{ return m_action; } /** *Specifies an AWS Lambda function to manage alarm notifications. You can * create one or use the AWS * Lambda function provided by AWS IoT Events.
*/ inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } /** *Specifies an AWS Lambda function to manage alarm notifications. You can * create one or use the AWS * Lambda function provided by AWS IoT Events.
*/ inline void SetAction(const NotificationTargetActions& value) { m_actionHasBeenSet = true; m_action = value; } /** *Specifies an AWS Lambda function to manage alarm notifications. You can * create one or use the AWS * Lambda function provided by AWS IoT Events.
*/ inline void SetAction(NotificationTargetActions&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } /** *Specifies an AWS Lambda function to manage alarm notifications. You can * create one or use the AWS * Lambda function provided by AWS IoT Events.
*/ inline NotificationAction& WithAction(const NotificationTargetActions& value) { SetAction(value); return *this;} /** *Specifies an AWS Lambda function to manage alarm notifications. You can * create one or use the AWS * Lambda function provided by AWS IoT Events.
*/ inline NotificationAction& WithAction(NotificationTargetActions&& value) { SetAction(std::move(value)); return *this;} /** *Contains the configuration information of SMS notifications.
*/ inline const Aws::VectorContains the configuration information of SMS notifications.
*/ inline bool SmsConfigurationsHasBeenSet() const { return m_smsConfigurationsHasBeenSet; } /** *Contains the configuration information of SMS notifications.
*/ inline void SetSmsConfigurations(const Aws::VectorContains the configuration information of SMS notifications.
*/ inline void SetSmsConfigurations(Aws::VectorContains the configuration information of SMS notifications.
*/ inline NotificationAction& WithSmsConfigurations(const Aws::VectorContains the configuration information of SMS notifications.
*/ inline NotificationAction& WithSmsConfigurations(Aws::VectorContains the configuration information of SMS notifications.
*/ inline NotificationAction& AddSmsConfigurations(const SMSConfiguration& value) { m_smsConfigurationsHasBeenSet = true; m_smsConfigurations.push_back(value); return *this; } /** *Contains the configuration information of SMS notifications.
*/ inline NotificationAction& AddSmsConfigurations(SMSConfiguration&& value) { m_smsConfigurationsHasBeenSet = true; m_smsConfigurations.push_back(std::move(value)); return *this; } /** *Contains the configuration information of email notifications.
*/ inline const Aws::VectorContains the configuration information of email notifications.
*/ inline bool EmailConfigurationsHasBeenSet() const { return m_emailConfigurationsHasBeenSet; } /** *Contains the configuration information of email notifications.
*/ inline void SetEmailConfigurations(const Aws::VectorContains the configuration information of email notifications.
*/ inline void SetEmailConfigurations(Aws::VectorContains the configuration information of email notifications.
*/ inline NotificationAction& WithEmailConfigurations(const Aws::VectorContains the configuration information of email notifications.
*/ inline NotificationAction& WithEmailConfigurations(Aws::VectorContains the configuration information of email notifications.
*/ inline NotificationAction& AddEmailConfigurations(const EmailConfiguration& value) { m_emailConfigurationsHasBeenSet = true; m_emailConfigurations.push_back(value); return *this; } /** *Contains the configuration information of email notifications.
*/ inline NotificationAction& AddEmailConfigurations(EmailConfiguration&& value) { m_emailConfigurationsHasBeenSet = true; m_emailConfigurations.push_back(std::move(value)); return *this; } private: NotificationTargetActions m_action; bool m_actionHasBeenSet = false; Aws::Vector