/** * 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 MWAA { namespace Model { /** */ class PublishMetricsRequest : public MWAARequest { public: AWS_MWAA_API PublishMetricsRequest(); // 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 "PublishMetrics"; } AWS_MWAA_API Aws::String SerializePayload() const override; /** *

Internal only. The name of the environment.

*/ inline const Aws::String& GetEnvironmentName() const{ return m_environmentName; } /** *

Internal only. The name of the environment.

*/ inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; } /** *

Internal only. The name of the environment.

*/ inline void SetEnvironmentName(const Aws::String& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; } /** *

Internal only. The name of the environment.

*/ inline void SetEnvironmentName(Aws::String&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::move(value); } /** *

Internal only. The name of the environment.

*/ inline void SetEnvironmentName(const char* value) { m_environmentNameHasBeenSet = true; m_environmentName.assign(value); } /** *

Internal only. The name of the environment.

*/ inline PublishMetricsRequest& WithEnvironmentName(const Aws::String& value) { SetEnvironmentName(value); return *this;} /** *

Internal only. The name of the environment.

*/ inline PublishMetricsRequest& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(std::move(value)); return *this;} /** *

Internal only. The name of the environment.

*/ inline PublishMetricsRequest& WithEnvironmentName(const char* value) { SetEnvironmentName(value); return *this;} /** *

Internal only. Publishes metrics to Amazon CloudWatch. To learn more * about the metrics published to Amazon CloudWatch, see Amazon * MWAA performance metrics in Amazon CloudWatch.

*/ inline const Aws::Vector& GetMetricData() const{ return m_metricData; } /** *

Internal only. Publishes metrics to Amazon CloudWatch. To learn more * about the metrics published to Amazon CloudWatch, see Amazon * MWAA performance metrics in Amazon CloudWatch.

*/ inline bool MetricDataHasBeenSet() const { return m_metricDataHasBeenSet; } /** *

Internal only. Publishes metrics to Amazon CloudWatch. To learn more * about the metrics published to Amazon CloudWatch, see Amazon * MWAA performance metrics in Amazon CloudWatch.

*/ inline void SetMetricData(const Aws::Vector& value) { m_metricDataHasBeenSet = true; m_metricData = value; } /** *

Internal only. Publishes metrics to Amazon CloudWatch. To learn more * about the metrics published to Amazon CloudWatch, see Amazon * MWAA performance metrics in Amazon CloudWatch.

*/ inline void SetMetricData(Aws::Vector&& value) { m_metricDataHasBeenSet = true; m_metricData = std::move(value); } /** *

Internal only. Publishes metrics to Amazon CloudWatch. To learn more * about the metrics published to Amazon CloudWatch, see Amazon * MWAA performance metrics in Amazon CloudWatch.

*/ inline PublishMetricsRequest& WithMetricData(const Aws::Vector& value) { SetMetricData(value); return *this;} /** *

Internal only. Publishes metrics to Amazon CloudWatch. To learn more * about the metrics published to Amazon CloudWatch, see Amazon * MWAA performance metrics in Amazon CloudWatch.

*/ inline PublishMetricsRequest& WithMetricData(Aws::Vector&& value) { SetMetricData(std::move(value)); return *this;} /** *

Internal only. Publishes metrics to Amazon CloudWatch. To learn more * about the metrics published to Amazon CloudWatch, see Amazon * MWAA performance metrics in Amazon CloudWatch.

*/ inline PublishMetricsRequest& AddMetricData(const MetricDatum& value) { m_metricDataHasBeenSet = true; m_metricData.push_back(value); return *this; } /** *

Internal only. Publishes metrics to Amazon CloudWatch. To learn more * about the metrics published to Amazon CloudWatch, see Amazon * MWAA performance metrics in Amazon CloudWatch.

*/ inline PublishMetricsRequest& AddMetricData(MetricDatum&& value) { m_metricDataHasBeenSet = true; m_metricData.push_back(std::move(value)); return *this; } private: Aws::String m_environmentName; bool m_environmentNameHasBeenSet = false; Aws::Vector m_metricData; bool m_metricDataHasBeenSet = false; }; } // namespace Model } // namespace MWAA } // namespace Aws