AWS SDK for C++

AWS SDK for C++ Version 1.11.845

Loading...
Searching...
No Matches
CreateExperimentDefinitionRequest.h
1
6#pragma once
7#include <aws/appconfig/AppConfigRequest.h>
8#include <aws/appconfig/AppConfig_EXPORTS.h>
9#include <aws/appconfig/model/TreatmentInput.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace AppConfig {
18namespace Model {
19
23 public:
24 AWS_APPCONFIG_API CreateExperimentDefinitionRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateExperimentDefinition"; }
31
32 AWS_APPCONFIG_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetApplicationIdentifier() const { return m_applicationIdentifier; }
39 inline bool ApplicationIdentifierHasBeenSet() const { return m_applicationIdentifierHasBeenSet; }
40 template <typename ApplicationIdentifierT = Aws::String>
41 void SetApplicationIdentifier(ApplicationIdentifierT&& value) {
42 m_applicationIdentifierHasBeenSet = true;
43 m_applicationIdentifier = std::forward<ApplicationIdentifierT>(value);
44 }
45 template <typename ApplicationIdentifierT = Aws::String>
47 SetApplicationIdentifier(std::forward<ApplicationIdentifierT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetName() const { return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 template <typename NameT = Aws::String>
59 void SetName(NameT&& value) {
60 m_nameHasBeenSet = true;
61 m_name = std::forward<NameT>(value);
62 }
63 template <typename NameT = Aws::String>
65 SetName(std::forward<NameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetConfigurationProfileIdentifier() const { return m_configurationProfileIdentifier; }
75 inline bool ConfigurationProfileIdentifierHasBeenSet() const { return m_configurationProfileIdentifierHasBeenSet; }
76 template <typename ConfigurationProfileIdentifierT = Aws::String>
77 void SetConfigurationProfileIdentifier(ConfigurationProfileIdentifierT&& value) {
78 m_configurationProfileIdentifierHasBeenSet = true;
79 m_configurationProfileIdentifier = std::forward<ConfigurationProfileIdentifierT>(value);
80 }
81 template <typename ConfigurationProfileIdentifierT = Aws::String>
83 SetConfigurationProfileIdentifier(std::forward<ConfigurationProfileIdentifierT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetEnvironmentIdentifier() const { return m_environmentIdentifier; }
93 inline bool EnvironmentIdentifierHasBeenSet() const { return m_environmentIdentifierHasBeenSet; }
94 template <typename EnvironmentIdentifierT = Aws::String>
95 void SetEnvironmentIdentifier(EnvironmentIdentifierT&& value) {
96 m_environmentIdentifierHasBeenSet = true;
97 m_environmentIdentifier = std::forward<EnvironmentIdentifierT>(value);
98 }
99 template <typename EnvironmentIdentifierT = Aws::String>
101 SetEnvironmentIdentifier(std::forward<EnvironmentIdentifierT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetFlagKey() const { return m_flagKey; }
111 inline bool FlagKeyHasBeenSet() const { return m_flagKeyHasBeenSet; }
112 template <typename FlagKeyT = Aws::String>
113 void SetFlagKey(FlagKeyT&& value) {
114 m_flagKeyHasBeenSet = true;
115 m_flagKey = std::forward<FlagKeyT>(value);
116 }
117 template <typename FlagKeyT = Aws::String>
119 SetFlagKey(std::forward<FlagKeyT>(value));
120 return *this;
121 }
123
125
129 inline const Aws::Vector<TreatmentInput>& GetTreatments() const { return m_treatments; }
130 inline bool TreatmentsHasBeenSet() const { return m_treatmentsHasBeenSet; }
131 template <typename TreatmentsT = Aws::Vector<TreatmentInput>>
132 void SetTreatments(TreatmentsT&& value) {
133 m_treatmentsHasBeenSet = true;
134 m_treatments = std::forward<TreatmentsT>(value);
135 }
136 template <typename TreatmentsT = Aws::Vector<TreatmentInput>>
138 SetTreatments(std::forward<TreatmentsT>(value));
139 return *this;
140 }
141 template <typename TreatmentsT = TreatmentInput>
143 m_treatmentsHasBeenSet = true;
144 m_treatments.emplace_back(std::forward<TreatmentsT>(value));
145 return *this;
146 }
148
150
154 inline const TreatmentInput& GetControl() const { return m_control; }
155 inline bool ControlHasBeenSet() const { return m_controlHasBeenSet; }
156 template <typename ControlT = TreatmentInput>
157 void SetControl(ControlT&& value) {
158 m_controlHasBeenSet = true;
159 m_control = std::forward<ControlT>(value);
160 }
161 template <typename ControlT = TreatmentInput>
163 SetControl(std::forward<ControlT>(value));
164 return *this;
165 }
167
169
173 inline const Aws::String& GetAudienceRule() const { return m_audienceRule; }
174 inline bool AudienceRuleHasBeenSet() const { return m_audienceRuleHasBeenSet; }
175 template <typename AudienceRuleT = Aws::String>
176 void SetAudienceRule(AudienceRuleT&& value) {
177 m_audienceRuleHasBeenSet = true;
178 m_audienceRule = std::forward<AudienceRuleT>(value);
179 }
180 template <typename AudienceRuleT = Aws::String>
182 SetAudienceRule(std::forward<AudienceRuleT>(value));
183 return *this;
184 }
186
188
192 inline const Aws::String& GetHypothesis() const { return m_hypothesis; }
193 inline bool HypothesisHasBeenSet() const { return m_hypothesisHasBeenSet; }
194 template <typename HypothesisT = Aws::String>
195 void SetHypothesis(HypothesisT&& value) {
196 m_hypothesisHasBeenSet = true;
197 m_hypothesis = std::forward<HypothesisT>(value);
198 }
199 template <typename HypothesisT = Aws::String>
201 SetHypothesis(std::forward<HypothesisT>(value));
202 return *this;
203 }
205
207
210 inline const Aws::String& GetAudienceDescription() const { return m_audienceDescription; }
211 inline bool AudienceDescriptionHasBeenSet() const { return m_audienceDescriptionHasBeenSet; }
212 template <typename AudienceDescriptionT = Aws::String>
213 void SetAudienceDescription(AudienceDescriptionT&& value) {
214 m_audienceDescriptionHasBeenSet = true;
215 m_audienceDescription = std::forward<AudienceDescriptionT>(value);
216 }
217 template <typename AudienceDescriptionT = Aws::String>
219 SetAudienceDescription(std::forward<AudienceDescriptionT>(value));
220 return *this;
221 }
223
225
229 inline const Aws::String& GetLaunchCriteria() const { return m_launchCriteria; }
230 inline bool LaunchCriteriaHasBeenSet() const { return m_launchCriteriaHasBeenSet; }
231 template <typename LaunchCriteriaT = Aws::String>
232 void SetLaunchCriteria(LaunchCriteriaT&& value) {
233 m_launchCriteriaHasBeenSet = true;
234 m_launchCriteria = std::forward<LaunchCriteriaT>(value);
235 }
236 template <typename LaunchCriteriaT = Aws::String>
238 SetLaunchCriteria(std::forward<LaunchCriteriaT>(value));
239 return *this;
240 }
242
244
248 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
249 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
250 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
251 void SetTags(TagsT&& value) {
252 m_tagsHasBeenSet = true;
253 m_tags = std::forward<TagsT>(value);
254 }
255 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
257 SetTags(std::forward<TagsT>(value));
258 return *this;
259 }
260 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
261 CreateExperimentDefinitionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
262 m_tagsHasBeenSet = true;
263 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
264 return *this;
265 }
267 private:
268 Aws::String m_applicationIdentifier;
269
270 Aws::String m_name;
271
272 Aws::String m_configurationProfileIdentifier;
273
274 Aws::String m_environmentIdentifier;
275
276 Aws::String m_flagKey;
277
278 Aws::Vector<TreatmentInput> m_treatments;
279
280 TreatmentInput m_control;
281
282 Aws::String m_audienceRule;
283
284 Aws::String m_hypothesis;
285
286 Aws::String m_audienceDescription;
287
288 Aws::String m_launchCriteria;
289
291 bool m_applicationIdentifierHasBeenSet = false;
292 bool m_nameHasBeenSet = false;
293 bool m_configurationProfileIdentifierHasBeenSet = false;
294 bool m_environmentIdentifierHasBeenSet = false;
295 bool m_flagKeyHasBeenSet = false;
296 bool m_treatmentsHasBeenSet = false;
297 bool m_controlHasBeenSet = false;
298 bool m_audienceRuleHasBeenSet = false;
299 bool m_hypothesisHasBeenSet = false;
300 bool m_audienceDescriptionHasBeenSet = false;
301 bool m_launchCriteriaHasBeenSet = false;
302 bool m_tagsHasBeenSet = false;
303};
304
305} // namespace Model
306} // namespace AppConfig
307} // namespace Aws
AWS_APPCONFIG_API Aws::String SerializePayload() const override
CreateExperimentDefinitionRequest & WithName(NameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateExperimentDefinitionRequest & WithEnvironmentIdentifier(EnvironmentIdentifierT &&value)
CreateExperimentDefinitionRequest & WithLaunchCriteria(LaunchCriteriaT &&value)
CreateExperimentDefinitionRequest & WithConfigurationProfileIdentifier(ConfigurationProfileIdentifierT &&value)
CreateExperimentDefinitionRequest & WithControl(ControlT &&value)
CreateExperimentDefinitionRequest & AddTreatments(TreatmentsT &&value)
AWS_APPCONFIG_API CreateExperimentDefinitionRequest()=default
CreateExperimentDefinitionRequest & WithAudienceDescription(AudienceDescriptionT &&value)
CreateExperimentDefinitionRequest & WithApplicationIdentifier(ApplicationIdentifierT &&value)
CreateExperimentDefinitionRequest & WithAudienceRule(AudienceRuleT &&value)
CreateExperimentDefinitionRequest & WithTreatments(TreatmentsT &&value)
CreateExperimentDefinitionRequest & WithTags(TagsT &&value)
void SetConfigurationProfileIdentifier(ConfigurationProfileIdentifierT &&value)
CreateExperimentDefinitionRequest & WithFlagKey(FlagKeyT &&value)
CreateExperimentDefinitionRequest & WithHypothesis(HypothesisT &&value)
CreateExperimentDefinitionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector