AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetExperimentResultsRequest.h
1
6#pragma once
7#include <aws/evidently/CloudWatchEvidently_EXPORTS.h>
8#include <aws/evidently/CloudWatchEvidentlyRequest.h>
9#include <aws/evidently/model/ExperimentBaseStat.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/evidently/model/ExperimentReportName.h>
14#include <aws/evidently/model/ExperimentResultRequestType.h>
15#include <utility>
16
17namespace Aws
18{
19namespace CloudWatchEvidently
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_CLOUDWATCHEVIDENTLY_API GetExperimentResultsRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "GetExperimentResults"; }
36
37 AWS_CLOUDWATCHEVIDENTLY_API Aws::String SerializePayload() const override;
38
39
41
46 inline const ExperimentBaseStat& GetBaseStat() const{ return m_baseStat; }
47 inline bool BaseStatHasBeenSet() const { return m_baseStatHasBeenSet; }
48 inline void SetBaseStat(const ExperimentBaseStat& value) { m_baseStatHasBeenSet = true; m_baseStat = value; }
49 inline void SetBaseStat(ExperimentBaseStat&& value) { m_baseStatHasBeenSet = true; m_baseStat = std::move(value); }
50 inline GetExperimentResultsRequest& WithBaseStat(const ExperimentBaseStat& value) { SetBaseStat(value); return *this;}
51 inline GetExperimentResultsRequest& WithBaseStat(ExperimentBaseStat&& value) { SetBaseStat(std::move(value)); return *this;}
53
55
59 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
60 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
61 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
62 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
63 inline GetExperimentResultsRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
64 inline GetExperimentResultsRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
66
68
71 inline const Aws::String& GetExperiment() const{ return m_experiment; }
72 inline bool ExperimentHasBeenSet() const { return m_experimentHasBeenSet; }
73 inline void SetExperiment(const Aws::String& value) { m_experimentHasBeenSet = true; m_experiment = value; }
74 inline void SetExperiment(Aws::String&& value) { m_experimentHasBeenSet = true; m_experiment = std::move(value); }
75 inline void SetExperiment(const char* value) { m_experimentHasBeenSet = true; m_experiment.assign(value); }
76 inline GetExperimentResultsRequest& WithExperiment(const Aws::String& value) { SetExperiment(value); return *this;}
77 inline GetExperimentResultsRequest& WithExperiment(Aws::String&& value) { SetExperiment(std::move(value)); return *this;}
78 inline GetExperimentResultsRequest& WithExperiment(const char* value) { SetExperiment(value); return *this;}
80
82
85 inline const Aws::Vector<Aws::String>& GetMetricNames() const{ return m_metricNames; }
86 inline bool MetricNamesHasBeenSet() const { return m_metricNamesHasBeenSet; }
87 inline void SetMetricNames(const Aws::Vector<Aws::String>& value) { m_metricNamesHasBeenSet = true; m_metricNames = value; }
88 inline void SetMetricNames(Aws::Vector<Aws::String>&& value) { m_metricNamesHasBeenSet = true; m_metricNames = std::move(value); }
90 inline GetExperimentResultsRequest& WithMetricNames(Aws::Vector<Aws::String>&& value) { SetMetricNames(std::move(value)); return *this;}
91 inline GetExperimentResultsRequest& AddMetricNames(const Aws::String& value) { m_metricNamesHasBeenSet = true; m_metricNames.push_back(value); return *this; }
92 inline GetExperimentResultsRequest& AddMetricNames(Aws::String&& value) { m_metricNamesHasBeenSet = true; m_metricNames.push_back(std::move(value)); return *this; }
93 inline GetExperimentResultsRequest& AddMetricNames(const char* value) { m_metricNamesHasBeenSet = true; m_metricNames.push_back(value); return *this; }
95
97
100 inline long long GetPeriod() const{ return m_period; }
101 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
102 inline void SetPeriod(long long value) { m_periodHasBeenSet = true; m_period = value; }
103 inline GetExperimentResultsRequest& WithPeriod(long long value) { SetPeriod(value); return *this;}
105
107
111 inline const Aws::String& GetProject() const{ return m_project; }
112 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
113 inline void SetProject(const Aws::String& value) { m_projectHasBeenSet = true; m_project = value; }
114 inline void SetProject(Aws::String&& value) { m_projectHasBeenSet = true; m_project = std::move(value); }
115 inline void SetProject(const char* value) { m_projectHasBeenSet = true; m_project.assign(value); }
116 inline GetExperimentResultsRequest& WithProject(const Aws::String& value) { SetProject(value); return *this;}
117 inline GetExperimentResultsRequest& WithProject(Aws::String&& value) { SetProject(std::move(value)); return *this;}
118 inline GetExperimentResultsRequest& WithProject(const char* value) { SetProject(value); return *this;}
120
122
126 inline const Aws::Vector<ExperimentReportName>& GetReportNames() const{ return m_reportNames; }
127 inline bool ReportNamesHasBeenSet() const { return m_reportNamesHasBeenSet; }
128 inline void SetReportNames(const Aws::Vector<ExperimentReportName>& value) { m_reportNamesHasBeenSet = true; m_reportNames = value; }
129 inline void SetReportNames(Aws::Vector<ExperimentReportName>&& value) { m_reportNamesHasBeenSet = true; m_reportNames = std::move(value); }
132 inline GetExperimentResultsRequest& AddReportNames(const ExperimentReportName& value) { m_reportNamesHasBeenSet = true; m_reportNames.push_back(value); return *this; }
133 inline GetExperimentResultsRequest& AddReportNames(ExperimentReportName&& value) { m_reportNamesHasBeenSet = true; m_reportNames.push_back(std::move(value)); return *this; }
135
137
156 inline const Aws::Vector<ExperimentResultRequestType>& GetResultStats() const{ return m_resultStats; }
157 inline bool ResultStatsHasBeenSet() const { return m_resultStatsHasBeenSet; }
158 inline void SetResultStats(const Aws::Vector<ExperimentResultRequestType>& value) { m_resultStatsHasBeenSet = true; m_resultStats = value; }
159 inline void SetResultStats(Aws::Vector<ExperimentResultRequestType>&& value) { m_resultStatsHasBeenSet = true; m_resultStats = std::move(value); }
162 inline GetExperimentResultsRequest& AddResultStats(const ExperimentResultRequestType& value) { m_resultStatsHasBeenSet = true; m_resultStats.push_back(value); return *this; }
163 inline GetExperimentResultsRequest& AddResultStats(ExperimentResultRequestType&& value) { m_resultStatsHasBeenSet = true; m_resultStats.push_back(std::move(value)); return *this; }
165
167
170 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
171 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
172 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
173 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
174 inline GetExperimentResultsRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
175 inline GetExperimentResultsRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
177
179
183 inline const Aws::Vector<Aws::String>& GetTreatmentNames() const{ return m_treatmentNames; }
184 inline bool TreatmentNamesHasBeenSet() const { return m_treatmentNamesHasBeenSet; }
185 inline void SetTreatmentNames(const Aws::Vector<Aws::String>& value) { m_treatmentNamesHasBeenSet = true; m_treatmentNames = value; }
186 inline void SetTreatmentNames(Aws::Vector<Aws::String>&& value) { m_treatmentNamesHasBeenSet = true; m_treatmentNames = std::move(value); }
189 inline GetExperimentResultsRequest& AddTreatmentNames(const Aws::String& value) { m_treatmentNamesHasBeenSet = true; m_treatmentNames.push_back(value); return *this; }
190 inline GetExperimentResultsRequest& AddTreatmentNames(Aws::String&& value) { m_treatmentNamesHasBeenSet = true; m_treatmentNames.push_back(std::move(value)); return *this; }
191 inline GetExperimentResultsRequest& AddTreatmentNames(const char* value) { m_treatmentNamesHasBeenSet = true; m_treatmentNames.push_back(value); return *this; }
193 private:
194
195 ExperimentBaseStat m_baseStat;
196 bool m_baseStatHasBeenSet = false;
197
198 Aws::Utils::DateTime m_endTime;
199 bool m_endTimeHasBeenSet = false;
200
201 Aws::String m_experiment;
202 bool m_experimentHasBeenSet = false;
203
204 Aws::Vector<Aws::String> m_metricNames;
205 bool m_metricNamesHasBeenSet = false;
206
207 long long m_period;
208 bool m_periodHasBeenSet = false;
209
210 Aws::String m_project;
211 bool m_projectHasBeenSet = false;
212
214 bool m_reportNamesHasBeenSet = false;
215
217 bool m_resultStatsHasBeenSet = false;
218
219 Aws::Utils::DateTime m_startTime;
220 bool m_startTimeHasBeenSet = false;
221
222 Aws::Vector<Aws::String> m_treatmentNames;
223 bool m_treatmentNamesHasBeenSet = false;
224 };
225
226} // namespace Model
227} // namespace CloudWatchEvidently
228} // namespace Aws
GetExperimentResultsRequest & WithStartTime(const Aws::Utils::DateTime &value)
GetExperimentResultsRequest & AddReportNames(const ExperimentReportName &value)
GetExperimentResultsRequest & WithExperiment(const char *value)
GetExperimentResultsRequest & WithBaseStat(ExperimentBaseStat &&value)
GetExperimentResultsRequest & AddReportNames(ExperimentReportName &&value)
GetExperimentResultsRequest & WithMetricNames(const Aws::Vector< Aws::String > &value)
GetExperimentResultsRequest & WithReportNames(const Aws::Vector< ExperimentReportName > &value)
GetExperimentResultsRequest & WithResultStats(Aws::Vector< ExperimentResultRequestType > &&value)
void SetReportNames(const Aws::Vector< ExperimentReportName > &value)
GetExperimentResultsRequest & WithTreatmentNames(const Aws::Vector< Aws::String > &value)
GetExperimentResultsRequest & WithEndTime(const Aws::Utils::DateTime &value)
GetExperimentResultsRequest & WithReportNames(Aws::Vector< ExperimentReportName > &&value)
GetExperimentResultsRequest & WithProject(const Aws::String &value)
GetExperimentResultsRequest & AddTreatmentNames(const char *value)
GetExperimentResultsRequest & WithMetricNames(Aws::Vector< Aws::String > &&value)
void SetReportNames(Aws::Vector< ExperimentReportName > &&value)
GetExperimentResultsRequest & WithProject(Aws::String &&value)
GetExperimentResultsRequest & WithResultStats(const Aws::Vector< ExperimentResultRequestType > &value)
GetExperimentResultsRequest & WithEndTime(Aws::Utils::DateTime &&value)
GetExperimentResultsRequest & WithExperiment(const Aws::String &value)
GetExperimentResultsRequest & WithTreatmentNames(Aws::Vector< Aws::String > &&value)
GetExperimentResultsRequest & WithExperiment(Aws::String &&value)
const Aws::Vector< ExperimentResultRequestType > & GetResultStats() const
GetExperimentResultsRequest & WithBaseStat(const ExperimentBaseStat &value)
GetExperimentResultsRequest & AddResultStats(const ExperimentResultRequestType &value)
GetExperimentResultsRequest & WithStartTime(Aws::Utils::DateTime &&value)
void SetResultStats(const Aws::Vector< ExperimentResultRequestType > &value)
const Aws::Vector< ExperimentReportName > & GetReportNames() const
AWS_CLOUDWATCHEVIDENTLY_API Aws::String SerializePayload() const override
GetExperimentResultsRequest & AddResultStats(ExperimentResultRequestType &&value)
GetExperimentResultsRequest & AddTreatmentNames(const Aws::String &value)
void SetResultStats(Aws::Vector< ExperimentResultRequestType > &&value)
GetExperimentResultsRequest & AddMetricNames(Aws::String &&value)
GetExperimentResultsRequest & WithProject(const char *value)
GetExperimentResultsRequest & AddTreatmentNames(Aws::String &&value)
GetExperimentResultsRequest & AddMetricNames(const Aws::String &value)
GetExperimentResultsRequest & AddMetricNames(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector