/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CloudWatchEvidently { namespace Model { /** *

A structure that defines a metric to be used to monitor performance of the * variations during a launch.

See Also:

AWS * API Reference

*/ class MetricMonitor { public: AWS_CLOUDWATCHEVIDENTLY_API MetricMonitor(); AWS_CLOUDWATCHEVIDENTLY_API MetricMonitor(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDWATCHEVIDENTLY_API MetricMonitor& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A structure that defines the metric.

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

A structure that defines the metric.

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

A structure that defines the metric.

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

A structure that defines the metric.

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

A structure that defines the metric.

*/ inline MetricMonitor& WithMetricDefinition(const MetricDefinition& value) { SetMetricDefinition(value); return *this;} /** *

A structure that defines the metric.

*/ inline MetricMonitor& WithMetricDefinition(MetricDefinition&& value) { SetMetricDefinition(std::move(value)); return *this;} private: MetricDefinition m_metricDefinition; bool m_metricDefinitionHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchEvidently } // namespace Aws