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

An object that describes the recipients for an email.

See * Also:

AWS * API Reference

*/ class Destination { public: AWS_PINPOINTEMAIL_API Destination(); AWS_PINPOINTEMAIL_API Destination(Aws::Utils::Json::JsonView jsonValue); AWS_PINPOINTEMAIL_API Destination& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_PINPOINTEMAIL_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 PinpointEmail } // namespace Aws