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

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

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

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

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

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

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

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

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

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

*/ inline BatchCreateRumMetricDefinitionsRequest& 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 BatchCreateRumMetricDefinitionsRequest& 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 BatchCreateRumMetricDefinitionsRequest& 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 BatchCreateRumMetricDefinitionsRequest& 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 BatchCreateRumMetricDefinitionsRequest& 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 BatchCreateRumMetricDefinitionsRequest& WithDestinationArn(const char* value) { SetDestinationArn(value); return *this;} /** *

An array of structures which define the metrics that you want to send.

*/ inline const Aws::Vector& GetMetricDefinitions() const{ return m_metricDefinitions; } /** *

An array of structures which define the metrics that you want to send.

*/ inline bool MetricDefinitionsHasBeenSet() const { return m_metricDefinitionsHasBeenSet; } /** *

An array of structures which define the metrics that you want to send.

*/ inline void SetMetricDefinitions(const Aws::Vector& value) { m_metricDefinitionsHasBeenSet = true; m_metricDefinitions = value; } /** *

An array of structures which define the metrics that you want to send.

*/ inline void SetMetricDefinitions(Aws::Vector&& value) { m_metricDefinitionsHasBeenSet = true; m_metricDefinitions = std::move(value); } /** *

An array of structures which define the metrics that you want to send.

*/ inline BatchCreateRumMetricDefinitionsRequest& WithMetricDefinitions(const Aws::Vector& value) { SetMetricDefinitions(value); return *this;} /** *

An array of structures which define the metrics that you want to send.

*/ inline BatchCreateRumMetricDefinitionsRequest& WithMetricDefinitions(Aws::Vector&& value) { SetMetricDefinitions(std::move(value)); return *this;} /** *

An array of structures which define the metrics that you want to send.

*/ inline BatchCreateRumMetricDefinitionsRequest& AddMetricDefinitions(const MetricDefinitionRequest& value) { m_metricDefinitionsHasBeenSet = true; m_metricDefinitions.push_back(value); return *this; } /** *

An array of structures which define the metrics that you want to send.

*/ inline BatchCreateRumMetricDefinitionsRequest& AddMetricDefinitions(MetricDefinitionRequest&& value) { m_metricDefinitionsHasBeenSet = true; m_metricDefinitions.push_back(std::move(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_metricDefinitions; bool m_metricDefinitionsHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchRUM } // namespace Aws