/** * 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 namespace Aws { namespace CloudWatchLogs { namespace Model { /** */ class PutDeliveryDestinationRequest : public CloudWatchLogsRequest { public: AWS_CLOUDWATCHLOGS_API PutDeliveryDestinationRequest(); // 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 "PutDeliveryDestination"; } AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override; AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A name for this delivery destination. This name must be unique for all * delivery destinations in your account.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

A name for this delivery destination. This name must be unique for all * delivery destinations in your account.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

A name for this delivery destination. This name must be unique for all * delivery destinations in your account.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

A name for this delivery destination. This name must be unique for all * delivery destinations in your account.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

A name for this delivery destination. This name must be unique for all * delivery destinations in your account.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

A name for this delivery destination. This name must be unique for all * delivery destinations in your account.

*/ inline PutDeliveryDestinationRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

A name for this delivery destination. This name must be unique for all * delivery destinations in your account.

*/ inline PutDeliveryDestinationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

A name for this delivery destination. This name must be unique for all * delivery destinations in your account.

*/ inline PutDeliveryDestinationRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The format for the logs that this delivery destination will receive.

*/ inline const OutputFormat& GetOutputFormat() const{ return m_outputFormat; } /** *

The format for the logs that this delivery destination will receive.

*/ inline bool OutputFormatHasBeenSet() const { return m_outputFormatHasBeenSet; } /** *

The format for the logs that this delivery destination will receive.

*/ inline void SetOutputFormat(const OutputFormat& value) { m_outputFormatHasBeenSet = true; m_outputFormat = value; } /** *

The format for the logs that this delivery destination will receive.

*/ inline void SetOutputFormat(OutputFormat&& value) { m_outputFormatHasBeenSet = true; m_outputFormat = std::move(value); } /** *

The format for the logs that this delivery destination will receive.

*/ inline PutDeliveryDestinationRequest& WithOutputFormat(const OutputFormat& value) { SetOutputFormat(value); return *this;} /** *

The format for the logs that this delivery destination will receive.

*/ inline PutDeliveryDestinationRequest& WithOutputFormat(OutputFormat&& value) { SetOutputFormat(std::move(value)); return *this;} /** *

A structure that contains the ARN of the Amazon Web Services resource that * will receive the logs.

*/ inline const DeliveryDestinationConfiguration& GetDeliveryDestinationConfiguration() const{ return m_deliveryDestinationConfiguration; } /** *

A structure that contains the ARN of the Amazon Web Services resource that * will receive the logs.

*/ inline bool DeliveryDestinationConfigurationHasBeenSet() const { return m_deliveryDestinationConfigurationHasBeenSet; } /** *

A structure that contains the ARN of the Amazon Web Services resource that * will receive the logs.

*/ inline void SetDeliveryDestinationConfiguration(const DeliveryDestinationConfiguration& value) { m_deliveryDestinationConfigurationHasBeenSet = true; m_deliveryDestinationConfiguration = value; } /** *

A structure that contains the ARN of the Amazon Web Services resource that * will receive the logs.

*/ inline void SetDeliveryDestinationConfiguration(DeliveryDestinationConfiguration&& value) { m_deliveryDestinationConfigurationHasBeenSet = true; m_deliveryDestinationConfiguration = std::move(value); } /** *

A structure that contains the ARN of the Amazon Web Services resource that * will receive the logs.

*/ inline PutDeliveryDestinationRequest& WithDeliveryDestinationConfiguration(const DeliveryDestinationConfiguration& value) { SetDeliveryDestinationConfiguration(value); return *this;} /** *

A structure that contains the ARN of the Amazon Web Services resource that * will receive the logs.

*/ inline PutDeliveryDestinationRequest& WithDeliveryDestinationConfiguration(DeliveryDestinationConfiguration&& value) { SetDeliveryDestinationConfiguration(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 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 PutDeliveryDestinationRequest& 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 PutDeliveryDestinationRequest& 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 PutDeliveryDestinationRequest& 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 PutDeliveryDestinationRequest& 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 PutDeliveryDestinationRequest& 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 PutDeliveryDestinationRequest& 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 PutDeliveryDestinationRequest& 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 PutDeliveryDestinationRequest& 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 PutDeliveryDestinationRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; OutputFormat m_outputFormat; bool m_outputFormatHasBeenSet = false; DeliveryDestinationConfiguration m_deliveryDestinationConfiguration; bool m_deliveryDestinationConfigurationHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws