/** * 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 SESV2 { namespace Model { /** *

An object that describes the recipients for an email.

Amazon * SES does not support the SMTPUTF8 extension, as described in RFC6531. For this reason, the * local part of a destination email address (the part of the email address * that precedes the @ sign) may only contain 7-bit ASCII * characters. If the domain part of an address (the part after the @ * sign) contains non-ASCII characters, they must be encoded using Punycode, as * described in RFC3492.

*

See Also:

AWS * API Reference

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

An array that contains the email addresses of the "To" recipients for the * email.

*/ inline const Aws::Vector& GetToAddresses() const{ return m_toAddresses; } /** *

An array that contains the email addresses of the "To" recipients for the * email.

*/ inline bool ToAddressesHasBeenSet() const { return m_toAddressesHasBeenSet; } /** *

An array that contains the email addresses of the "To" recipients for the * email.

*/ inline void SetToAddresses(const Aws::Vector& value) { m_toAddressesHasBeenSet = true; m_toAddresses = value; } /** *

An array that contains the email addresses of the "To" recipients for the * email.

*/ inline void SetToAddresses(Aws::Vector&& value) { m_toAddressesHasBeenSet = true; m_toAddresses = std::move(value); } /** *

An array that contains the email addresses of the "To" recipients for the * email.

*/ inline Destination& WithToAddresses(const Aws::Vector& value) { SetToAddresses(value); return *this;} /** *

An array that contains the email addresses of the "To" recipients for the * email.

*/ inline Destination& WithToAddresses(Aws::Vector&& value) { SetToAddresses(std::move(value)); return *this;} /** *

An array that contains the email addresses of the "To" recipients for the * email.

*/ inline Destination& AddToAddresses(const Aws::String& value) { m_toAddressesHasBeenSet = true; m_toAddresses.push_back(value); return *this; } /** *

An array that contains the email addresses of the "To" recipients for the * email.

*/ inline Destination& AddToAddresses(Aws::String&& value) { m_toAddressesHasBeenSet = true; m_toAddresses.push_back(std::move(value)); return *this; } /** *

An array that contains the email addresses of the "To" recipients for the * email.

*/ inline Destination& AddToAddresses(const char* value) { m_toAddressesHasBeenSet = true; m_toAddresses.push_back(value); return *this; } /** *

An array that contains the email addresses of the "CC" (carbon copy) * recipients for the email.

*/ inline const Aws::Vector& GetCcAddresses() const{ return m_ccAddresses; } /** *

An array that contains the email addresses of the "CC" (carbon copy) * recipients for the email.

*/ inline bool CcAddressesHasBeenSet() const { return m_ccAddressesHasBeenSet; } /** *

An array that contains the email addresses of the "CC" (carbon copy) * recipients for the email.

*/ inline void SetCcAddresses(const Aws::Vector& value) { m_ccAddressesHasBeenSet = true; m_ccAddresses = value; } /** *

An array that contains the email addresses of the "CC" (carbon copy) * recipients for the email.

*/ inline void SetCcAddresses(Aws::Vector&& value) { m_ccAddressesHasBeenSet = true; m_ccAddresses = std::move(value); } /** *

An array that contains the email addresses of the "CC" (carbon copy) * recipients for the email.

*/ inline Destination& WithCcAddresses(const Aws::Vector& value) { SetCcAddresses(value); return *this;} /** *

An array that contains the email addresses of the "CC" (carbon copy) * recipients for the email.

*/ inline Destination& WithCcAddresses(Aws::Vector&& value) { SetCcAddresses(std::move(value)); return *this;} /** *

An array that contains the email addresses of the "CC" (carbon copy) * recipients for the email.

*/ inline Destination& AddCcAddresses(const Aws::String& value) { m_ccAddressesHasBeenSet = true; m_ccAddresses.push_back(value); return *this; } /** *

An array that contains the email addresses of the "CC" (carbon copy) * recipients for the email.

*/ inline Destination& AddCcAddresses(Aws::String&& value) { m_ccAddressesHasBeenSet = true; m_ccAddresses.push_back(std::move(value)); return *this; } /** *

An array that contains the email addresses of the "CC" (carbon copy) * recipients for the email.

*/ inline Destination& AddCcAddresses(const char* value) { m_ccAddressesHasBeenSet = true; m_ccAddresses.push_back(value); return *this; } /** *

An array that contains the email addresses of the "BCC" (blind carbon copy) * recipients for the email.

*/ inline const Aws::Vector& GetBccAddresses() const{ return m_bccAddresses; } /** *

An array that contains the email addresses of the "BCC" (blind carbon copy) * recipients for the email.

*/ inline bool BccAddressesHasBeenSet() const { return m_bccAddressesHasBeenSet; } /** *

An array that contains the email addresses of the "BCC" (blind carbon copy) * recipients for the email.

*/ inline void SetBccAddresses(const Aws::Vector& value) { m_bccAddressesHasBeenSet = true; m_bccAddresses = value; } /** *

An array that contains the email addresses of the "BCC" (blind carbon copy) * recipients for the email.

*/ inline void SetBccAddresses(Aws::Vector&& value) { m_bccAddressesHasBeenSet = true; m_bccAddresses = std::move(value); } /** *

An array that contains the email addresses of the "BCC" (blind carbon copy) * recipients for the email.

*/ inline Destination& WithBccAddresses(const Aws::Vector& value) { SetBccAddresses(value); return *this;} /** *

An array that contains the email addresses of the "BCC" (blind carbon copy) * recipients for the email.

*/ inline Destination& WithBccAddresses(Aws::Vector&& value) { SetBccAddresses(std::move(value)); return *this;} /** *

An array that contains the email addresses of the "BCC" (blind carbon copy) * recipients for the email.

*/ inline Destination& AddBccAddresses(const Aws::String& value) { m_bccAddressesHasBeenSet = true; m_bccAddresses.push_back(value); return *this; } /** *

An array that contains the email addresses of the "BCC" (blind carbon copy) * recipients for the email.

*/ inline Destination& AddBccAddresses(Aws::String&& value) { m_bccAddressesHasBeenSet = true; m_bccAddresses.push_back(std::move(value)); return *this; } /** *

An array that contains the email addresses of the "BCC" (blind carbon copy) * recipients for the email.

*/ inline Destination& AddBccAddresses(const char* value) { m_bccAddressesHasBeenSet = true; m_bccAddresses.push_back(value); return *this; } private: Aws::Vector m_toAddresses; bool m_toAddressesHasBeenSet = false; Aws::Vector m_ccAddresses; bool m_ccAddressesHasBeenSet = false; Aws::Vector m_bccAddresses; bool m_bccAddressesHasBeenSet = false; }; } // namespace Model } // namespace SESV2 } // namespace Aws