/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace CloudWatchLogs { namespace Model { /** */ class AWS_CLOUDWATCHLOGS_API PutDestinationRequest : public CloudWatchLogsRequest { public: 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::String SerializePayload() const override; 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;} private: Aws::String m_destinationName; bool m_destinationNameHasBeenSet; Aws::String m_targetArn; bool m_targetArnHasBeenSet; Aws::String m_roleArn; bool m_roleArnHasBeenSet; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws