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

Use this structure to tell Evidently whether higher or lower values are * desired for a metric that is used in an experiment.

See Also:

* AWS * API Reference

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

INCREASE means that a variation with a higher number for this * metric is performing better.

DECREASE means that a * variation with a lower number for this metric is performing better.

*/ inline const ChangeDirectionEnum& GetDesiredChange() const{ return m_desiredChange; } /** *

INCREASE means that a variation with a higher number for this * metric is performing better.

DECREASE means that a * variation with a lower number for this metric is performing better.

*/ inline bool DesiredChangeHasBeenSet() const { return m_desiredChangeHasBeenSet; } /** *

INCREASE means that a variation with a higher number for this * metric is performing better.

DECREASE means that a * variation with a lower number for this metric is performing better.

*/ inline void SetDesiredChange(const ChangeDirectionEnum& value) { m_desiredChangeHasBeenSet = true; m_desiredChange = value; } /** *

INCREASE means that a variation with a higher number for this * metric is performing better.

DECREASE means that a * variation with a lower number for this metric is performing better.

*/ inline void SetDesiredChange(ChangeDirectionEnum&& value) { m_desiredChangeHasBeenSet = true; m_desiredChange = std::move(value); } /** *

INCREASE means that a variation with a higher number for this * metric is performing better.

DECREASE means that a * variation with a lower number for this metric is performing better.

*/ inline MetricGoalConfig& WithDesiredChange(const ChangeDirectionEnum& value) { SetDesiredChange(value); return *this;} /** *

INCREASE means that a variation with a higher number for this * metric is performing better.

DECREASE means that a * variation with a lower number for this metric is performing better.

*/ inline MetricGoalConfig& WithDesiredChange(ChangeDirectionEnum&& value) { SetDesiredChange(std::move(value)); return *this;} /** *

A structure that contains details about the metric.

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

A structure that contains details about the metric.

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

A structure that contains details about the metric.

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

A structure that contains details about the metric.

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

A structure that contains details about the metric.

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

A structure that contains details about the metric.

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