AWS SDK for C++

AWS SDK for C++ Version 1.11.861

Loading...
Searching...
No Matches
UpdateExperimentRunResult.h
1
6#pragma once
7#include <aws/appconfig/AppConfig_EXPORTS.h>
8#include <aws/appconfig/model/ExperimentDefinitionSnapshot.h>
9#include <aws/appconfig/model/ExperimentRunResult.h>
10#include <aws/appconfig/model/ExperimentRunStatus.h>
11#include <aws/appconfig/model/TreatmentOverrides.h>
12#include <aws/core/http/HttpResponse.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace AppConfig {
28namespace Model {
36 public:
37 AWS_APPCONFIG_API UpdateExperimentRunResult() = default;
40
42
45 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
46 template <typename ApplicationIdT = Aws::String>
47 void SetApplicationId(ApplicationIdT&& value) {
48 m_applicationIdHasBeenSet = true;
49 m_applicationId = std::forward<ApplicationIdT>(value);
50 }
51 template <typename ApplicationIdT = Aws::String>
53 SetApplicationId(std::forward<ApplicationIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetExperimentDefinitionId() const { return m_experimentDefinitionId; }
63 template <typename ExperimentDefinitionIdT = Aws::String>
64 void SetExperimentDefinitionId(ExperimentDefinitionIdT&& value) {
65 m_experimentDefinitionIdHasBeenSet = true;
66 m_experimentDefinitionId = std::forward<ExperimentDefinitionIdT>(value);
67 }
68 template <typename ExperimentDefinitionIdT = Aws::String>
69 UpdateExperimentRunResult& WithExperimentDefinitionId(ExperimentDefinitionIdT&& value) {
70 SetExperimentDefinitionId(std::forward<ExperimentDefinitionIdT>(value));
71 return *this;
72 }
74
76
79 inline int GetRun() const { return m_run; }
80 inline void SetRun(int value) {
81 m_runHasBeenSet = true;
82 m_run = value;
83 }
85 SetRun(value);
86 return *this;
87 }
89
91
94 inline const Aws::String& GetDescription() const { return m_description; }
95 template <typename DescriptionT = Aws::String>
96 void SetDescription(DescriptionT&& value) {
97 m_descriptionHasBeenSet = true;
98 m_description = std::forward<DescriptionT>(value);
99 }
100 template <typename DescriptionT = Aws::String>
102 SetDescription(std::forward<DescriptionT>(value));
103 return *this;
104 }
106
108
112 inline ExperimentRunStatus GetStatus() const { return m_status; }
113 inline void SetStatus(ExperimentRunStatus value) {
114 m_statusHasBeenSet = true;
115 m_status = value;
116 }
118 SetStatus(value);
119 return *this;
120 }
122
124
127 inline double GetExposurePercentage() const { return m_exposurePercentage; }
128 inline void SetExposurePercentage(double value) {
129 m_exposurePercentageHasBeenSet = true;
130 m_exposurePercentage = value;
131 }
134 return *this;
135 }
137
139
143 inline const TreatmentOverrides& GetTreatmentOverrides() const { return m_treatmentOverrides; }
144 template <typename TreatmentOverridesT = TreatmentOverrides>
145 void SetTreatmentOverrides(TreatmentOverridesT&& value) {
146 m_treatmentOverridesHasBeenSet = true;
147 m_treatmentOverrides = std::forward<TreatmentOverridesT>(value);
148 }
149 template <typename TreatmentOverridesT = TreatmentOverrides>
150 UpdateExperimentRunResult& WithTreatmentOverrides(TreatmentOverridesT&& value) {
151 SetTreatmentOverrides(std::forward<TreatmentOverridesT>(value));
152 return *this;
153 }
155
157
161 inline const ExperimentRunResult& GetResult() const { return m_result; }
162 template <typename ResultT = ExperimentRunResult>
163 void SetResult(ResultT&& value) {
164 m_resultHasBeenSet = true;
165 m_result = std::forward<ResultT>(value);
166 }
167 template <typename ResultT = ExperimentRunResult>
169 SetResult(std::forward<ResultT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
179 template <typename StartedAtT = Aws::Utils::DateTime>
180 void SetStartedAt(StartedAtT&& value) {
181 m_startedAtHasBeenSet = true;
182 m_startedAt = std::forward<StartedAtT>(value);
183 }
184 template <typename StartedAtT = Aws::Utils::DateTime>
186 SetStartedAt(std::forward<StartedAtT>(value));
187 return *this;
188 }
190
192
196 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
197 template <typename UpdatedAtT = Aws::Utils::DateTime>
198 void SetUpdatedAt(UpdatedAtT&& value) {
199 m_updatedAtHasBeenSet = true;
200 m_updatedAt = std::forward<UpdatedAtT>(value);
201 }
202 template <typename UpdatedAtT = Aws::Utils::DateTime>
204 SetUpdatedAt(std::forward<UpdatedAtT>(value));
205 return *this;
206 }
208
210
213 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
214 template <typename EndedAtT = Aws::Utils::DateTime>
215 void SetEndedAt(EndedAtT&& value) {
216 m_endedAtHasBeenSet = true;
217 m_endedAt = std::forward<EndedAtT>(value);
218 }
219 template <typename EndedAtT = Aws::Utils::DateTime>
221 SetEndedAt(std::forward<EndedAtT>(value));
222 return *this;
223 }
225
227
230 inline const ExperimentDefinitionSnapshot& GetExperimentDefinitionSnapshot() const { return m_experimentDefinitionSnapshot; }
231 template <typename ExperimentDefinitionSnapshotT = ExperimentDefinitionSnapshot>
232 void SetExperimentDefinitionSnapshot(ExperimentDefinitionSnapshotT&& value) {
233 m_experimentDefinitionSnapshotHasBeenSet = true;
234 m_experimentDefinitionSnapshot = std::forward<ExperimentDefinitionSnapshotT>(value);
235 }
236 template <typename ExperimentDefinitionSnapshotT = ExperimentDefinitionSnapshot>
237 UpdateExperimentRunResult& WithExperimentDefinitionSnapshot(ExperimentDefinitionSnapshotT&& value) {
238 SetExperimentDefinitionSnapshot(std::forward<ExperimentDefinitionSnapshotT>(value));
239 return *this;
240 }
242
244
245 inline const Aws::String& GetRequestId() const { return m_requestId; }
246 template <typename RequestIdT = Aws::String>
247 void SetRequestId(RequestIdT&& value) {
248 m_requestIdHasBeenSet = true;
249 m_requestId = std::forward<RequestIdT>(value);
250 }
251 template <typename RequestIdT = Aws::String>
253 SetRequestId(std::forward<RequestIdT>(value));
254 return *this;
255 }
257 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
258
259 private:
260 Aws::String m_applicationId;
261
262 Aws::String m_experimentDefinitionId;
263
264 int m_run{0};
265
266 Aws::String m_description;
267
269
270 double m_exposurePercentage{0.0};
271
272 TreatmentOverrides m_treatmentOverrides;
273
274 ExperimentRunResult m_result;
275
276 Aws::Utils::DateTime m_startedAt{};
277
278 Aws::Utils::DateTime m_updatedAt{};
279
280 Aws::Utils::DateTime m_endedAt{};
281
282 ExperimentDefinitionSnapshot m_experimentDefinitionSnapshot;
283
284 Aws::String m_requestId;
285 Aws::Http::HttpResponseCode m_HttpResponseCode;
286 bool m_applicationIdHasBeenSet = false;
287 bool m_experimentDefinitionIdHasBeenSet = false;
288 bool m_runHasBeenSet = false;
289 bool m_descriptionHasBeenSet = false;
290 bool m_statusHasBeenSet = false;
291 bool m_exposurePercentageHasBeenSet = false;
292 bool m_treatmentOverridesHasBeenSet = false;
293 bool m_resultHasBeenSet = false;
294 bool m_startedAtHasBeenSet = false;
295 bool m_updatedAtHasBeenSet = false;
296 bool m_endedAtHasBeenSet = false;
297 bool m_experimentDefinitionSnapshotHasBeenSet = false;
298 bool m_requestIdHasBeenSet = false;
299};
300
301} // namespace Model
302} // namespace AppConfig
303} // namespace Aws
UpdateExperimentRunResult & WithApplicationId(ApplicationIdT &&value)
UpdateExperimentRunResult & WithRequestId(RequestIdT &&value)
void SetExperimentDefinitionSnapshot(ExperimentDefinitionSnapshotT &&value)
UpdateExperimentRunResult & WithTreatmentOverrides(TreatmentOverridesT &&value)
void SetExperimentDefinitionId(ExperimentDefinitionIdT &&value)
const ExperimentDefinitionSnapshot & GetExperimentDefinitionSnapshot() const
UpdateExperimentRunResult & WithStartedAt(StartedAtT &&value)
UpdateExperimentRunResult & WithResult(ResultT &&value)
UpdateExperimentRunResult & WithStatus(ExperimentRunStatus value)
UpdateExperimentRunResult & WithDescription(DescriptionT &&value)
AWS_APPCONFIG_API UpdateExperimentRunResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateExperimentRunResult & WithExperimentDefinitionSnapshot(ExperimentDefinitionSnapshotT &&value)
UpdateExperimentRunResult & WithExposurePercentage(double value)
AWS_APPCONFIG_API UpdateExperimentRunResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_APPCONFIG_API UpdateExperimentRunResult()=default
UpdateExperimentRunResult & WithEndedAt(EndedAtT &&value)
UpdateExperimentRunResult & WithUpdatedAt(UpdatedAtT &&value)
UpdateExperimentRunResult & WithExperimentDefinitionId(ExperimentDefinitionIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue