/** * 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 PinpointSMSVoice { namespace Model { /** * An object that defines an event destination.

See Also:

AWS * API Reference

*/ class EventDestination { public: AWS_PINPOINTSMSVOICE_API EventDestination(); AWS_PINPOINTSMSVOICE_API EventDestination(Aws::Utils::Json::JsonView jsonValue); AWS_PINPOINTSMSVOICE_API EventDestination& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_PINPOINTSMSVOICE_API Aws::Utils::Json::JsonValue Jsonize() const; inline const CloudWatchLogsDestination& GetCloudWatchLogsDestination() const{ return m_cloudWatchLogsDestination; } inline bool CloudWatchLogsDestinationHasBeenSet() const { return m_cloudWatchLogsDestinationHasBeenSet; } inline void SetCloudWatchLogsDestination(const CloudWatchLogsDestination& value) { m_cloudWatchLogsDestinationHasBeenSet = true; m_cloudWatchLogsDestination = value; } inline void SetCloudWatchLogsDestination(CloudWatchLogsDestination&& value) { m_cloudWatchLogsDestinationHasBeenSet = true; m_cloudWatchLogsDestination = std::move(value); } inline EventDestination& WithCloudWatchLogsDestination(const CloudWatchLogsDestination& value) { SetCloudWatchLogsDestination(value); return *this;} inline EventDestination& WithCloudWatchLogsDestination(CloudWatchLogsDestination&& value) { SetCloudWatchLogsDestination(std::move(value)); return *this;} /** * Indicates whether or not the event destination is enabled. If the event * destination is enabled, then Amazon Pinpoint sends response data to the * specified event destination. */ inline bool GetEnabled() const{ return m_enabled; } /** * Indicates whether or not the event destination is enabled. If the event * destination is enabled, then Amazon Pinpoint sends response data to the * specified event destination. */ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** * Indicates whether or not the event destination is enabled. If the event * destination is enabled, then Amazon Pinpoint sends response data to the * specified event destination. */ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** * Indicates whether or not the event destination is enabled. If the event * destination is enabled, then Amazon Pinpoint sends response data to the * specified event destination. */ inline EventDestination& WithEnabled(bool value) { SetEnabled(value); return *this;} inline const KinesisFirehoseDestination& GetKinesisFirehoseDestination() const{ return m_kinesisFirehoseDestination; } inline bool KinesisFirehoseDestinationHasBeenSet() const { return m_kinesisFirehoseDestinationHasBeenSet; } inline void SetKinesisFirehoseDestination(const KinesisFirehoseDestination& value) { m_kinesisFirehoseDestinationHasBeenSet = true; m_kinesisFirehoseDestination = value; } inline void SetKinesisFirehoseDestination(KinesisFirehoseDestination&& value) { m_kinesisFirehoseDestinationHasBeenSet = true; m_kinesisFirehoseDestination = std::move(value); } inline EventDestination& WithKinesisFirehoseDestination(const KinesisFirehoseDestination& value) { SetKinesisFirehoseDestination(value); return *this;} inline EventDestination& WithKinesisFirehoseDestination(KinesisFirehoseDestination&& value) { SetKinesisFirehoseDestination(std::move(value)); return *this;} inline const Aws::Vector& GetMatchingEventTypes() const{ return m_matchingEventTypes; } inline bool MatchingEventTypesHasBeenSet() const { return m_matchingEventTypesHasBeenSet; } inline void SetMatchingEventTypes(const Aws::Vector& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes = value; } inline void SetMatchingEventTypes(Aws::Vector&& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes = std::move(value); } inline EventDestination& WithMatchingEventTypes(const Aws::Vector& value) { SetMatchingEventTypes(value); return *this;} inline EventDestination& WithMatchingEventTypes(Aws::Vector&& value) { SetMatchingEventTypes(std::move(value)); return *this;} inline EventDestination& AddMatchingEventTypes(const EventType& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes.push_back(value); return *this; } inline EventDestination& AddMatchingEventTypes(EventType&& value) { m_matchingEventTypesHasBeenSet = true; m_matchingEventTypes.push_back(std::move(value)); return *this; } /** * A name that identifies the event destination configuration. */ inline const Aws::String& GetName() const{ return m_name; } /** * A name that identifies the event destination configuration. */ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** * A name that identifies the event destination configuration. */ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** * A name that identifies the event destination configuration. */ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** * A name that identifies the event destination configuration. */ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** * A name that identifies the event destination configuration. */ inline EventDestination& WithName(const Aws::String& value) { SetName(value); return *this;} /** * A name that identifies the event destination configuration. */ inline EventDestination& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** * A name that identifies the event destination configuration. */ inline EventDestination& WithName(const char* value) { SetName(value); return *this;} inline const SnsDestination& GetSnsDestination() const{ return m_snsDestination; } inline bool SnsDestinationHasBeenSet() const { return m_snsDestinationHasBeenSet; } inline void SetSnsDestination(const SnsDestination& value) { m_snsDestinationHasBeenSet = true; m_snsDestination = value; } inline void SetSnsDestination(SnsDestination&& value) { m_snsDestinationHasBeenSet = true; m_snsDestination = std::move(value); } inline EventDestination& WithSnsDestination(const SnsDestination& value) { SetSnsDestination(value); return *this;} inline EventDestination& WithSnsDestination(SnsDestination&& value) { SetSnsDestination(std::move(value)); return *this;} private: CloudWatchLogsDestination m_cloudWatchLogsDestination; bool m_cloudWatchLogsDestinationHasBeenSet = false; bool m_enabled; bool m_enabledHasBeenSet = false; KinesisFirehoseDestination m_kinesisFirehoseDestination; bool m_kinesisFirehoseDestinationHasBeenSet = false; Aws::Vector m_matchingEventTypes; bool m_matchingEventTypesHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; SnsDestination m_snsDestination; bool m_snsDestinationHasBeenSet = false; }; } // namespace Model } // namespace PinpointSMSVoice } // namespace Aws