/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace CloudWatchLogs { namespace Model { /** */ class CreateDeliveryRequest : public CloudWatchLogsRequest { public: AWS_CLOUDWATCHLOGS_API CreateDeliveryRequest(); // 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 "CreateDelivery"; } AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override; AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the delivery source to use for this delivery.

*/ inline const Aws::String& GetDeliverySourceName() const{ return m_deliverySourceName; } /** *

The name of the delivery source to use for this delivery.

*/ inline bool DeliverySourceNameHasBeenSet() const { return m_deliverySourceNameHasBeenSet; } /** *

The name of the delivery source to use for this delivery.

*/ inline void SetDeliverySourceName(const Aws::String& value) { m_deliverySourceNameHasBeenSet = true; m_deliverySourceName = value; } /** *

The name of the delivery source to use for this delivery.

*/ inline void SetDeliverySourceName(Aws::String&& value) { m_deliverySourceNameHasBeenSet = true; m_deliverySourceName = std::move(value); } /** *

The name of the delivery source to use for this delivery.

*/ inline void SetDeliverySourceName(const char* value) { m_deliverySourceNameHasBeenSet = true; m_deliverySourceName.assign(value); } /** *

The name of the delivery source to use for this delivery.

*/ inline CreateDeliveryRequest& WithDeliverySourceName(const Aws::String& value) { SetDeliverySourceName(value); return *this;} /** *

The name of the delivery source to use for this delivery.

*/ inline CreateDeliveryRequest& WithDeliverySourceName(Aws::String&& value) { SetDeliverySourceName(std::move(value)); return *this;} /** *

The name of the delivery source to use for this delivery.

*/ inline CreateDeliveryRequest& WithDeliverySourceName(const char* value) { SetDeliverySourceName(value); return *this;} /** *

The ARN of the delivery destination to use for this delivery.

*/ inline const Aws::String& GetDeliveryDestinationArn() const{ return m_deliveryDestinationArn; } /** *

The ARN of the delivery destination to use for this delivery.

*/ inline bool DeliveryDestinationArnHasBeenSet() const { return m_deliveryDestinationArnHasBeenSet; } /** *

The ARN of the delivery destination to use for this delivery.

*/ inline void SetDeliveryDestinationArn(const Aws::String& value) { m_deliveryDestinationArnHasBeenSet = true; m_deliveryDestinationArn = value; } /** *

The ARN of the delivery destination to use for this delivery.

*/ inline void SetDeliveryDestinationArn(Aws::String&& value) { m_deliveryDestinationArnHasBeenSet = true; m_deliveryDestinationArn = std::move(value); } /** *

The ARN of the delivery destination to use for this delivery.

*/ inline void SetDeliveryDestinationArn(const char* value) { m_deliveryDestinationArnHasBeenSet = true; m_deliveryDestinationArn.assign(value); } /** *

The ARN of the delivery destination to use for this delivery.

*/ inline CreateDeliveryRequest& WithDeliveryDestinationArn(const Aws::String& value) { SetDeliveryDestinationArn(value); return *this;} /** *

The ARN of the delivery destination to use for this delivery.

*/ inline CreateDeliveryRequest& WithDeliveryDestinationArn(Aws::String&& value) { SetDeliveryDestinationArn(std::move(value)); return *this;} /** *

The ARN of the delivery destination to use for this delivery.

*/ inline CreateDeliveryRequest& WithDeliveryDestinationArn(const char* value) { SetDeliveryDestinationArn(value); return *this;} /** *

An optional list of key-value pairs to associate with the resource.

*

For more information about tagging, see Tagging * Amazon Web Services resources

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

An optional list of key-value pairs to associate with the resource.

*

For more information about tagging, see Tagging * Amazon Web Services resources

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

An optional list of key-value pairs to associate with the resource.

*

For more information about tagging, see Tagging * Amazon Web Services resources

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

An optional list of key-value pairs to associate with the resource.

*

For more information about tagging, see Tagging * Amazon Web Services resources

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

An optional list of key-value pairs to associate with the resource.

*

For more information about tagging, see Tagging * Amazon Web Services resources

*/ inline CreateDeliveryRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

An optional list of key-value pairs to associate with the resource.

*

For more information about tagging, see Tagging * Amazon Web Services resources

*/ inline CreateDeliveryRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

An optional list of key-value pairs to associate with the resource.

*

For more information about tagging, see Tagging * Amazon Web Services resources

*/ inline CreateDeliveryRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

An optional list of key-value pairs to associate with the resource.

*

For more information about tagging, see Tagging * Amazon Web Services resources

*/ inline CreateDeliveryRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

An optional list of key-value pairs to associate with the resource.

*

For more information about tagging, see Tagging * Amazon Web Services resources

*/ inline CreateDeliveryRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

An optional list of key-value pairs to associate with the resource.

*

For more information about tagging, see Tagging * Amazon Web Services resources

*/ inline CreateDeliveryRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

An optional list of key-value pairs to associate with the resource.

*

For more information about tagging, see Tagging * Amazon Web Services resources

*/ inline CreateDeliveryRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

An optional list of key-value pairs to associate with the resource.

*

For more information about tagging, see Tagging * Amazon Web Services resources

*/ inline CreateDeliveryRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

An optional list of key-value pairs to associate with the resource.

*

For more information about tagging, see Tagging * Amazon Web Services resources

*/ inline CreateDeliveryRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_deliverySourceName; bool m_deliverySourceNameHasBeenSet = false; Aws::String m_deliveryDestinationArn; bool m_deliveryDestinationArnHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws