/** * 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 PinpointSMSVoiceV2 { namespace Model { /** */ class UpdateEventDestinationRequest : public PinpointSMSVoiceV2Request { public: AWS_PINPOINTSMSVOICEV2_API UpdateEventDestinationRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateEventDestination"; } AWS_PINPOINTSMSVOICEV2_API Aws::String SerializePayload() const override; AWS_PINPOINTSMSVOICEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The configuration set to update with the new event destination. Valid values * for this can be the ConfigurationSetName or ConfigurationSetArn.

*/ inline const Aws::String& GetConfigurationSetName() const{ return m_configurationSetName; } /** *

The configuration set to update with the new event destination. Valid values * for this can be the ConfigurationSetName or ConfigurationSetArn.

*/ inline bool ConfigurationSetNameHasBeenSet() const { return m_configurationSetNameHasBeenSet; } /** *

The configuration set to update with the new event destination. Valid values * for this can be the ConfigurationSetName or ConfigurationSetArn.

*/ inline void SetConfigurationSetName(const Aws::String& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = value; } /** *

The configuration set to update with the new event destination. Valid values * for this can be the ConfigurationSetName or ConfigurationSetArn.

*/ inline void SetConfigurationSetName(Aws::String&& value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName = std::move(value); } /** *

The configuration set to update with the new event destination. Valid values * for this can be the ConfigurationSetName or ConfigurationSetArn.

*/ inline void SetConfigurationSetName(const char* value) { m_configurationSetNameHasBeenSet = true; m_configurationSetName.assign(value); } /** *

The configuration set to update with the new event destination. Valid values * for this can be the ConfigurationSetName or ConfigurationSetArn.

*/ inline UpdateEventDestinationRequest& WithConfigurationSetName(const Aws::String& value) { SetConfigurationSetName(value); return *this;} /** *

The configuration set to update with the new event destination. Valid values * for this can be the ConfigurationSetName or ConfigurationSetArn.

*/ inline UpdateEventDestinationRequest& WithConfigurationSetName(Aws::String&& value) { SetConfigurationSetName(std::move(value)); return *this;} /** *

The configuration set to update with the new event destination. Valid values * for this can be the ConfigurationSetName or ConfigurationSetArn.

*/ inline UpdateEventDestinationRequest& WithConfigurationSetName(const char* value) { SetConfigurationSetName(value); return *this;} /** *

The name to use for the event destination.

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

The name to use for the event destination.

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

The name to use for the event destination.

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

The name to use for the event destination.

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

The name to use for the event destination.

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

The name to use for the event destination.

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

The name to use for the event destination.

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

The name to use for the event destination.

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

When set to true logging is enabled.

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

When set to true logging is enabled.

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

When set to true logging is enabled.

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

When set to true logging is enabled.

*/ inline UpdateEventDestinationRequest& 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 UpdateEventDestinationRequest& WithMatchingEventTypes(const Aws::Vector& value) { SetMatchingEventTypes(value); return *this;} /** *

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

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

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

*/ inline UpdateEventDestinationRequest& 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 UpdateEventDestinationRequest& 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 * data to CloudWatch Logs.

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

An object that contains information about an event destination that sends * data to CloudWatch Logs.

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

An object that contains information about an event destination that sends * data to 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 * data to 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 * data to CloudWatch Logs.

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

An object that contains information about an event destination that sends * data to CloudWatch Logs.

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

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

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

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

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

An object that contains information about an event destination for logging to * 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 * 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 * Kinesis Data Firehose.

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

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

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

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

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

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

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

An object that contains information about an event destination that sends * data 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 * data 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 * data to Amazon SNS.

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

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

*/ inline UpdateEventDestinationRequest& WithSnsDestination(SnsDestination&& value) { SetSnsDestination(std::move(value)); return *this;} private: Aws::String m_configurationSetName; bool m_configurationSetNameHasBeenSet = false; 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