/** * 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 Http { class URI; } //namespace Http namespace CloudWatchRUM { namespace Model { /** */ class BatchDeleteRumMetricDefinitionsRequest : public CloudWatchRUMRequest { public: AWS_CLOUDWATCHRUM_API BatchDeleteRumMetricDefinitionsRequest(); // 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 "BatchDeleteRumMetricDefinitions"; } AWS_CLOUDWATCHRUM_API Aws::String SerializePayload() const override; AWS_CLOUDWATCHRUM_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

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

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

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

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

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

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

The name of the CloudWatch RUM app monitor that is sending 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 is sending these metrics.

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

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

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

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

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

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

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

Defines the destination where you want to stop sending the specified metrics. * 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 where you want to stop sending the specified metrics. * 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 where you want to stop sending the specified metrics. * 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 where you want to stop sending the specified metrics. * 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 where you want to stop sending the specified metrics. * 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 BatchDeleteRumMetricDefinitionsRequest& WithDestination(const MetricDestination& value) { SetDestination(value); return *this;} /** *

Defines the destination where you want to stop sending the specified metrics. * 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 BatchDeleteRumMetricDefinitionsRequest& 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 was receiving the metrics that are being deleted.

*/ 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 was receiving the metrics that are being deleted.

*/ 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 was receiving the metrics that are being deleted.

*/ 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 was receiving the metrics that are being deleted.

*/ 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 was receiving the metrics that are being deleted.

*/ 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 was receiving the metrics that are being deleted.

*/ inline BatchDeleteRumMetricDefinitionsRequest& 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 was receiving the metrics that are being deleted.

*/ inline BatchDeleteRumMetricDefinitionsRequest& 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 was receiving the metrics that are being deleted.

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

An array of structures which define the metrics that you want to stop * sending.

*/ inline const Aws::Vector& GetMetricDefinitionIds() const{ return m_metricDefinitionIds; } /** *

An array of structures which define the metrics that you want to stop * sending.

*/ inline bool MetricDefinitionIdsHasBeenSet() const { return m_metricDefinitionIdsHasBeenSet; } /** *

An array of structures which define the metrics that you want to stop * sending.

*/ inline void SetMetricDefinitionIds(const Aws::Vector& value) { m_metricDefinitionIdsHasBeenSet = true; m_metricDefinitionIds = value; } /** *

An array of structures which define the metrics that you want to stop * sending.

*/ inline void SetMetricDefinitionIds(Aws::Vector&& value) { m_metricDefinitionIdsHasBeenSet = true; m_metricDefinitionIds = std::move(value); } /** *

An array of structures which define the metrics that you want to stop * sending.

*/ inline BatchDeleteRumMetricDefinitionsRequest& WithMetricDefinitionIds(const Aws::Vector& value) { SetMetricDefinitionIds(value); return *this;} /** *

An array of structures which define the metrics that you want to stop * sending.

*/ inline BatchDeleteRumMetricDefinitionsRequest& WithMetricDefinitionIds(Aws::Vector&& value) { SetMetricDefinitionIds(std::move(value)); return *this;} /** *

An array of structures which define the metrics that you want to stop * sending.

*/ inline BatchDeleteRumMetricDefinitionsRequest& AddMetricDefinitionIds(const Aws::String& value) { m_metricDefinitionIdsHasBeenSet = true; m_metricDefinitionIds.push_back(value); return *this; } /** *

An array of structures which define the metrics that you want to stop * sending.

*/ inline BatchDeleteRumMetricDefinitionsRequest& AddMetricDefinitionIds(Aws::String&& value) { m_metricDefinitionIdsHasBeenSet = true; m_metricDefinitionIds.push_back(std::move(value)); return *this; } /** *

An array of structures which define the metrics that you want to stop * sending.

*/ inline BatchDeleteRumMetricDefinitionsRequest& AddMetricDefinitionIds(const char* value) { m_metricDefinitionIdsHasBeenSet = true; m_metricDefinitionIds.push_back(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::Vector m_metricDefinitionIds; bool m_metricDefinitionIdsHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchRUM } // namespace Aws