/** * 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 namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace PinpointSMSVoiceV2 { namespace Model { /** *

Contains information about an event destination.

Event destinations * are associated with configuration sets, which enable you to publish message * sending events to Amazon CloudWatch, Amazon Kinesis Data Firehose, or Amazon * SNS.

See Also:

AWS * API Reference

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

The name of the EventDestination.

*/ inline const Aws::String& GetEventDestinationName() const{ return m_eventDestinationName; } /** *

The name of the EventDestination.

*/ inline bool EventDestinationNameHasBeenSet() const { return m_eventDestinationNameHasBeenSet; } /** *

The name of the EventDestination.

*/ inline void SetEventDestinationName(const Aws::String& value) { m_eventDestinationNameHasBeenSet = true; m_eventDestinationName = value; } /** *

The name of the EventDestination.

*/ inline void SetEventDestinationName(Aws::String&& value) { m_eventDestinationNameHasBeenSet = true; m_eventDestinationName = std::move(value); } /** *

The name of the EventDestination.

*/ inline void SetEventDestinationName(const char* value) { m_eventDestinationNameHasBeenSet = true; m_eventDestinationName.assign(value); } /** *

The name of the EventDestination.

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

The name of the EventDestination.

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

The name of the EventDestination.

*/ inline EventDestination& WithEventDestinationName(const char* value) { SetEventDestinationName(value); return *this;} /** *

When set to true events will be logged.

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

When set to true events will be logged.

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

When set to true events will be logged.

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

When set to true events will be logged.

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

An array of event types that determine which events to log.

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

An array of event types that determine which events to log.

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

An array of event types that determine which events to log.

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

An array of event types that determine which events to log.

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

An array of event types that determine which events to log.

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

An array of event types that determine which events to log.

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

An array of event types that determine which events to log.

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

An array of event types that determine which events to log.

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

An object that contains information about an event destination that sends * logging events to Amazon CloudWatch logs.

*/ inline const CloudWatchLogsDestination& GetCloudWatchLogsDestination() const{ return m_cloudWatchLogsDestination; } /** *

An object that contains information about an event destination that sends * logging events to Amazon CloudWatch logs.

*/ inline bool CloudWatchLogsDestinationHasBeenSet() const { return m_cloudWatchLogsDestinationHasBeenSet; } /** *

An object that contains information about an event destination that sends * logging events to Amazon CloudWatch logs.

*/ inline void SetCloudWatchLogsDestination(const CloudWatchLogsDestination& value) { m_cloudWatchLogsDestinationHasBeenSet = true; m_cloudWatchLogsDestination = value; } /** *

An object that contains information about an event destination that sends * logging events to Amazon CloudWatch logs.

*/ inline void SetCloudWatchLogsDestination(CloudWatchLogsDestination&& value) { m_cloudWatchLogsDestinationHasBeenSet = true; m_cloudWatchLogsDestination = std::move(value); } /** *

An object that contains information about an event destination that sends * logging events to Amazon CloudWatch logs.

*/ inline EventDestination& WithCloudWatchLogsDestination(const CloudWatchLogsDestination& value) { SetCloudWatchLogsDestination(value); return *this;} /** *

An object that contains information about an event destination that sends * logging events to Amazon CloudWatch logs.

*/ inline EventDestination& WithCloudWatchLogsDestination(CloudWatchLogsDestination&& value) { SetCloudWatchLogsDestination(std::move(value)); return *this;} /** *

An object that contains information about an event destination for logging to * Amazon Kinesis Data Firehose.

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

An object that contains information about an event destination for logging to * Amazon Kinesis Data Firehose.

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

An object that contains information about an event destination for logging to * Amazon Kinesis Data Firehose.

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

An object that contains information about an event destination for logging to * Amazon Kinesis Data Firehose.

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

An object that contains information about an event destination for logging to * Amazon Kinesis Data Firehose.

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

An object that contains information about an event destination for logging to * Amazon Kinesis Data Firehose.

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

An object that contains information about an event destination that sends * logging events to Amazon SNS.

*/ inline const SnsDestination& GetSnsDestination() const{ return m_snsDestination; } /** *

An object that contains information about an event destination that sends * logging events to Amazon SNS.

*/ inline bool SnsDestinationHasBeenSet() const { return m_snsDestinationHasBeenSet; } /** *

An object that contains information about an event destination that sends * logging events to Amazon SNS.

*/ inline void SetSnsDestination(const SnsDestination& value) { m_snsDestinationHasBeenSet = true; m_snsDestination = value; } /** *

An object that contains information about an event destination that sends * logging events to Amazon SNS.

*/ inline void SetSnsDestination(SnsDestination&& value) { m_snsDestinationHasBeenSet = true; m_snsDestination = std::move(value); } /** *

An object that contains information about an event destination that sends * logging events to Amazon SNS.

*/ inline EventDestination& WithSnsDestination(const SnsDestination& value) { SetSnsDestination(value); return *this;} /** *

An object that contains information about an event destination that sends * logging events to Amazon SNS.

*/ inline EventDestination& WithSnsDestination(SnsDestination&& value) { SetSnsDestination(std::move(value)); return *this;} private: Aws::String m_eventDestinationName; bool m_eventDestinationNameHasBeenSet = false; bool m_enabled; bool m_enabledHasBeenSet = false; Aws::Vector m_matchingEventTypes; bool m_matchingEventTypesHasBeenSet = false; CloudWatchLogsDestination m_cloudWatchLogsDestination; bool m_cloudWatchLogsDestinationHasBeenSet = false; KinesisFirehoseDestination m_kinesisFirehoseDestination; bool m_kinesisFirehoseDestinationHasBeenSet = false; SnsDestination m_snsDestination; bool m_snsDestinationHasBeenSet = false; }; } // namespace Model } // namespace PinpointSMSVoiceV2 } // namespace Aws