AWS SDK for C++

AWS SDK for C++ Version 1.11.861

Loading...
Searching...
No Matches
ExperimentDefinitionSnapshot.h
1
6#pragma once
7#include <aws/appconfig/AppConfig_EXPORTS.h>
8#include <aws/appconfig/model/Treatment.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AppConfig {
22namespace Model {
23
32 public:
33 AWS_APPCONFIG_API ExperimentDefinitionSnapshot() = default;
36 AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
43 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
44 template <typename ApplicationIdT = Aws::String>
45 void SetApplicationId(ApplicationIdT&& value) {
46 m_applicationIdHasBeenSet = true;
47 m_applicationId = std::forward<ApplicationIdT>(value);
48 }
49 template <typename ApplicationIdT = Aws::String>
51 SetApplicationId(std::forward<ApplicationIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetId() const { return m_id; }
61 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
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 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
80 template <typename NameT = Aws::String>
81 void SetName(NameT&& value) {
82 m_nameHasBeenSet = true;
83 m_name = std::forward<NameT>(value);
84 }
85 template <typename NameT = Aws::String>
87 SetName(std::forward<NameT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetHypothesis() const { return m_hypothesis; }
97 inline bool HypothesisHasBeenSet() const { return m_hypothesisHasBeenSet; }
98 template <typename HypothesisT = Aws::String>
99 void SetHypothesis(HypothesisT&& value) {
100 m_hypothesisHasBeenSet = true;
101 m_hypothesis = std::forward<HypothesisT>(value);
102 }
103 template <typename HypothesisT = Aws::String>
105 SetHypothesis(std::forward<HypothesisT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetConfigurationProfileId() const { return m_configurationProfileId; }
115 inline bool ConfigurationProfileIdHasBeenSet() const { return m_configurationProfileIdHasBeenSet; }
116 template <typename ConfigurationProfileIdT = Aws::String>
117 void SetConfigurationProfileId(ConfigurationProfileIdT&& value) {
118 m_configurationProfileIdHasBeenSet = true;
119 m_configurationProfileId = std::forward<ConfigurationProfileIdT>(value);
120 }
121 template <typename ConfigurationProfileIdT = Aws::String>
123 SetConfigurationProfileId(std::forward<ConfigurationProfileIdT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
133 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
134 template <typename EnvironmentIdT = Aws::String>
135 void SetEnvironmentId(EnvironmentIdT&& value) {
136 m_environmentIdHasBeenSet = true;
137 m_environmentId = std::forward<EnvironmentIdT>(value);
138 }
139 template <typename EnvironmentIdT = Aws::String>
141 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::String& GetFlagKey() const { return m_flagKey; }
151 inline bool FlagKeyHasBeenSet() const { return m_flagKeyHasBeenSet; }
152 template <typename FlagKeyT = Aws::String>
153 void SetFlagKey(FlagKeyT&& value) {
154 m_flagKeyHasBeenSet = true;
155 m_flagKey = std::forward<FlagKeyT>(value);
156 }
157 template <typename FlagKeyT = Aws::String>
159 SetFlagKey(std::forward<FlagKeyT>(value));
160 return *this;
161 }
163
165
168 inline const Aws::String& GetAudienceRule() const { return m_audienceRule; }
169 inline bool AudienceRuleHasBeenSet() const { return m_audienceRuleHasBeenSet; }
170 template <typename AudienceRuleT = Aws::String>
171 void SetAudienceRule(AudienceRuleT&& value) {
172 m_audienceRuleHasBeenSet = true;
173 m_audienceRule = std::forward<AudienceRuleT>(value);
174 }
175 template <typename AudienceRuleT = Aws::String>
177 SetAudienceRule(std::forward<AudienceRuleT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::String& GetAudienceDescription() const { return m_audienceDescription; }
187 inline bool AudienceDescriptionHasBeenSet() const { return m_audienceDescriptionHasBeenSet; }
188 template <typename AudienceDescriptionT = Aws::String>
189 void SetAudienceDescription(AudienceDescriptionT&& value) {
190 m_audienceDescriptionHasBeenSet = true;
191 m_audienceDescription = std::forward<AudienceDescriptionT>(value);
192 }
193 template <typename AudienceDescriptionT = Aws::String>
195 SetAudienceDescription(std::forward<AudienceDescriptionT>(value));
196 return *this;
197 }
199
201
204 inline const Aws::String& GetLaunchCriteria() const { return m_launchCriteria; }
205 inline bool LaunchCriteriaHasBeenSet() const { return m_launchCriteriaHasBeenSet; }
206 template <typename LaunchCriteriaT = Aws::String>
207 void SetLaunchCriteria(LaunchCriteriaT&& value) {
208 m_launchCriteriaHasBeenSet = true;
209 m_launchCriteria = std::forward<LaunchCriteriaT>(value);
210 }
211 template <typename LaunchCriteriaT = Aws::String>
213 SetLaunchCriteria(std::forward<LaunchCriteriaT>(value));
214 return *this;
215 }
217
219
222 inline const Aws::Vector<Treatment>& GetTreatments() const { return m_treatments; }
223 inline bool TreatmentsHasBeenSet() const { return m_treatmentsHasBeenSet; }
224 template <typename TreatmentsT = Aws::Vector<Treatment>>
225 void SetTreatments(TreatmentsT&& value) {
226 m_treatmentsHasBeenSet = true;
227 m_treatments = std::forward<TreatmentsT>(value);
228 }
229 template <typename TreatmentsT = Aws::Vector<Treatment>>
231 SetTreatments(std::forward<TreatmentsT>(value));
232 return *this;
233 }
234 template <typename TreatmentsT = Treatment>
236 m_treatmentsHasBeenSet = true;
237 m_treatments.emplace_back(std::forward<TreatmentsT>(value));
238 return *this;
239 }
241
243
246 inline const Treatment& GetControl() const { return m_control; }
247 inline bool ControlHasBeenSet() const { return m_controlHasBeenSet; }
248 template <typename ControlT = Treatment>
249 void SetControl(ControlT&& value) {
250 m_controlHasBeenSet = true;
251 m_control = std::forward<ControlT>(value);
252 }
253 template <typename ControlT = Treatment>
255 SetControl(std::forward<ControlT>(value));
256 return *this;
257 }
259 private:
260 Aws::String m_applicationId;
261
262 Aws::String m_id;
263
264 Aws::String m_name;
265
266 Aws::String m_hypothesis;
267
268 Aws::String m_configurationProfileId;
269
270 Aws::String m_environmentId;
271
272 Aws::String m_flagKey;
273
274 Aws::String m_audienceRule;
275
276 Aws::String m_audienceDescription;
277
278 Aws::String m_launchCriteria;
279
280 Aws::Vector<Treatment> m_treatments;
281
282 Treatment m_control;
283 bool m_applicationIdHasBeenSet = false;
284 bool m_idHasBeenSet = false;
285 bool m_nameHasBeenSet = false;
286 bool m_hypothesisHasBeenSet = false;
287 bool m_configurationProfileIdHasBeenSet = false;
288 bool m_environmentIdHasBeenSet = false;
289 bool m_flagKeyHasBeenSet = false;
290 bool m_audienceRuleHasBeenSet = false;
291 bool m_audienceDescriptionHasBeenSet = false;
292 bool m_launchCriteriaHasBeenSet = false;
293 bool m_treatmentsHasBeenSet = false;
294 bool m_controlHasBeenSet = false;
295};
296
297} // namespace Model
298} // namespace AppConfig
299} // namespace Aws
AWS_APPCONFIG_API ExperimentDefinitionSnapshot & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPCONFIG_API ExperimentDefinitionSnapshot()=default
ExperimentDefinitionSnapshot & WithAudienceRule(AudienceRuleT &&value)
ExperimentDefinitionSnapshot & WithAudienceDescription(AudienceDescriptionT &&value)
ExperimentDefinitionSnapshot & WithTreatments(TreatmentsT &&value)
ExperimentDefinitionSnapshot & WithHypothesis(HypothesisT &&value)
ExperimentDefinitionSnapshot & WithControl(ControlT &&value)
ExperimentDefinitionSnapshot & WithApplicationId(ApplicationIdT &&value)
ExperimentDefinitionSnapshot & WithName(NameT &&value)
ExperimentDefinitionSnapshot & WithFlagKey(FlagKeyT &&value)
ExperimentDefinitionSnapshot & WithLaunchCriteria(LaunchCriteriaT &&value)
ExperimentDefinitionSnapshot & WithEnvironmentId(EnvironmentIdT &&value)
AWS_APPCONFIG_API ExperimentDefinitionSnapshot(Aws::Utils::Json::JsonView jsonValue)
ExperimentDefinitionSnapshot & WithConfigurationProfileId(ConfigurationProfileIdT &&value)
ExperimentDefinitionSnapshot & AddTreatments(TreatmentsT &&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