/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #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 contains experiment results for one metric that is monitored * in the experiment.

See Also:

AWS * API Reference

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

The name of the metric.

*/ inline const Aws::String& GetMetricName() const{ return m_metricName; } /** *

The name of the metric.

*/ inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; } /** *

The name of the metric.

*/ inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; } /** *

The name of the metric.

*/ inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); } /** *

The name of the metric.

*/ inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); } /** *

The name of the metric.

*/ inline ExperimentResultsData& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;} /** *

The name of the metric.

*/ inline ExperimentResultsData& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;} /** *

The name of the metric.

*/ inline ExperimentResultsData& WithMetricName(const char* value) { SetMetricName(value); return *this;} /** *

The experiment statistic that these results pertain to.

*/ inline const ExperimentResultResponseType& GetResultStat() const{ return m_resultStat; } /** *

The experiment statistic that these results pertain to.

*/ inline bool ResultStatHasBeenSet() const { return m_resultStatHasBeenSet; } /** *

The experiment statistic that these results pertain to.

*/ inline void SetResultStat(const ExperimentResultResponseType& value) { m_resultStatHasBeenSet = true; m_resultStat = value; } /** *

The experiment statistic that these results pertain to.

*/ inline void SetResultStat(ExperimentResultResponseType&& value) { m_resultStatHasBeenSet = true; m_resultStat = std::move(value); } /** *

The experiment statistic that these results pertain to.

*/ inline ExperimentResultsData& WithResultStat(const ExperimentResultResponseType& value) { SetResultStat(value); return *this;} /** *

The experiment statistic that these results pertain to.

*/ inline ExperimentResultsData& WithResultStat(ExperimentResultResponseType&& value) { SetResultStat(std::move(value)); return *this;} /** *

The treatment, or variation, that returned the values in this * structure.

*/ inline const Aws::String& GetTreatmentName() const{ return m_treatmentName; } /** *

The treatment, or variation, that returned the values in this * structure.

*/ inline bool TreatmentNameHasBeenSet() const { return m_treatmentNameHasBeenSet; } /** *

The treatment, or variation, that returned the values in this * structure.

*/ inline void SetTreatmentName(const Aws::String& value) { m_treatmentNameHasBeenSet = true; m_treatmentName = value; } /** *

The treatment, or variation, that returned the values in this * structure.

*/ inline void SetTreatmentName(Aws::String&& value) { m_treatmentNameHasBeenSet = true; m_treatmentName = std::move(value); } /** *

The treatment, or variation, that returned the values in this * structure.

*/ inline void SetTreatmentName(const char* value) { m_treatmentNameHasBeenSet = true; m_treatmentName.assign(value); } /** *

The treatment, or variation, that returned the values in this * structure.

*/ inline ExperimentResultsData& WithTreatmentName(const Aws::String& value) { SetTreatmentName(value); return *this;} /** *

The treatment, or variation, that returned the values in this * structure.

*/ inline ExperimentResultsData& WithTreatmentName(Aws::String&& value) { SetTreatmentName(std::move(value)); return *this;} /** *

The treatment, or variation, that returned the values in this * structure.

*/ inline ExperimentResultsData& WithTreatmentName(const char* value) { SetTreatmentName(value); return *this;} /** *

The values for the metricName that were recorded in the * experiment.

*/ inline const Aws::Vector& GetValues() const{ return m_values; } /** *

The values for the metricName that were recorded in the * experiment.

*/ inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; } /** *

The values for the metricName that were recorded in the * experiment.

*/ inline void SetValues(const Aws::Vector& value) { m_valuesHasBeenSet = true; m_values = value; } /** *

The values for the metricName that were recorded in the * experiment.

*/ inline void SetValues(Aws::Vector&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); } /** *

The values for the metricName that were recorded in the * experiment.

*/ inline ExperimentResultsData& WithValues(const Aws::Vector& value) { SetValues(value); return *this;} /** *

The values for the metricName that were recorded in the * experiment.

*/ inline ExperimentResultsData& WithValues(Aws::Vector&& value) { SetValues(std::move(value)); return *this;} /** *

The values for the metricName that were recorded in the * experiment.

*/ inline ExperimentResultsData& AddValues(double value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } private: Aws::String m_metricName; bool m_metricNameHasBeenSet = false; ExperimentResultResponseType m_resultStat; bool m_resultStatHasBeenSet = false; Aws::String m_treatmentName; bool m_treatmentNameHasBeenSet = false; Aws::Vector m_values; bool m_valuesHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchEvidently } // namespace Aws