/** * 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 { /** *

A structure that tells Evidently whether higher or lower values are desired * for a metric that is used in an experiment.

See Also:

AWS * API Reference

*/ class MetricGoal { public: AWS_CLOUDWATCHEVIDENTLY_API MetricGoal(); AWS_CLOUDWATCHEVIDENTLY_API MetricGoal(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDWATCHEVIDENTLY_API MetricGoal& 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 MetricGoal& 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 MetricGoal& WithDesiredChange(ChangeDirectionEnum&& value) { SetDesiredChange(std::move(value)); return *this;} /** *

A structure that contains details about the metric.

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

A structure that contains details about the metric.

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

A structure that contains details about the metric.

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

A structure that contains details about the metric.

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