AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
50 inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
51 inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
52 inline ExperimentResultsData& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
53 inline ExperimentResultsData& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
54 inline ExperimentResultsData& WithMetricName(const char* value) { SetMetricName(value); return *this;}
56
58
61 inline const ExperimentResultResponseType& GetResultStat() const{ return m_resultStat; }
62 inline bool ResultStatHasBeenSet() const { return m_resultStatHasBeenSet; }
63 inline void SetResultStat(const ExperimentResultResponseType& value) { m_resultStatHasBeenSet = true; m_resultStat = value; }
64 inline void SetResultStat(ExperimentResultResponseType&& value) { m_resultStatHasBeenSet = true; m_resultStat = std::move(value); }
66 inline ExperimentResultsData& WithResultStat(ExperimentResultResponseType&& value) { SetResultStat(std::move(value)); return *this;}
68
70
74 inline const Aws::String& GetTreatmentName() const{ return m_treatmentName; }
75 inline bool TreatmentNameHasBeenSet() const { return m_treatmentNameHasBeenSet; }
76 inline void SetTreatmentName(const Aws::String& value) { m_treatmentNameHasBeenSet = true; m_treatmentName = value; }
77 inline void SetTreatmentName(Aws::String&& value) { m_treatmentNameHasBeenSet = true; m_treatmentName = std::move(value); }
78 inline void SetTreatmentName(const char* value) { m_treatmentNameHasBeenSet = true; m_treatmentName.assign(value); }
79 inline ExperimentResultsData& WithTreatmentName(const Aws::String& value) { SetTreatmentName(value); return *this;}
80 inline ExperimentResultsData& WithTreatmentName(Aws::String&& value) { SetTreatmentName(std::move(value)); return *this;}
81 inline ExperimentResultsData& WithTreatmentName(const char* value) { SetTreatmentName(value); return *this;}
83
85
89 inline const Aws::Vector<double>& GetValues() const{ return m_values; }
90 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
91 inline void SetValues(const Aws::Vector<double>& value) { m_valuesHasBeenSet = true; m_values = value; }
92 inline void SetValues(Aws::Vector<double>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
93 inline ExperimentResultsData& WithValues(const Aws::Vector<double>& value) { SetValues(value); return *this;}
94 inline ExperimentResultsData& WithValues(Aws::Vector<double>&& value) { SetValues(std::move(value)); return *this;}
95 inline ExperimentResultsData& AddValues(double value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
97 private:
98
99 Aws::String m_metricName;
100 bool m_metricNameHasBeenSet = false;
101
102 ExperimentResultResponseType m_resultStat;
103 bool m_resultStatHasBeenSet = false;
104
105 Aws::String m_treatmentName;
106 bool m_treatmentNameHasBeenSet = false;
107
108 Aws::Vector<double> m_values;
109 bool m_valuesHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace CloudWatchEvidently
114} // namespace Aws
ExperimentResultsData & WithResultStat(ExperimentResultResponseType &&value)
void SetResultStat(const ExperimentResultResponseType &value)
void SetResultStat(ExperimentResultResponseType &&value)
const ExperimentResultResponseType & GetResultStat() const
ExperimentResultsData & WithMetricName(const Aws::String &value)
ExperimentResultsData & WithResultStat(const ExperimentResultResponseType &value)
AWS_CLOUDWATCHEVIDENTLY_API ExperimentResultsData & operator=(Aws::Utils::Json::JsonView jsonValue)
ExperimentResultsData & WithValues(const Aws::Vector< double > &value)
ExperimentResultsData & WithMetricName(Aws::String &&value)
ExperimentResultsData & WithMetricName(const char *value)
AWS_CLOUDWATCHEVIDENTLY_API ExperimentResultsData(Aws::Utils::Json::JsonView jsonValue)
ExperimentResultsData & WithTreatmentName(const char *value)
ExperimentResultsData & WithTreatmentName(const Aws::String &value)
AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetValues(const Aws::Vector< double > &value)
ExperimentResultsData & WithValues(Aws::Vector< double > &&value)
ExperimentResultsData & WithTreatmentName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue