AWS SDK for C++

AWS SDK for C++ Version 1.11.860

Loading...
Searching...
No Matches
CreateExperimentDefinitionResult.h
1
6#pragma once
7#include <aws/appconfig/AppConfig_EXPORTS.h>
8#include <aws/appconfig/model/ExperimentDefinitionStatus.h>
9#include <aws/appconfig/model/Treatment.h>
10#include <aws/core/http/HttpResponse.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace AppConfig {
27namespace Model {
35 public:
36 AWS_APPCONFIG_API CreateExperimentDefinitionResult() = default;
39
41
44 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
45 template <typename ApplicationIdT = Aws::String>
46 void SetApplicationId(ApplicationIdT&& value) {
47 m_applicationIdHasBeenSet = true;
48 m_applicationId = std::forward<ApplicationIdT>(value);
49 }
50 template <typename ApplicationIdT = Aws::String>
52 SetApplicationId(std::forward<ApplicationIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetId() const { return m_id; }
62 template <typename IdT = Aws::String>
63 void SetId(IdT&& value) {
64 m_idHasBeenSet = true;
65 m_id = std::forward<IdT>(value);
66 }
67 template <typename IdT = Aws::String>
69 SetId(std::forward<IdT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetName() const { return m_name; }
79 template <typename NameT = Aws::String>
80 void SetName(NameT&& value) {
81 m_nameHasBeenSet = true;
82 m_name = std::forward<NameT>(value);
83 }
84 template <typename NameT = Aws::String>
86 SetName(std::forward<NameT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetHypothesis() const { return m_hypothesis; }
96 template <typename HypothesisT = Aws::String>
97 void SetHypothesis(HypothesisT&& value) {
98 m_hypothesisHasBeenSet = true;
99 m_hypothesis = std::forward<HypothesisT>(value);
100 }
101 template <typename HypothesisT = Aws::String>
103 SetHypothesis(std::forward<HypothesisT>(value));
104 return *this;
105 }
107
109
113 inline ExperimentDefinitionStatus GetStatus() const { return m_status; }
115 m_statusHasBeenSet = true;
116 m_status = value;
117 }
119 SetStatus(value);
120 return *this;
121 }
123
125
128 inline const Aws::String& GetConfigurationProfileId() const { return m_configurationProfileId; }
129 template <typename ConfigurationProfileIdT = Aws::String>
130 void SetConfigurationProfileId(ConfigurationProfileIdT&& value) {
131 m_configurationProfileIdHasBeenSet = true;
132 m_configurationProfileId = std::forward<ConfigurationProfileIdT>(value);
133 }
134 template <typename ConfigurationProfileIdT = Aws::String>
136 SetConfigurationProfileId(std::forward<ConfigurationProfileIdT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
146 template <typename EnvironmentIdT = Aws::String>
147 void SetEnvironmentId(EnvironmentIdT&& value) {
148 m_environmentIdHasBeenSet = true;
149 m_environmentId = std::forward<EnvironmentIdT>(value);
150 }
151 template <typename EnvironmentIdT = Aws::String>
153 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
154 return *this;
155 }
157
159
162 inline const Aws::String& GetFlagKey() const { return m_flagKey; }
163 template <typename FlagKeyT = Aws::String>
164 void SetFlagKey(FlagKeyT&& value) {
165 m_flagKeyHasBeenSet = true;
166 m_flagKey = std::forward<FlagKeyT>(value);
167 }
168 template <typename FlagKeyT = Aws::String>
170 SetFlagKey(std::forward<FlagKeyT>(value));
171 return *this;
172 }
174
176
180 inline const Aws::String& GetAudienceRule() const { return m_audienceRule; }
181 template <typename AudienceRuleT = Aws::String>
182 void SetAudienceRule(AudienceRuleT&& value) {
183 m_audienceRuleHasBeenSet = true;
184 m_audienceRule = std::forward<AudienceRuleT>(value);
185 }
186 template <typename AudienceRuleT = Aws::String>
188 SetAudienceRule(std::forward<AudienceRuleT>(value));
189 return *this;
190 }
192
194
197 inline const Aws::String& GetAudienceDescription() const { return m_audienceDescription; }
198 template <typename AudienceDescriptionT = Aws::String>
199 void SetAudienceDescription(AudienceDescriptionT&& value) {
200 m_audienceDescriptionHasBeenSet = true;
201 m_audienceDescription = std::forward<AudienceDescriptionT>(value);
202 }
203 template <typename AudienceDescriptionT = Aws::String>
205 SetAudienceDescription(std::forward<AudienceDescriptionT>(value));
206 return *this;
207 }
209
211
214 inline const Aws::String& GetLaunchCriteria() const { return m_launchCriteria; }
215 template <typename LaunchCriteriaT = Aws::String>
216 void SetLaunchCriteria(LaunchCriteriaT&& value) {
217 m_launchCriteriaHasBeenSet = true;
218 m_launchCriteria = std::forward<LaunchCriteriaT>(value);
219 }
220 template <typename LaunchCriteriaT = Aws::String>
222 SetLaunchCriteria(std::forward<LaunchCriteriaT>(value));
223 return *this;
224 }
226
228
231 inline const Aws::Vector<Treatment>& GetTreatments() const { return m_treatments; }
232 template <typename TreatmentsT = Aws::Vector<Treatment>>
233 void SetTreatments(TreatmentsT&& value) {
234 m_treatmentsHasBeenSet = true;
235 m_treatments = std::forward<TreatmentsT>(value);
236 }
237 template <typename TreatmentsT = Aws::Vector<Treatment>>
239 SetTreatments(std::forward<TreatmentsT>(value));
240 return *this;
241 }
242 template <typename TreatmentsT = Treatment>
244 m_treatmentsHasBeenSet = true;
245 m_treatments.emplace_back(std::forward<TreatmentsT>(value));
246 return *this;
247 }
249
251
254 inline const Treatment& GetControl() const { return m_control; }
255 template <typename ControlT = Treatment>
256 void SetControl(ControlT&& value) {
257 m_controlHasBeenSet = true;
258 m_control = std::forward<ControlT>(value);
259 }
260 template <typename ControlT = Treatment>
262 SetControl(std::forward<ControlT>(value));
263 return *this;
264 }
266
268
272 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
273 template <typename CreatedAtT = Aws::Utils::DateTime>
274 void SetCreatedAt(CreatedAtT&& value) {
275 m_createdAtHasBeenSet = true;
276 m_createdAt = std::forward<CreatedAtT>(value);
277 }
278 template <typename CreatedAtT = Aws::Utils::DateTime>
280 SetCreatedAt(std::forward<CreatedAtT>(value));
281 return *this;
282 }
284
286
290 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
291 template <typename UpdatedAtT = Aws::Utils::DateTime>
292 void SetUpdatedAt(UpdatedAtT&& value) {
293 m_updatedAtHasBeenSet = true;
294 m_updatedAt = std::forward<UpdatedAtT>(value);
295 }
296 template <typename UpdatedAtT = Aws::Utils::DateTime>
298 SetUpdatedAt(std::forward<UpdatedAtT>(value));
299 return *this;
300 }
302
304
308 inline const Aws::String& GetKmsKeyIdentifier() const { return m_kmsKeyIdentifier; }
309 template <typename KmsKeyIdentifierT = Aws::String>
310 void SetKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
311 m_kmsKeyIdentifierHasBeenSet = true;
312 m_kmsKeyIdentifier = std::forward<KmsKeyIdentifierT>(value);
313 }
314 template <typename KmsKeyIdentifierT = Aws::String>
316 SetKmsKeyIdentifier(std::forward<KmsKeyIdentifierT>(value));
317 return *this;
318 }
320
322
323 inline const Aws::String& GetRequestId() const { return m_requestId; }
324 template <typename RequestIdT = Aws::String>
325 void SetRequestId(RequestIdT&& value) {
326 m_requestIdHasBeenSet = true;
327 m_requestId = std::forward<RequestIdT>(value);
328 }
329 template <typename RequestIdT = Aws::String>
331 SetRequestId(std::forward<RequestIdT>(value));
332 return *this;
333 }
335 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
336
337 private:
338 Aws::String m_applicationId;
339
340 Aws::String m_id;
341
342 Aws::String m_name;
343
344 Aws::String m_hypothesis;
345
347
348 Aws::String m_configurationProfileId;
349
350 Aws::String m_environmentId;
351
352 Aws::String m_flagKey;
353
354 Aws::String m_audienceRule;
355
356 Aws::String m_audienceDescription;
357
358 Aws::String m_launchCriteria;
359
360 Aws::Vector<Treatment> m_treatments;
361
362 Treatment m_control;
363
364 Aws::Utils::DateTime m_createdAt{};
365
366 Aws::Utils::DateTime m_updatedAt{};
367
368 Aws::String m_kmsKeyIdentifier;
369
370 Aws::String m_requestId;
371 Aws::Http::HttpResponseCode m_HttpResponseCode;
372 bool m_applicationIdHasBeenSet = false;
373 bool m_idHasBeenSet = false;
374 bool m_nameHasBeenSet = false;
375 bool m_hypothesisHasBeenSet = false;
376 bool m_statusHasBeenSet = false;
377 bool m_configurationProfileIdHasBeenSet = false;
378 bool m_environmentIdHasBeenSet = false;
379 bool m_flagKeyHasBeenSet = false;
380 bool m_audienceRuleHasBeenSet = false;
381 bool m_audienceDescriptionHasBeenSet = false;
382 bool m_launchCriteriaHasBeenSet = false;
383 bool m_treatmentsHasBeenSet = false;
384 bool m_controlHasBeenSet = false;
385 bool m_createdAtHasBeenSet = false;
386 bool m_updatedAtHasBeenSet = false;
387 bool m_kmsKeyIdentifierHasBeenSet = false;
388 bool m_requestIdHasBeenSet = false;
389};
390
391} // namespace Model
392} // namespace AppConfig
393} // namespace Aws
AWS_APPCONFIG_API CreateExperimentDefinitionResult()=default
CreateExperimentDefinitionResult & WithApplicationId(ApplicationIdT &&value)
CreateExperimentDefinitionResult & WithConfigurationProfileId(ConfigurationProfileIdT &&value)
CreateExperimentDefinitionResult & AddTreatments(TreatmentsT &&value)
CreateExperimentDefinitionResult & WithKmsKeyIdentifier(KmsKeyIdentifierT &&value)
CreateExperimentDefinitionResult & WithRequestId(RequestIdT &&value)
CreateExperimentDefinitionResult & WithAudienceRule(AudienceRuleT &&value)
AWS_APPCONFIG_API CreateExperimentDefinitionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateExperimentDefinitionResult & WithAudienceDescription(AudienceDescriptionT &&value)
CreateExperimentDefinitionResult & WithStatus(ExperimentDefinitionStatus value)
CreateExperimentDefinitionResult & WithCreatedAt(CreatedAtT &&value)
CreateExperimentDefinitionResult & WithLaunchCriteria(LaunchCriteriaT &&value)
CreateExperimentDefinitionResult & WithHypothesis(HypothesisT &&value)
CreateExperimentDefinitionResult & WithEnvironmentId(EnvironmentIdT &&value)
CreateExperimentDefinitionResult & WithControl(ControlT &&value)
CreateExperimentDefinitionResult & WithFlagKey(FlagKeyT &&value)
CreateExperimentDefinitionResult & WithUpdatedAt(UpdatedAtT &&value)
CreateExperimentDefinitionResult & WithTreatments(TreatmentsT &&value)
AWS_APPCONFIG_API CreateExperimentDefinitionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateExperimentDefinitionResult & WithName(NameT &&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