/** * 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 CloudWatchRUM { namespace Model { /** */ class PutRumMetricsDestinationRequest : public CloudWatchRUMRequest { public: AWS_CLOUDWATCHRUM_API PutRumMetricsDestinationRequest(); // 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 "PutRumMetricsDestination"; } AWS_CLOUDWATCHRUM_API Aws::String SerializePayload() const override; /** *

The name of the CloudWatch RUM app monitor that will send the metrics.

*/ inline const Aws::String& GetAppMonitorName() const{ return m_appMonitorName; } /** *

The name of the CloudWatch RUM app monitor that will send the metrics.

*/ inline bool AppMonitorNameHasBeenSet() const { return m_appMonitorNameHasBeenSet; } /** *

The name of the CloudWatch RUM app monitor that will send the metrics.

*/ inline void SetAppMonitorName(const Aws::String& value) { m_appMonitorNameHasBeenSet = true; m_appMonitorName = value; } /** *

The name of the CloudWatch RUM app monitor that will send the metrics.

*/ inline void SetAppMonitorName(Aws::String&& value) { m_appMonitorNameHasBeenSet = true; m_appMonitorName = std::move(value); } /** *

The name of the CloudWatch RUM app monitor that will send the metrics.

*/ inline void SetAppMonitorName(const char* value) { m_appMonitorNameHasBeenSet = true; m_appMonitorName.assign(value); } /** *

The name of the CloudWatch RUM app monitor that will send the metrics.

*/ inline PutRumMetricsDestinationRequest& WithAppMonitorName(const Aws::String& value) { SetAppMonitorName(value); return *this;} /** *

The name of the CloudWatch RUM app monitor that will send the metrics.

*/ inline PutRumMetricsDestinationRequest& WithAppMonitorName(Aws::String&& value) { SetAppMonitorName(std::move(value)); return *this;} /** *

The name of the CloudWatch RUM app monitor that will send the metrics.

*/ inline PutRumMetricsDestinationRequest& WithAppMonitorName(const char* value) { SetAppMonitorName(value); return *this;} /** *

Defines the destination to send the metrics to. Valid values are * CloudWatch and Evidently. If you specify * Evidently, you must also specify the ARN of the CloudWatchEvidently * experiment that is to be the destination and an IAM role that has permission to * write to the experiment.

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

Defines the destination to send the metrics to. Valid values are * CloudWatch and Evidently. If you specify * Evidently, you must also specify the ARN of the CloudWatchEvidently * experiment that is to be the destination and an IAM role that has permission to * write to the experiment.

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

Defines the destination to send the metrics to. Valid values are * CloudWatch and Evidently. If you specify * Evidently, you must also specify the ARN of the CloudWatchEvidently * experiment that is to be the destination and an IAM role that has permission to * write to the experiment.

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

Defines the destination to send the metrics to. Valid values are * CloudWatch and Evidently. If you specify * Evidently, you must also specify the ARN of the CloudWatchEvidently * experiment that is to be the destination and an IAM role that has permission to * write to the experiment.

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

Defines the destination to send the metrics to. Valid values are * CloudWatch and Evidently. If you specify * Evidently, you must also specify the ARN of the CloudWatchEvidently * experiment that is to be the destination and an IAM role that has permission to * write to the experiment.

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

Defines the destination to send the metrics to. Valid values are * CloudWatch and Evidently. If you specify * Evidently, you must also specify the ARN of the CloudWatchEvidently * experiment that is to be the destination and an IAM role that has permission to * write to the experiment.

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

Use this parameter only if Destination is * Evidently. This parameter specifies the ARN of the Evidently * experiment that will receive the extended metrics.

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

Use this parameter only if Destination is * Evidently. This parameter specifies the ARN of the Evidently * experiment that will receive the extended metrics.

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

Use this parameter only if Destination is * Evidently. This parameter specifies the ARN of the Evidently * experiment that will receive the extended metrics.

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

Use this parameter only if Destination is * Evidently. This parameter specifies the ARN of the Evidently * experiment that will receive the extended metrics.

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

Use this parameter only if Destination is * Evidently. This parameter specifies the ARN of the Evidently * experiment that will receive the extended metrics.

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

Use this parameter only if Destination is * Evidently. This parameter specifies the ARN of the Evidently * experiment that will receive the extended metrics.

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

Use this parameter only if Destination is * Evidently. This parameter specifies the ARN of the Evidently * experiment that will receive the extended metrics.

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

Use this parameter only if Destination is * Evidently. This parameter specifies the ARN of the Evidently * experiment that will receive the extended metrics.

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

This parameter is required if Destination is * Evidently. If Destination is CloudWatch, * do not use this parameter.

This parameter specifies the ARN of an IAM * role that RUM will assume to write to the Evidently experiment that you are * sending metrics to. This role must have permission to write to that * experiment.

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

This parameter is required if Destination is * Evidently. If Destination is CloudWatch, * do not use this parameter.

This parameter specifies the ARN of an IAM * role that RUM will assume to write to the Evidently experiment that you are * sending metrics to. This role must have permission to write to that * experiment.

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

This parameter is required if Destination is * Evidently. If Destination is CloudWatch, * do not use this parameter.

This parameter specifies the ARN of an IAM * role that RUM will assume to write to the Evidently experiment that you are * sending metrics to. This role must have permission to write to that * experiment.

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

This parameter is required if Destination is * Evidently. If Destination is CloudWatch, * do not use this parameter.

This parameter specifies the ARN of an IAM * role that RUM will assume to write to the Evidently experiment that you are * sending metrics to. This role must have permission to write to that * experiment.

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

This parameter is required if Destination is * Evidently. If Destination is CloudWatch, * do not use this parameter.

This parameter specifies the ARN of an IAM * role that RUM will assume to write to the Evidently experiment that you are * sending metrics to. This role must have permission to write to that * experiment.

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

This parameter is required if Destination is * Evidently. If Destination is CloudWatch, * do not use this parameter.

This parameter specifies the ARN of an IAM * role that RUM will assume to write to the Evidently experiment that you are * sending metrics to. This role must have permission to write to that * experiment.

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

This parameter is required if Destination is * Evidently. If Destination is CloudWatch, * do not use this parameter.

This parameter specifies the ARN of an IAM * role that RUM will assume to write to the Evidently experiment that you are * sending metrics to. This role must have permission to write to that * experiment.

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

This parameter is required if Destination is * Evidently. If Destination is CloudWatch, * do not use this parameter.

This parameter specifies the ARN of an IAM * role that RUM will assume to write to the Evidently experiment that you are * sending metrics to. This role must have permission to write to that * experiment.

*/ inline PutRumMetricsDestinationRequest& WithIamRoleArn(const char* value) { SetIamRoleArn(value); return *this;} private: Aws::String m_appMonitorName; bool m_appMonitorNameHasBeenSet = false; 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