/** * 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 the information of one or more recipients who receive the * emails.

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

*

See Also:

AWS * API Reference

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

Specifies one or more recipients who receive the email.

*/ inline const Aws::Vector& GetTo() const{ return m_to; } /** *

Specifies one or more recipients who receive the email.

*/ inline bool ToHasBeenSet() const { return m_toHasBeenSet; } /** *

Specifies one or more recipients who receive the email.

*/ inline void SetTo(const Aws::Vector& value) { m_toHasBeenSet = true; m_to = value; } /** *

Specifies one or more recipients who receive the email.

*/ inline void SetTo(Aws::Vector&& value) { m_toHasBeenSet = true; m_to = std::move(value); } /** *

Specifies one or more recipients who receive the email.

*/ inline EmailRecipients& WithTo(const Aws::Vector& value) { SetTo(value); return *this;} /** *

Specifies one or more recipients who receive the email.

*/ inline EmailRecipients& WithTo(Aws::Vector&& value) { SetTo(std::move(value)); return *this;} /** *

Specifies one or more recipients who receive the email.

*/ inline EmailRecipients& AddTo(const RecipientDetail& value) { m_toHasBeenSet = true; m_to.push_back(value); return *this; } /** *

Specifies one or more recipients who receive the email.

*/ inline EmailRecipients& AddTo(RecipientDetail&& value) { m_toHasBeenSet = true; m_to.push_back(std::move(value)); return *this; } private: Aws::Vector m_to; bool m_toHasBeenSet = false; }; } // namespace Model } // namespace IoTEvents } // namespace Aws