/** * 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 PutDestinationRequest : public CloudWatchLogsRequest { public: AWS_CLOUDWATCHLOGS_API PutDestinationRequest(); // 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 "PutDestination"; } AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override; AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A name for the destination.

*/ inline const Aws::String& GetDestinationName() const{ return m_destinationName; } /** *

A name for the destination.

*/ inline bool DestinationNameHasBeenSet() const { return m_destinationNameHasBeenSet; } /** *

A name for the destination.

*/ inline void SetDestinationName(const Aws::String& value) { m_destinationNameHasBeenSet = true; m_destinationName = value; } /** *

A name for the destination.

*/ inline void SetDestinationName(Aws::String&& value) { m_destinationNameHasBeenSet = true; m_destinationName = std::move(value); } /** *

A name for the destination.

*/ inline void SetDestinationName(const char* value) { m_destinationNameHasBeenSet = true; m_destinationName.assign(value); } /** *

A name for the destination.

*/ inline PutDestinationRequest& WithDestinationName(const Aws::String& value) { SetDestinationName(value); return *this;} /** *

A name for the destination.

*/ inline PutDestinationRequest& WithDestinationName(Aws::String&& value) { SetDestinationName(std::move(value)); return *this;} /** *

A name for the destination.

*/ inline PutDestinationRequest& WithDestinationName(const char* value) { SetDestinationName(value); return *this;} /** *

The ARN of an Amazon Kinesis stream to which to deliver matching log * events.

*/ inline const Aws::String& GetTargetArn() const{ return m_targetArn; } /** *

The ARN of an Amazon Kinesis stream to which to deliver matching log * events.

*/ inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; } /** *

The ARN of an Amazon Kinesis stream to which to deliver matching log * events.

*/ inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; } /** *

The ARN of an Amazon Kinesis stream to which to deliver matching log * events.

*/ inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); } /** *

The ARN of an Amazon Kinesis stream to which to deliver matching log * events.

*/ inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); } /** *

The ARN of an Amazon Kinesis stream to which to deliver matching log * events.

*/ inline PutDestinationRequest& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;} /** *

The ARN of an Amazon Kinesis stream to which to deliver matching log * events.

*/ inline PutDestinationRequest& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;} /** *

The ARN of an Amazon Kinesis stream to which to deliver matching log * events.

*/ inline PutDestinationRequest& WithTargetArn(const char* value) { SetTargetArn(value); return *this;} /** *

The ARN of an IAM role that grants CloudWatch Logs permissions to call the * Amazon Kinesis PutRecord operation on the destination stream.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The ARN of an IAM role that grants CloudWatch Logs permissions to call the * Amazon Kinesis PutRecord operation on the destination stream.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The ARN of an IAM role that grants CloudWatch Logs permissions to call the * Amazon Kinesis PutRecord operation on the destination stream.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The ARN of an IAM role that grants CloudWatch Logs permissions to call the * Amazon Kinesis PutRecord operation on the destination stream.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The ARN of an IAM role that grants CloudWatch Logs permissions to call the * Amazon Kinesis PutRecord operation on the destination stream.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The ARN of an IAM role that grants CloudWatch Logs permissions to call the * Amazon Kinesis PutRecord operation on the destination stream.

*/ inline PutDestinationRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The ARN of an IAM role that grants CloudWatch Logs permissions to call the * Amazon Kinesis PutRecord operation on the destination stream.

*/ inline PutDestinationRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The ARN of an IAM role that grants CloudWatch Logs permissions to call the * Amazon Kinesis PutRecord operation on the destination stream.

*/ inline PutDestinationRequest& WithRoleArn(const char* value) { SetRoleArn(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 PutDestinationRequest& 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 PutDestinationRequest& 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 PutDestinationRequest& 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 PutDestinationRequest& 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 PutDestinationRequest& 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 PutDestinationRequest& 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 PutDestinationRequest& 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 PutDestinationRequest& 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 PutDestinationRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_destinationName; bool m_destinationNameHasBeenSet = false; Aws::String m_targetArn; bool m_targetArnHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws