/** * 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 #include namespace Aws { namespace PinpointSMSVoiceV2 { namespace Model { /** */ class CreateEventDestinationRequest : public PinpointSMSVoiceV2Request { public: AWS_PINPOINTSMSVOICEV2_API CreateEventDestinationRequest(); // 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 "CreateEventDestination"; } AWS_PINPOINTSMSVOICEV2_API Aws::String SerializePayload() const override; AWS_PINPOINTSMSVOICEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Either the name of the configuration set or the configuration set ARN to * apply event logging to. The ConfigurateSetName and ConfigurationSetArn can be * found using the DescribeConfigurationSets action.

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

Either the name of the configuration set or the configuration set ARN to * apply event logging to. The ConfigurateSetName and ConfigurationSetArn can be * found using the DescribeConfigurationSets action.

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

Either the name of the configuration set or the configuration set ARN to * apply event logging to. The ConfigurateSetName and ConfigurationSetArn can be * found using the DescribeConfigurationSets action.

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

Either the name of the configuration set or the configuration set ARN to * apply event logging to. The ConfigurateSetName and ConfigurationSetArn can be * found using the DescribeConfigurationSets action.

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

Either the name of the configuration set or the configuration set ARN to * apply event logging to. The ConfigurateSetName and ConfigurationSetArn can be * found using the DescribeConfigurationSets action.

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

Either the name of the configuration set or the configuration set ARN to * apply event logging to. The ConfigurateSetName and ConfigurationSetArn can be * found using the DescribeConfigurationSets action.

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

Either the name of the configuration set or the configuration set ARN to * apply event logging to. The ConfigurateSetName and ConfigurationSetArn can be * found using the DescribeConfigurationSets action.

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

Either the name of the configuration set or the configuration set ARN to * apply event logging to. The ConfigurateSetName and ConfigurationSetArn can be * found using the DescribeConfigurationSets action.

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

The name that identifies the event destination.

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

The name that identifies the event destination.

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

The name that identifies the event destination.

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

The name that identifies the event destination.

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

The name that identifies the event destination.

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

The name that identifies the event destination.

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

The name that identifies the event destination.

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

The name that identifies the event destination.

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

An array of event types that determine which events to log. If "ALL" is used, * then Amazon Pinpoint logs every event type.

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

An array of event types that determine which events to log. If "ALL" is used, * then Amazon Pinpoint logs every event type.

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

An array of event types that determine which events to log. If "ALL" is used, * then Amazon Pinpoint logs every event type.

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

An array of event types that determine which events to log. If "ALL" is used, * then Amazon Pinpoint logs every event type.

*/ 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. If "ALL" is used, * then Amazon Pinpoint logs every event type.

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

An array of event types that determine which events to log. If "ALL" is used, * then Amazon Pinpoint logs every event type.

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

An array of event types that determine which events to log. If "ALL" is used, * then Amazon Pinpoint logs every event type.

*/ inline CreateEventDestinationRequest& 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. If "ALL" is used, * then Amazon Pinpoint logs every event type.

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

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

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

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

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

An object that contains information about an event destination for logging 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 for logging 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 for logging to * Amazon CloudWatch logs.

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

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

*/ inline CreateEventDestinationRequest& 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 CreateEventDestinationRequest& 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 CreateEventDestinationRequest& WithKinesisFirehoseDestination(KinesisFirehoseDestination&& value) { SetKinesisFirehoseDestination(std::move(value)); return *this;} /** *

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

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

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

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

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

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

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

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

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

*/ inline CreateEventDestinationRequest& WithSnsDestination(SnsDestination&& value) { SetSnsDestination(std::move(value)); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. If you don't specify a client token, a randomly generated token * is used for the request to ensure idempotency.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. If you don't specify a client token, a randomly generated token * is used for the request to ensure idempotency.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. If you don't specify a client token, a randomly generated token * is used for the request to ensure idempotency.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. If you don't specify a client token, a randomly generated token * is used for the request to ensure idempotency.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. If you don't specify a client token, a randomly generated token * is used for the request to ensure idempotency.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. If you don't specify a client token, a randomly generated token * is used for the request to ensure idempotency.

*/ inline CreateEventDestinationRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. If you don't specify a client token, a randomly generated token * is used for the request to ensure idempotency.

*/ inline CreateEventDestinationRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. If you don't specify a client token, a randomly generated token * is used for the request to ensure idempotency.

*/ inline CreateEventDestinationRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: Aws::String m_configurationSetName; bool m_configurationSetNameHasBeenSet = false; Aws::String m_eventDestinationName; bool m_eventDestinationNameHasBeenSet = 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; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; }; } // namespace Model } // namespace PinpointSMSVoiceV2 } // namespace Aws