AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 ExperimentBaseStat GetBaseStat() const { return m_baseStat; }
47 inline bool BaseStatHasBeenSet() const { return m_baseStatHasBeenSet; }
48 inline void SetBaseStat(ExperimentBaseStat value) { m_baseStatHasBeenSet = true; m_baseStat = value; }
51
53
57 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
58 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
59 template<typename EndTimeT = Aws::Utils::DateTime>
60 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
61 template<typename EndTimeT = Aws::Utils::DateTime>
62 GetExperimentResultsRequest& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
64
66
69 inline const Aws::String& GetExperiment() const { return m_experiment; }
70 inline bool ExperimentHasBeenSet() const { return m_experimentHasBeenSet; }
71 template<typename ExperimentT = Aws::String>
72 void SetExperiment(ExperimentT&& value) { m_experimentHasBeenSet = true; m_experiment = std::forward<ExperimentT>(value); }
73 template<typename ExperimentT = Aws::String>
74 GetExperimentResultsRequest& WithExperiment(ExperimentT&& value) { SetExperiment(std::forward<ExperimentT>(value)); return *this;}
76
78
81 inline const Aws::Vector<Aws::String>& GetMetricNames() const { return m_metricNames; }
82 inline bool MetricNamesHasBeenSet() const { return m_metricNamesHasBeenSet; }
83 template<typename MetricNamesT = Aws::Vector<Aws::String>>
84 void SetMetricNames(MetricNamesT&& value) { m_metricNamesHasBeenSet = true; m_metricNames = std::forward<MetricNamesT>(value); }
85 template<typename MetricNamesT = Aws::Vector<Aws::String>>
86 GetExperimentResultsRequest& WithMetricNames(MetricNamesT&& value) { SetMetricNames(std::forward<MetricNamesT>(value)); return *this;}
87 template<typename MetricNamesT = Aws::String>
88 GetExperimentResultsRequest& AddMetricNames(MetricNamesT&& value) { m_metricNamesHasBeenSet = true; m_metricNames.emplace_back(std::forward<MetricNamesT>(value)); return *this; }
90
92
95 inline long long GetPeriod() const { return m_period; }
96 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
97 inline void SetPeriod(long long value) { m_periodHasBeenSet = true; m_period = value; }
98 inline GetExperimentResultsRequest& WithPeriod(long long value) { SetPeriod(value); return *this;}
100
102
106 inline const Aws::String& GetProject() const { return m_project; }
107 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
108 template<typename ProjectT = Aws::String>
109 void SetProject(ProjectT&& value) { m_projectHasBeenSet = true; m_project = std::forward<ProjectT>(value); }
110 template<typename ProjectT = Aws::String>
111 GetExperimentResultsRequest& WithProject(ProjectT&& value) { SetProject(std::forward<ProjectT>(value)); return *this;}
113
115
119 inline const Aws::Vector<ExperimentReportName>& GetReportNames() const { return m_reportNames; }
120 inline bool ReportNamesHasBeenSet() const { return m_reportNamesHasBeenSet; }
121 template<typename ReportNamesT = Aws::Vector<ExperimentReportName>>
122 void SetReportNames(ReportNamesT&& value) { m_reportNamesHasBeenSet = true; m_reportNames = std::forward<ReportNamesT>(value); }
123 template<typename ReportNamesT = Aws::Vector<ExperimentReportName>>
124 GetExperimentResultsRequest& WithReportNames(ReportNamesT&& value) { SetReportNames(std::forward<ReportNamesT>(value)); return *this;}
125 inline GetExperimentResultsRequest& AddReportNames(ExperimentReportName value) { m_reportNamesHasBeenSet = true; m_reportNames.push_back(value); return *this; }
127
129
148 inline const Aws::Vector<ExperimentResultRequestType>& GetResultStats() const { return m_resultStats; }
149 inline bool ResultStatsHasBeenSet() const { return m_resultStatsHasBeenSet; }
150 template<typename ResultStatsT = Aws::Vector<ExperimentResultRequestType>>
151 void SetResultStats(ResultStatsT&& value) { m_resultStatsHasBeenSet = true; m_resultStats = std::forward<ResultStatsT>(value); }
152 template<typename ResultStatsT = Aws::Vector<ExperimentResultRequestType>>
153 GetExperimentResultsRequest& WithResultStats(ResultStatsT&& value) { SetResultStats(std::forward<ResultStatsT>(value)); return *this;}
154 inline GetExperimentResultsRequest& AddResultStats(ExperimentResultRequestType value) { m_resultStatsHasBeenSet = true; m_resultStats.push_back(value); return *this; }
156
158
161 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
162 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
163 template<typename StartTimeT = Aws::Utils::DateTime>
164 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
165 template<typename StartTimeT = Aws::Utils::DateTime>
166 GetExperimentResultsRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
168
170
174 inline const Aws::Vector<Aws::String>& GetTreatmentNames() const { return m_treatmentNames; }
175 inline bool TreatmentNamesHasBeenSet() const { return m_treatmentNamesHasBeenSet; }
176 template<typename TreatmentNamesT = Aws::Vector<Aws::String>>
177 void SetTreatmentNames(TreatmentNamesT&& value) { m_treatmentNamesHasBeenSet = true; m_treatmentNames = std::forward<TreatmentNamesT>(value); }
178 template<typename TreatmentNamesT = Aws::Vector<Aws::String>>
179 GetExperimentResultsRequest& WithTreatmentNames(TreatmentNamesT&& value) { SetTreatmentNames(std::forward<TreatmentNamesT>(value)); return *this;}
180 template<typename TreatmentNamesT = Aws::String>
181 GetExperimentResultsRequest& AddTreatmentNames(TreatmentNamesT&& value) { m_treatmentNamesHasBeenSet = true; m_treatmentNames.emplace_back(std::forward<TreatmentNamesT>(value)); return *this; }
183 private:
184
186 bool m_baseStatHasBeenSet = false;
187
188 Aws::Utils::DateTime m_endTime{};
189 bool m_endTimeHasBeenSet = false;
190
191 Aws::String m_experiment;
192 bool m_experimentHasBeenSet = false;
193
194 Aws::Vector<Aws::String> m_metricNames;
195 bool m_metricNamesHasBeenSet = false;
196
197 long long m_period{0};
198 bool m_periodHasBeenSet = false;
199
200 Aws::String m_project;
201 bool m_projectHasBeenSet = false;
202
204 bool m_reportNamesHasBeenSet = false;
205
207 bool m_resultStatsHasBeenSet = false;
208
209 Aws::Utils::DateTime m_startTime{};
210 bool m_startTimeHasBeenSet = false;
211
212 Aws::Vector<Aws::String> m_treatmentNames;
213 bool m_treatmentNamesHasBeenSet = false;
214 };
215
216} // namespace Model
217} // namespace CloudWatchEvidently
218} // namespace Aws
GetExperimentResultsRequest & WithResultStats(ResultStatsT &&value)
GetExperimentResultsRequest & WithReportNames(ReportNamesT &&value)
GetExperimentResultsRequest & WithEndTime(EndTimeT &&value)
GetExperimentResultsRequest & AddResultStats(ExperimentResultRequestType value)
GetExperimentResultsRequest & WithStartTime(StartTimeT &&value)
GetExperimentResultsRequest & AddReportNames(ExperimentReportName value)
GetExperimentResultsRequest & WithMetricNames(MetricNamesT &&value)
GetExperimentResultsRequest & WithBaseStat(ExperimentBaseStat value)
const Aws::Vector< ExperimentResultRequestType > & GetResultStats() const
GetExperimentResultsRequest & AddTreatmentNames(TreatmentNamesT &&value)
const Aws::Vector< ExperimentReportName > & GetReportNames() const
GetExperimentResultsRequest & WithExperiment(ExperimentT &&value)
AWS_CLOUDWATCHEVIDENTLY_API GetExperimentResultsRequest()=default
AWS_CLOUDWATCHEVIDENTLY_API Aws::String SerializePayload() const override
GetExperimentResultsRequest & WithTreatmentNames(TreatmentNamesT &&value)
GetExperimentResultsRequest & AddMetricNames(MetricNamesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector