/** * 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 Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace SES { namespace Model { /** *

Represents the notification attributes of an identity, including whether an * identity has Amazon Simple Notification Service (Amazon SNS) topics set for * bounce, complaint, and/or delivery notifications, and whether feedback * forwarding is enabled for bounce and complaint notifications.

See * Also:

AWS * API Reference

*/ class IdentityNotificationAttributes { public: AWS_SES_API IdentityNotificationAttributes(); AWS_SES_API IdentityNotificationAttributes(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_SES_API IdentityNotificationAttributes& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_SES_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_SES_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will * publish bounce notifications.

*/ inline const Aws::String& GetBounceTopic() const{ return m_bounceTopic; } /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will * publish bounce notifications.

*/ inline bool BounceTopicHasBeenSet() const { return m_bounceTopicHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will * publish bounce notifications.

*/ inline void SetBounceTopic(const Aws::String& value) { m_bounceTopicHasBeenSet = true; m_bounceTopic = value; } /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will * publish bounce notifications.

*/ inline void SetBounceTopic(Aws::String&& value) { m_bounceTopicHasBeenSet = true; m_bounceTopic = std::move(value); } /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will * publish bounce notifications.

*/ inline void SetBounceTopic(const char* value) { m_bounceTopicHasBeenSet = true; m_bounceTopic.assign(value); } /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will * publish bounce notifications.

*/ inline IdentityNotificationAttributes& WithBounceTopic(const Aws::String& value) { SetBounceTopic(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will * publish bounce notifications.

*/ inline IdentityNotificationAttributes& WithBounceTopic(Aws::String&& value) { SetBounceTopic(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will * publish bounce notifications.

*/ inline IdentityNotificationAttributes& WithBounceTopic(const char* value) { SetBounceTopic(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will * publish complaint notifications.

*/ inline const Aws::String& GetComplaintTopic() const{ return m_complaintTopic; } /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will * publish complaint notifications.

*/ inline bool ComplaintTopicHasBeenSet() const { return m_complaintTopicHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will * publish complaint notifications.

*/ inline void SetComplaintTopic(const Aws::String& value) { m_complaintTopicHasBeenSet = true; m_complaintTopic = value; } /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will * publish complaint notifications.

*/ inline void SetComplaintTopic(Aws::String&& value) { m_complaintTopicHasBeenSet = true; m_complaintTopic = std::move(value); } /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will * publish complaint notifications.

*/ inline void SetComplaintTopic(const char* value) { m_complaintTopicHasBeenSet = true; m_complaintTopic.assign(value); } /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will * publish complaint notifications.

*/ inline IdentityNotificationAttributes& WithComplaintTopic(const Aws::String& value) { SetComplaintTopic(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will * publish complaint notifications.

*/ inline IdentityNotificationAttributes& WithComplaintTopic(Aws::String&& value) { SetComplaintTopic(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will * publish complaint notifications.

*/ inline IdentityNotificationAttributes& WithComplaintTopic(const char* value) { SetComplaintTopic(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will * publish delivery notifications.

*/ inline const Aws::String& GetDeliveryTopic() const{ return m_deliveryTopic; } /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will * publish delivery notifications.

*/ inline bool DeliveryTopicHasBeenSet() const { return m_deliveryTopicHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will * publish delivery notifications.

*/ inline void SetDeliveryTopic(const Aws::String& value) { m_deliveryTopicHasBeenSet = true; m_deliveryTopic = value; } /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will * publish delivery notifications.

*/ inline void SetDeliveryTopic(Aws::String&& value) { m_deliveryTopicHasBeenSet = true; m_deliveryTopic = std::move(value); } /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will * publish delivery notifications.

*/ inline void SetDeliveryTopic(const char* value) { m_deliveryTopicHasBeenSet = true; m_deliveryTopic.assign(value); } /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will * publish delivery notifications.

*/ inline IdentityNotificationAttributes& WithDeliveryTopic(const Aws::String& value) { SetDeliveryTopic(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will * publish delivery notifications.

*/ inline IdentityNotificationAttributes& WithDeliveryTopic(Aws::String&& value) { SetDeliveryTopic(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the Amazon SNS topic where Amazon SES will * publish delivery notifications.

*/ inline IdentityNotificationAttributes& WithDeliveryTopic(const char* value) { SetDeliveryTopic(value); return *this;} /** *

Describes whether Amazon SES will forward bounce and complaint notifications * as email. true indicates that Amazon SES will forward bounce and * complaint notifications as email, while false indicates that bounce * and complaint notifications will be published only to the specified bounce and * complaint Amazon SNS topics.

*/ inline bool GetForwardingEnabled() const{ return m_forwardingEnabled; } /** *

Describes whether Amazon SES will forward bounce and complaint notifications * as email. true indicates that Amazon SES will forward bounce and * complaint notifications as email, while false indicates that bounce * and complaint notifications will be published only to the specified bounce and * complaint Amazon SNS topics.

*/ inline bool ForwardingEnabledHasBeenSet() const { return m_forwardingEnabledHasBeenSet; } /** *

Describes whether Amazon SES will forward bounce and complaint notifications * as email. true indicates that Amazon SES will forward bounce and * complaint notifications as email, while false indicates that bounce * and complaint notifications will be published only to the specified bounce and * complaint Amazon SNS topics.

*/ inline void SetForwardingEnabled(bool value) { m_forwardingEnabledHasBeenSet = true; m_forwardingEnabled = value; } /** *

Describes whether Amazon SES will forward bounce and complaint notifications * as email. true indicates that Amazon SES will forward bounce and * complaint notifications as email, while false indicates that bounce * and complaint notifications will be published only to the specified bounce and * complaint Amazon SNS topics.

*/ inline IdentityNotificationAttributes& WithForwardingEnabled(bool value) { SetForwardingEnabled(value); return *this;} /** *

Describes whether Amazon SES includes the original email headers in Amazon * SNS notifications of type Bounce. A value of true * specifies that Amazon SES will include headers in bounce notifications, and a * value of false specifies that Amazon SES will not include headers * in bounce notifications.

*/ inline bool GetHeadersInBounceNotificationsEnabled() const{ return m_headersInBounceNotificationsEnabled; } /** *

Describes whether Amazon SES includes the original email headers in Amazon * SNS notifications of type Bounce. A value of true * specifies that Amazon SES will include headers in bounce notifications, and a * value of false specifies that Amazon SES will not include headers * in bounce notifications.

*/ inline bool HeadersInBounceNotificationsEnabledHasBeenSet() const { return m_headersInBounceNotificationsEnabledHasBeenSet; } /** *

Describes whether Amazon SES includes the original email headers in Amazon * SNS notifications of type Bounce. A value of true * specifies that Amazon SES will include headers in bounce notifications, and a * value of false specifies that Amazon SES will not include headers * in bounce notifications.

*/ inline void SetHeadersInBounceNotificationsEnabled(bool value) { m_headersInBounceNotificationsEnabledHasBeenSet = true; m_headersInBounceNotificationsEnabled = value; } /** *

Describes whether Amazon SES includes the original email headers in Amazon * SNS notifications of type Bounce. A value of true * specifies that Amazon SES will include headers in bounce notifications, and a * value of false specifies that Amazon SES will not include headers * in bounce notifications.

*/ inline IdentityNotificationAttributes& WithHeadersInBounceNotificationsEnabled(bool value) { SetHeadersInBounceNotificationsEnabled(value); return *this;} /** *

Describes whether Amazon SES includes the original email headers in Amazon * SNS notifications of type Complaint. A value of true * specifies that Amazon SES will include headers in complaint notifications, and a * value of false specifies that Amazon SES will not include headers * in complaint notifications.

*/ inline bool GetHeadersInComplaintNotificationsEnabled() const{ return m_headersInComplaintNotificationsEnabled; } /** *

Describes whether Amazon SES includes the original email headers in Amazon * SNS notifications of type Complaint. A value of true * specifies that Amazon SES will include headers in complaint notifications, and a * value of false specifies that Amazon SES will not include headers * in complaint notifications.

*/ inline bool HeadersInComplaintNotificationsEnabledHasBeenSet() const { return m_headersInComplaintNotificationsEnabledHasBeenSet; } /** *

Describes whether Amazon SES includes the original email headers in Amazon * SNS notifications of type Complaint. A value of true * specifies that Amazon SES will include headers in complaint notifications, and a * value of false specifies that Amazon SES will not include headers * in complaint notifications.

*/ inline void SetHeadersInComplaintNotificationsEnabled(bool value) { m_headersInComplaintNotificationsEnabledHasBeenSet = true; m_headersInComplaintNotificationsEnabled = value; } /** *

Describes whether Amazon SES includes the original email headers in Amazon * SNS notifications of type Complaint. A value of true * specifies that Amazon SES will include headers in complaint notifications, and a * value of false specifies that Amazon SES will not include headers * in complaint notifications.

*/ inline IdentityNotificationAttributes& WithHeadersInComplaintNotificationsEnabled(bool value) { SetHeadersInComplaintNotificationsEnabled(value); return *this;} /** *

Describes whether Amazon SES includes the original email headers in Amazon * SNS notifications of type Delivery. A value of true * specifies that Amazon SES will include headers in delivery notifications, and a * value of false specifies that Amazon SES will not include headers * in delivery notifications.

*/ inline bool GetHeadersInDeliveryNotificationsEnabled() const{ return m_headersInDeliveryNotificationsEnabled; } /** *

Describes whether Amazon SES includes the original email headers in Amazon * SNS notifications of type Delivery. A value of true * specifies that Amazon SES will include headers in delivery notifications, and a * value of false specifies that Amazon SES will not include headers * in delivery notifications.

*/ inline bool HeadersInDeliveryNotificationsEnabledHasBeenSet() const { return m_headersInDeliveryNotificationsEnabledHasBeenSet; } /** *

Describes whether Amazon SES includes the original email headers in Amazon * SNS notifications of type Delivery. A value of true * specifies that Amazon SES will include headers in delivery notifications, and a * value of false specifies that Amazon SES will not include headers * in delivery notifications.

*/ inline void SetHeadersInDeliveryNotificationsEnabled(bool value) { m_headersInDeliveryNotificationsEnabledHasBeenSet = true; m_headersInDeliveryNotificationsEnabled = value; } /** *

Describes whether Amazon SES includes the original email headers in Amazon * SNS notifications of type Delivery. A value of true * specifies that Amazon SES will include headers in delivery notifications, and a * value of false specifies that Amazon SES will not include headers * in delivery notifications.

*/ inline IdentityNotificationAttributes& WithHeadersInDeliveryNotificationsEnabled(bool value) { SetHeadersInDeliveryNotificationsEnabled(value); return *this;} private: Aws::String m_bounceTopic; bool m_bounceTopicHasBeenSet = false; Aws::String m_complaintTopic; bool m_complaintTopicHasBeenSet = false; Aws::String m_deliveryTopic; bool m_deliveryTopicHasBeenSet = false; bool m_forwardingEnabled; bool m_forwardingEnabledHasBeenSet = false; bool m_headersInBounceNotificationsEnabled; bool m_headersInBounceNotificationsEnabledHasBeenSet = false; bool m_headersInComplaintNotificationsEnabled; bool m_headersInComplaintNotificationsEnabledHasBeenSet = false; bool m_headersInDeliveryNotificationsEnabled; bool m_headersInDeliveryNotificationsEnabledHasBeenSet = false; }; } // namespace Model } // namespace SES } // namespace Aws