/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CloudWatchLogs { namespace Model { /** *

Represents a cross-account destination that receives subscription log * events.

See Also:

AWS * API Reference

*/ class Destination { public: AWS_CLOUDWATCHLOGS_API Destination(); AWS_CLOUDWATCHLOGS_API Destination(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDWATCHLOGS_API Destination& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the destination.

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

The name of the destination.

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

The name of the destination.

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

The name of the destination.

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

The name of the destination.

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

The name of the destination.

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

The name of the destination.

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

The name of the destination.

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

The Amazon Resource Name (ARN) of the physical target where the log events * are delivered (for example, a Kinesis stream).

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

The Amazon Resource Name (ARN) of the physical target where the log events * are delivered (for example, a Kinesis stream).

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

The Amazon Resource Name (ARN) of the physical target where the log events * are delivered (for example, a Kinesis stream).

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

The Amazon Resource Name (ARN) of the physical target where the log events * are delivered (for example, a Kinesis stream).

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

The Amazon Resource Name (ARN) of the physical target where the log events * are delivered (for example, a Kinesis stream).

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

The Amazon Resource Name (ARN) of the physical target where the log events * are delivered (for example, a Kinesis stream).

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

The Amazon Resource Name (ARN) of the physical target where the log events * are delivered (for example, a Kinesis stream).

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

The Amazon Resource Name (ARN) of the physical target where the log events * are delivered (for example, a Kinesis stream).

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

A role for impersonation, used when delivering log events to the target.

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

A role for impersonation, used when delivering log events to the target.

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

A role for impersonation, used when delivering log events to the target.

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

A role for impersonation, used when delivering log events to the target.

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

A role for impersonation, used when delivering log events to the target.

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

A role for impersonation, used when delivering log events to the target.

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

A role for impersonation, used when delivering log events to the target.

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

A role for impersonation, used when delivering log events to the target.

*/ inline Destination& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

An IAM policy document that governs which Amazon Web Services accounts can * create subscription filters against this destination.

*/ inline const Aws::String& GetAccessPolicy() const{ return m_accessPolicy; } /** *

An IAM policy document that governs which Amazon Web Services accounts can * create subscription filters against this destination.

*/ inline bool AccessPolicyHasBeenSet() const { return m_accessPolicyHasBeenSet; } /** *

An IAM policy document that governs which Amazon Web Services accounts can * create subscription filters against this destination.

*/ inline void SetAccessPolicy(const Aws::String& value) { m_accessPolicyHasBeenSet = true; m_accessPolicy = value; } /** *

An IAM policy document that governs which Amazon Web Services accounts can * create subscription filters against this destination.

*/ inline void SetAccessPolicy(Aws::String&& value) { m_accessPolicyHasBeenSet = true; m_accessPolicy = std::move(value); } /** *

An IAM policy document that governs which Amazon Web Services accounts can * create subscription filters against this destination.

*/ inline void SetAccessPolicy(const char* value) { m_accessPolicyHasBeenSet = true; m_accessPolicy.assign(value); } /** *

An IAM policy document that governs which Amazon Web Services accounts can * create subscription filters against this destination.

*/ inline Destination& WithAccessPolicy(const Aws::String& value) { SetAccessPolicy(value); return *this;} /** *

An IAM policy document that governs which Amazon Web Services accounts can * create subscription filters against this destination.

*/ inline Destination& WithAccessPolicy(Aws::String&& value) { SetAccessPolicy(std::move(value)); return *this;} /** *

An IAM policy document that governs which Amazon Web Services accounts can * create subscription filters against this destination.

*/ inline Destination& WithAccessPolicy(const char* value) { SetAccessPolicy(value); return *this;} /** *

The ARN of this destination.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The ARN of this destination.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The ARN of this destination.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The ARN of this destination.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The ARN of this destination.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The ARN of this destination.

*/ inline Destination& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The ARN of this destination.

*/ inline Destination& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The ARN of this destination.

*/ inline Destination& WithArn(const char* value) { SetArn(value); return *this;} /** *

The creation time of the destination, expressed as the number of milliseconds * after Jan 1, 1970 00:00:00 UTC.

*/ inline long long GetCreationTime() const{ return m_creationTime; } /** *

The creation time of the destination, expressed as the number of milliseconds * after Jan 1, 1970 00:00:00 UTC.

*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *

The creation time of the destination, expressed as the number of milliseconds * after Jan 1, 1970 00:00:00 UTC.

*/ inline void SetCreationTime(long long value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *

The creation time of the destination, expressed as the number of milliseconds * after Jan 1, 1970 00:00:00 UTC.

*/ inline Destination& WithCreationTime(long long value) { SetCreationTime(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::String m_accessPolicy; bool m_accessPolicyHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; long long m_creationTime; bool m_creationTimeHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws