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

Contains information about the event destination that the specified email * sending events will be published to.

When you create or update an * event destination, you must provide one, and only one, destination. The * destination can be Amazon CloudWatch, Amazon Kinesis Firehose or Amazon Simple * Notification Service (Amazon SNS).

Event destinations are * associated with configuration sets, which enable you to publish email sending * events to Amazon CloudWatch, Amazon Kinesis Firehose, or Amazon Simple * Notification Service (Amazon SNS). For information about using configuration * sets, see the Amazon * SES Developer Guide.

See Also:

AWS * API Reference

*/ class EventDestination { public: AWS_SES_API EventDestination(); AWS_SES_API EventDestination(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_SES_API EventDestination& 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 name of the event destination. The name must:

  • This value * can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or * dashes (-).

  • Contain less than 64 characters.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the event destination. The name must:

  • This value * can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or * dashes (-).

  • Contain less than 64 characters.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the event destination. The name must:

  • This value * can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or * dashes (-).

  • Contain less than 64 characters.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the event destination. The name must:

  • This value * can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or * dashes (-).

  • Contain less than 64 characters.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the event destination. The name must:

  • This value * can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or * dashes (-).

  • Contain less than 64 characters.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the event destination. The name must:

  • This value * can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or * dashes (-).

  • Contain less than 64 characters.

*/ inline EventDestination& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the event destination. The name must:

  • This value * can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or * dashes (-).

  • Contain less than 64 characters.

*/ inline EventDestination& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the event destination. The name must:

  • This value * can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or * dashes (-).

  • Contain less than 64 characters.

*/ inline EventDestination& WithName(const char* value) { SetName(value); return *this;} /** *

Sets whether Amazon SES publishes events to this destination when you send an * email with the associated configuration set. Set to true to enable * publishing to this destination; set to false to prevent publishing * to this destination. The default value is false.

*/ inline bool GetEnabled() const{ return m_enabled; } /** *

Sets whether Amazon SES publishes events to this destination when you send an * email with the associated configuration set. Set to true to enable * publishing to this destination; set to false to prevent publishing * to this destination. The default value is false.

*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *

Sets whether Amazon SES publishes events to this destination when you send an * email with the associated configuration set. Set to true to enable * publishing to this destination; set to false to prevent publishing * to this destination. The default value is false.

*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *

Sets whether Amazon SES publishes events to this destination when you send an * email with the associated configuration set. Set to true to enable * publishing to this destination; set to false to prevent publishing * to this destination. The default value is false.

*/ inline EventDestination& WithEnabled(bool value) { SetEnabled(value); return *this;} /** *

The type of email sending events to publish to the event destination.

*/ inline const Aws::Vector& GetMatchingEventTypes() const{ return m_matchingEventTypes; } /** *

The type of email sending events to publish to the event destination.

*/ inline bool MatchingEventTypesHasBeenSet() const { return m_matchingEventTypesHasBeenSet; } /** *

The type of email sending events to publish to the event destination.

*/ inline void SetMatchingEventTypes(const Aws::Vector& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes = value; } /** *

The type of email sending events to publish to the event destination.

*/ inline void SetMatchingEventTypes(Aws::Vector&& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes = std::move(value); } /** *

The type of email sending events to publish to the event destination.

*/ inline EventDestination& WithMatchingEventTypes(const Aws::Vector& value) { SetMatchingEventTypes(value); return *this;} /** *

The type of email sending events to publish to the event destination.

*/ inline EventDestination& WithMatchingEventTypes(Aws::Vector&& value) { SetMatchingEventTypes(std::move(value)); return *this;} /** *

The type of email sending events to publish to the event destination.

*/ inline EventDestination& AddMatchingEventTypes(const EventType& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes.push_back(value); return *this; } /** *

The type of email sending events to publish to the event destination.

*/ inline EventDestination& AddMatchingEventTypes(EventType&& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes.push_back(std::move(value)); return *this; } /** *

An object that contains the delivery stream ARN and the IAM role ARN * associated with an Amazon Kinesis Firehose event destination.

*/ inline const KinesisFirehoseDestination& GetKinesisFirehoseDestination() const{ return m_kinesisFirehoseDestination; } /** *

An object that contains the delivery stream ARN and the IAM role ARN * associated with an Amazon Kinesis Firehose event destination.

*/ inline bool KinesisFirehoseDestinationHasBeenSet() const { return m_kinesisFirehoseDestinationHasBeenSet; } /** *

An object that contains the delivery stream ARN and the IAM role ARN * associated with an Amazon Kinesis Firehose event destination.

*/ inline void SetKinesisFirehoseDestination(const KinesisFirehoseDestination& value) { m_kinesisFirehoseDestinationHasBeenSet = true; m_kinesisFirehoseDestination = value; } /** *

An object that contains the delivery stream ARN and the IAM role ARN * associated with an Amazon Kinesis Firehose event destination.

*/ inline void SetKinesisFirehoseDestination(KinesisFirehoseDestination&& value) { m_kinesisFirehoseDestinationHasBeenSet = true; m_kinesisFirehoseDestination = std::move(value); } /** *

An object that contains the delivery stream ARN and the IAM role ARN * associated with an Amazon Kinesis Firehose event destination.

*/ inline EventDestination& WithKinesisFirehoseDestination(const KinesisFirehoseDestination& value) { SetKinesisFirehoseDestination(value); return *this;} /** *

An object that contains the delivery stream ARN and the IAM role ARN * associated with an Amazon Kinesis Firehose event destination.

*/ inline EventDestination& WithKinesisFirehoseDestination(KinesisFirehoseDestination&& value) { SetKinesisFirehoseDestination(std::move(value)); return *this;} /** *

An object that contains the names, default values, and sources of the * dimensions associated with an Amazon CloudWatch event destination.

*/ inline const CloudWatchDestination& GetCloudWatchDestination() const{ return m_cloudWatchDestination; } /** *

An object that contains the names, default values, and sources of the * dimensions associated with an Amazon CloudWatch event destination.

*/ inline bool CloudWatchDestinationHasBeenSet() const { return m_cloudWatchDestinationHasBeenSet; } /** *

An object that contains the names, default values, and sources of the * dimensions associated with an Amazon CloudWatch event destination.

*/ inline void SetCloudWatchDestination(const CloudWatchDestination& value) { m_cloudWatchDestinationHasBeenSet = true; m_cloudWatchDestination = value; } /** *

An object that contains the names, default values, and sources of the * dimensions associated with an Amazon CloudWatch event destination.

*/ inline void SetCloudWatchDestination(CloudWatchDestination&& value) { m_cloudWatchDestinationHasBeenSet = true; m_cloudWatchDestination = std::move(value); } /** *

An object that contains the names, default values, and sources of the * dimensions associated with an Amazon CloudWatch event destination.

*/ inline EventDestination& WithCloudWatchDestination(const CloudWatchDestination& value) { SetCloudWatchDestination(value); return *this;} /** *

An object that contains the names, default values, and sources of the * dimensions associated with an Amazon CloudWatch event destination.

*/ inline EventDestination& WithCloudWatchDestination(CloudWatchDestination&& value) { SetCloudWatchDestination(std::move(value)); return *this;} /** *

An object that contains the topic ARN associated with an Amazon Simple * Notification Service (Amazon SNS) event destination.

*/ inline const SNSDestination& GetSNSDestination() const{ return m_sNSDestination; } /** *

An object that contains the topic ARN associated with an Amazon Simple * Notification Service (Amazon SNS) event destination.

*/ inline bool SNSDestinationHasBeenSet() const { return m_sNSDestinationHasBeenSet; } /** *

An object that contains the topic ARN associated with an Amazon Simple * Notification Service (Amazon SNS) event destination.

*/ inline void SetSNSDestination(const SNSDestination& value) { m_sNSDestinationHasBeenSet = true; m_sNSDestination = value; } /** *

An object that contains the topic ARN associated with an Amazon Simple * Notification Service (Amazon SNS) event destination.

*/ inline void SetSNSDestination(SNSDestination&& value) { m_sNSDestinationHasBeenSet = true; m_sNSDestination = std::move(value); } /** *

An object that contains the topic ARN associated with an Amazon Simple * Notification Service (Amazon SNS) event destination.

*/ inline EventDestination& WithSNSDestination(const SNSDestination& value) { SetSNSDestination(value); return *this;} /** *

An object that contains the topic ARN associated with an Amazon Simple * Notification Service (Amazon SNS) event destination.

*/ inline EventDestination& WithSNSDestination(SNSDestination&& value) { SetSNSDestination(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; bool m_enabled; bool m_enabledHasBeenSet = false; Aws::Vector m_matchingEventTypes; bool m_matchingEventTypesHasBeenSet = false; KinesisFirehoseDestination m_kinesisFirehoseDestination; bool m_kinesisFirehoseDestinationHasBeenSet = false; CloudWatchDestination m_cloudWatchDestination; bool m_cloudWatchDestinationHasBeenSet = false; SNSDestination m_sNSDestination; bool m_sNSDestinationHasBeenSet = false; }; } // namespace Model } // namespace SES } // namespace Aws