/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CloudWatchRUM { namespace Model { /** *

A structure that displays information about one destination that CloudWatch * RUM sends extended metrics to.

See Also:

AWS * API Reference

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

Specifies whether the destination is CloudWatch or * Evidently.

*/ inline const MetricDestination& GetDestination() const{ return m_destination; } /** *

Specifies whether the destination is CloudWatch or * Evidently.

*/ inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; } /** *

Specifies whether the destination is CloudWatch or * Evidently.

*/ inline void SetDestination(const MetricDestination& value) { m_destinationHasBeenSet = true; m_destination = value; } /** *

Specifies whether the destination is CloudWatch or * Evidently.

*/ inline void SetDestination(MetricDestination&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); } /** *

Specifies whether the destination is CloudWatch or * Evidently.

*/ inline MetricDestinationSummary& WithDestination(const MetricDestination& value) { SetDestination(value); return *this;} /** *

Specifies whether the destination is CloudWatch or * Evidently.

*/ inline MetricDestinationSummary& WithDestination(MetricDestination&& value) { SetDestination(std::move(value)); return *this;} /** *

If the destination is Evidently, this specifies the ARN of the * Evidently experiment that receives the metrics.

*/ inline const Aws::String& GetDestinationArn() const{ return m_destinationArn; } /** *

If the destination is Evidently, this specifies the ARN of the * Evidently experiment that receives the metrics.

*/ inline bool DestinationArnHasBeenSet() const { return m_destinationArnHasBeenSet; } /** *

If the destination is Evidently, this specifies the ARN of the * Evidently experiment that receives the metrics.

*/ inline void SetDestinationArn(const Aws::String& value) { m_destinationArnHasBeenSet = true; m_destinationArn = value; } /** *

If the destination is Evidently, this specifies the ARN of the * Evidently experiment that receives the metrics.

*/ inline void SetDestinationArn(Aws::String&& value) { m_destinationArnHasBeenSet = true; m_destinationArn = std::move(value); } /** *

If the destination is Evidently, this specifies the ARN of the * Evidently experiment that receives the metrics.

*/ inline void SetDestinationArn(const char* value) { m_destinationArnHasBeenSet = true; m_destinationArn.assign(value); } /** *

If the destination is Evidently, this specifies the ARN of the * Evidently experiment that receives the metrics.

*/ inline MetricDestinationSummary& WithDestinationArn(const Aws::String& value) { SetDestinationArn(value); return *this;} /** *

If the destination is Evidently, this specifies the ARN of the * Evidently experiment that receives the metrics.

*/ inline MetricDestinationSummary& WithDestinationArn(Aws::String&& value) { SetDestinationArn(std::move(value)); return *this;} /** *

If the destination is Evidently, this specifies the ARN of the * Evidently experiment that receives the metrics.

*/ inline MetricDestinationSummary& WithDestinationArn(const char* value) { SetDestinationArn(value); return *this;} /** *

This field appears only when the destination is Evidently. It * specifies the ARN of the IAM role that is used to write to the Evidently * experiment that receives the metrics.

*/ inline const Aws::String& GetIamRoleArn() const{ return m_iamRoleArn; } /** *

This field appears only when the destination is Evidently. It * specifies the ARN of the IAM role that is used to write to the Evidently * experiment that receives the metrics.

*/ inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; } /** *

This field appears only when the destination is Evidently. It * specifies the ARN of the IAM role that is used to write to the Evidently * experiment that receives the metrics.

*/ inline void SetIamRoleArn(const Aws::String& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = value; } /** *

This field appears only when the destination is Evidently. It * specifies the ARN of the IAM role that is used to write to the Evidently * experiment that receives the metrics.

*/ inline void SetIamRoleArn(Aws::String&& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = std::move(value); } /** *

This field appears only when the destination is Evidently. It * specifies the ARN of the IAM role that is used to write to the Evidently * experiment that receives the metrics.

*/ inline void SetIamRoleArn(const char* value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn.assign(value); } /** *

This field appears only when the destination is Evidently. It * specifies the ARN of the IAM role that is used to write to the Evidently * experiment that receives the metrics.

*/ inline MetricDestinationSummary& WithIamRoleArn(const Aws::String& value) { SetIamRoleArn(value); return *this;} /** *

This field appears only when the destination is Evidently. It * specifies the ARN of the IAM role that is used to write to the Evidently * experiment that receives the metrics.

*/ inline MetricDestinationSummary& WithIamRoleArn(Aws::String&& value) { SetIamRoleArn(std::move(value)); return *this;} /** *

This field appears only when the destination is Evidently. It * specifies the ARN of the IAM role that is used to write to the Evidently * experiment that receives the metrics.

*/ inline MetricDestinationSummary& WithIamRoleArn(const char* value) { SetIamRoleArn(value); return *this;} private: MetricDestination m_destination; bool m_destinationHasBeenSet = false; Aws::String m_destinationArn; bool m_destinationArnHasBeenSet = false; Aws::String m_iamRoleArn; bool m_iamRoleArnHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchRUM } // namespace Aws