/** * 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 MetricMonitorConfig { public: AWS_CLOUDWATCHEVIDENTLY_API MetricMonitorConfig(); AWS_CLOUDWATCHEVIDENTLY_API MetricMonitorConfig(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDWATCHEVIDENTLY_API MetricMonitorConfig& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A structure that defines the metric.

*/ inline const MetricDefinitionConfig& 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 MetricDefinitionConfig& value) { m_metricDefinitionHasBeenSet = true; m_metricDefinition = value; } /** *

A structure that defines the metric.

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

A structure that defines the metric.

*/ inline MetricMonitorConfig& WithMetricDefinition(const MetricDefinitionConfig& value) { SetMetricDefinition(value); return *this;} /** *

A structure that defines the metric.

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