/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace CloudWatchRUM { namespace Model { /** */ class UpdateRumMetricDefinitionRequest : public CloudWatchRUMRequest { public: AWS_CLOUDWATCHRUM_API UpdateRumMetricDefinitionRequest(); // 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 "UpdateRumMetricDefinition"; } AWS_CLOUDWATCHRUM_API Aws::String SerializePayload() const override; /** *

The name of the CloudWatch RUM app monitor that sends these metrics.

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

The name of the CloudWatch RUM app monitor that sends these metrics.

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

The name of the CloudWatch RUM app monitor that sends these metrics.

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

The name of the CloudWatch RUM app monitor that sends these metrics.

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

The name of the CloudWatch RUM app monitor that sends these metrics.

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

The name of the CloudWatch RUM app monitor that sends these metrics.

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

The name of the CloudWatch RUM app monitor that sends these metrics.

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

The name of the CloudWatch RUM app monitor that sends these metrics.

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

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 will receive the metrics and an IAM role that has permission to * write to the experiment.

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

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 will receive the metrics and an IAM role that has permission to * write to the experiment.

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

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 will receive the metrics and an IAM role that has permission to * write to the experiment.

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

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 will receive the metrics 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); } /** *

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 will receive the metrics and an IAM role that has permission to * write to the experiment.

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

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 will receive the metrics and an IAM role that has permission to * write to the experiment.

*/ inline UpdateRumMetricDefinitionRequest& WithDestination(MetricDestination&& value) { SetDestination(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 the * Evidently experiment that is to receive the metrics. You must have already * defined this experiment as a valid destination. For more information, see PutRumMetricsDestination.

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

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

This parameter specifies the ARN of the * Evidently experiment that is to receive the metrics. You must have already * defined this experiment as a valid destination. For more information, see PutRumMetricsDestination.

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

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

This parameter specifies the ARN of the * Evidently experiment that is to receive the metrics. You must have already * defined this experiment as a valid destination. For more information, see PutRumMetricsDestination.

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

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

This parameter specifies the ARN of the * Evidently experiment that is to receive the metrics. You must have already * defined this experiment as a valid destination. For more information, see PutRumMetricsDestination.

*/ inline void SetDestinationArn(Aws::String&& value) { m_destinationArnHasBeenSet = true; m_destinationArn = 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 the * Evidently experiment that is to receive the metrics. You must have already * defined this experiment as a valid destination. For more information, see PutRumMetricsDestination.

*/ inline void SetDestinationArn(const char* value) { m_destinationArnHasBeenSet = true; m_destinationArn.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 the * Evidently experiment that is to receive the metrics. You must have already * defined this experiment as a valid destination. For more information, see PutRumMetricsDestination.

*/ inline UpdateRumMetricDefinitionRequest& WithDestinationArn(const Aws::String& 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 the * Evidently experiment that is to receive the metrics. You must have already * defined this experiment as a valid destination. For more information, see PutRumMetricsDestination.

*/ inline UpdateRumMetricDefinitionRequest& WithDestinationArn(Aws::String&& value) { SetDestinationArn(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 the * Evidently experiment that is to receive the metrics. You must have already * defined this experiment as a valid destination. For more information, see PutRumMetricsDestination.

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

A structure that contains the new definition that you want to use for this * metric.

*/ inline const MetricDefinitionRequest& GetMetricDefinition() const{ return m_metricDefinition; } /** *

A structure that contains the new definition that you want to use for this * metric.

*/ inline bool MetricDefinitionHasBeenSet() const { return m_metricDefinitionHasBeenSet; } /** *

A structure that contains the new definition that you want to use for this * metric.

*/ inline void SetMetricDefinition(const MetricDefinitionRequest& value) { m_metricDefinitionHasBeenSet = true; m_metricDefinition = value; } /** *

A structure that contains the new definition that you want to use for this * metric.

*/ inline void SetMetricDefinition(MetricDefinitionRequest&& value) { m_metricDefinitionHasBeenSet = true; m_metricDefinition = std::move(value); } /** *

A structure that contains the new definition that you want to use for this * metric.

*/ inline UpdateRumMetricDefinitionRequest& WithMetricDefinition(const MetricDefinitionRequest& value) { SetMetricDefinition(value); return *this;} /** *

A structure that contains the new definition that you want to use for this * metric.

*/ inline UpdateRumMetricDefinitionRequest& WithMetricDefinition(MetricDefinitionRequest&& value) { SetMetricDefinition(std::move(value)); return *this;} /** *

The ID of the metric definition to update.

*/ inline const Aws::String& GetMetricDefinitionId() const{ return m_metricDefinitionId; } /** *

The ID of the metric definition to update.

*/ inline bool MetricDefinitionIdHasBeenSet() const { return m_metricDefinitionIdHasBeenSet; } /** *

The ID of the metric definition to update.

*/ inline void SetMetricDefinitionId(const Aws::String& value) { m_metricDefinitionIdHasBeenSet = true; m_metricDefinitionId = value; } /** *

The ID of the metric definition to update.

*/ inline void SetMetricDefinitionId(Aws::String&& value) { m_metricDefinitionIdHasBeenSet = true; m_metricDefinitionId = std::move(value); } /** *

The ID of the metric definition to update.

*/ inline void SetMetricDefinitionId(const char* value) { m_metricDefinitionIdHasBeenSet = true; m_metricDefinitionId.assign(value); } /** *

The ID of the metric definition to update.

*/ inline UpdateRumMetricDefinitionRequest& WithMetricDefinitionId(const Aws::String& value) { SetMetricDefinitionId(value); return *this;} /** *

The ID of the metric definition to update.

*/ inline UpdateRumMetricDefinitionRequest& WithMetricDefinitionId(Aws::String&& value) { SetMetricDefinitionId(std::move(value)); return *this;} /** *

The ID of the metric definition to update.

*/ inline UpdateRumMetricDefinitionRequest& WithMetricDefinitionId(const char* value) { SetMetricDefinitionId(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; MetricDefinitionRequest m_metricDefinition; bool m_metricDefinitionHasBeenSet = false; Aws::String m_metricDefinitionId; bool m_metricDefinitionIdHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchRUM } // namespace Aws