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

Contains the configuration information of email notifications.

See * Also:

AWS * API Reference

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

The email address that sends emails.

If you use the AWS * IoT Events managed AWS Lambda function to manage your emails, you must verify * the email address that sends emails in Amazon SES.

*/ inline const Aws::String& GetFrom() const{ return m_from; } /** *

The email address that sends emails.

If you use the AWS * IoT Events managed AWS Lambda function to manage your emails, you must verify * the email address that sends emails in Amazon SES.

*/ inline bool FromHasBeenSet() const { return m_fromHasBeenSet; } /** *

The email address that sends emails.

If you use the AWS * IoT Events managed AWS Lambda function to manage your emails, you must verify * the email address that sends emails in Amazon SES.

*/ inline void SetFrom(const Aws::String& value) { m_fromHasBeenSet = true; m_from = value; } /** *

The email address that sends emails.

If you use the AWS * IoT Events managed AWS Lambda function to manage your emails, you must verify * the email address that sends emails in Amazon SES.

*/ inline void SetFrom(Aws::String&& value) { m_fromHasBeenSet = true; m_from = std::move(value); } /** *

The email address that sends emails.

If you use the AWS * IoT Events managed AWS Lambda function to manage your emails, you must verify * the email address that sends emails in Amazon SES.

*/ inline void SetFrom(const char* value) { m_fromHasBeenSet = true; m_from.assign(value); } /** *

The email address that sends emails.

If you use the AWS * IoT Events managed AWS Lambda function to manage your emails, you must verify * the email address that sends emails in Amazon SES.

*/ inline EmailConfiguration& WithFrom(const Aws::String& value) { SetFrom(value); return *this;} /** *

The email address that sends emails.

If you use the AWS * IoT Events managed AWS Lambda function to manage your emails, you must verify * the email address that sends emails in Amazon SES.

*/ inline EmailConfiguration& WithFrom(Aws::String&& value) { SetFrom(std::move(value)); return *this;} /** *

The email address that sends emails.

If you use the AWS * IoT Events managed AWS Lambda function to manage your emails, you must verify * the email address that sends emails in Amazon SES.

*/ inline EmailConfiguration& WithFrom(const char* value) { SetFrom(value); return *this;} /** *

Contains the subject and message of an email.

*/ inline const EmailContent& GetContent() const{ return m_content; } /** *

Contains the subject and message of an email.

*/ inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; } /** *

Contains the subject and message of an email.

*/ inline void SetContent(const EmailContent& value) { m_contentHasBeenSet = true; m_content = value; } /** *

Contains the subject and message of an email.

*/ inline void SetContent(EmailContent&& value) { m_contentHasBeenSet = true; m_content = std::move(value); } /** *

Contains the subject and message of an email.

*/ inline EmailConfiguration& WithContent(const EmailContent& value) { SetContent(value); return *this;} /** *

Contains the subject and message of an email.

*/ inline EmailConfiguration& WithContent(EmailContent&& value) { SetContent(std::move(value)); return *this;} /** *

Contains the information of one or more recipients who receive the * emails.

You must add * the users that receive emails to your AWS SSO store.

*/ inline const EmailRecipients& GetRecipients() const{ return m_recipients; } /** *

Contains the information of one or more recipients who receive the * emails.

You must add * the users that receive emails to your AWS SSO store.

*/ inline bool RecipientsHasBeenSet() const { return m_recipientsHasBeenSet; } /** *

Contains the information of one or more recipients who receive the * emails.

You must add * the users that receive emails to your AWS SSO store.

*/ inline void SetRecipients(const EmailRecipients& value) { m_recipientsHasBeenSet = true; m_recipients = value; } /** *

Contains the information of one or more recipients who receive the * emails.

You must add * the users that receive emails to your AWS SSO store.

*/ inline void SetRecipients(EmailRecipients&& value) { m_recipientsHasBeenSet = true; m_recipients = std::move(value); } /** *

Contains the information of one or more recipients who receive the * emails.

You must add * the users that receive emails to your AWS SSO store.

*/ inline EmailConfiguration& WithRecipients(const EmailRecipients& value) { SetRecipients(value); return *this;} /** *

Contains the information of one or more recipients who receive the * emails.

You must add * the users that receive emails to your AWS SSO store.

*/ inline EmailConfiguration& WithRecipients(EmailRecipients&& value) { SetRecipients(std::move(value)); return *this;} private: Aws::String m_from; bool m_fromHasBeenSet = false; EmailContent m_content; bool m_contentHasBeenSet = false; EmailRecipients m_recipients; bool m_recipientsHasBeenSet = false; }; } // namespace Model } // namespace IoTEvents } // namespace Aws