AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ExperimentResultsData.h
1
6#pragma once
7#include <aws/evidently/CloudWatchEvidently_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/evidently/model/ExperimentResultResponseType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CloudWatchEvidently
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CLOUDWATCHEVIDENTLY_API ExperimentResultsData() = default;
38 AWS_CLOUDWATCHEVIDENTLY_API ExperimentResultsData(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDWATCHEVIDENTLY_API ExperimentResultsData& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetMetricName() const { return m_metricName; }
48 inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
49 template<typename MetricNameT = Aws::String>
50 void SetMetricName(MetricNameT&& value) { m_metricNameHasBeenSet = true; m_metricName = std::forward<MetricNameT>(value); }
51 template<typename MetricNameT = Aws::String>
52 ExperimentResultsData& WithMetricName(MetricNameT&& value) { SetMetricName(std::forward<MetricNameT>(value)); return *this;}
54
56
59 inline ExperimentResultResponseType GetResultStat() const { return m_resultStat; }
60 inline bool ResultStatHasBeenSet() const { return m_resultStatHasBeenSet; }
61 inline void SetResultStat(ExperimentResultResponseType value) { m_resultStatHasBeenSet = true; m_resultStat = value; }
64
66
70 inline const Aws::String& GetTreatmentName() const { return m_treatmentName; }
71 inline bool TreatmentNameHasBeenSet() const { return m_treatmentNameHasBeenSet; }
72 template<typename TreatmentNameT = Aws::String>
73 void SetTreatmentName(TreatmentNameT&& value) { m_treatmentNameHasBeenSet = true; m_treatmentName = std::forward<TreatmentNameT>(value); }
74 template<typename TreatmentNameT = Aws::String>
75 ExperimentResultsData& WithTreatmentName(TreatmentNameT&& value) { SetTreatmentName(std::forward<TreatmentNameT>(value)); return *this;}
77
79
83 inline const Aws::Vector<double>& GetValues() const { return m_values; }
84 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
85 template<typename ValuesT = Aws::Vector<double>>
86 void SetValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values = std::forward<ValuesT>(value); }
87 template<typename ValuesT = Aws::Vector<double>>
88 ExperimentResultsData& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
89 inline ExperimentResultsData& AddValues(double value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
91 private:
92
93 Aws::String m_metricName;
94 bool m_metricNameHasBeenSet = false;
95
97 bool m_resultStatHasBeenSet = false;
98
99 Aws::String m_treatmentName;
100 bool m_treatmentNameHasBeenSet = false;
101
102 Aws::Vector<double> m_values;
103 bool m_valuesHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace CloudWatchEvidently
108} // namespace Aws
AWS_CLOUDWATCHEVIDENTLY_API ExperimentResultsData()=default
ExperimentResultsData & WithMetricName(MetricNameT &&value)
ExperimentResultsData & WithValues(ValuesT &&value)
ExperimentResultsData & WithTreatmentName(TreatmentNameT &&value)
ExperimentResultsData & WithResultStat(ExperimentResultResponseType value)
AWS_CLOUDWATCHEVIDENTLY_API ExperimentResultsData & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHEVIDENTLY_API ExperimentResultsData(Aws::Utils::Json::JsonView jsonValue)
void SetResultStat(ExperimentResultResponseType value)
AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue