AWS SDK for C++

AWS SDK for C++ Version 1.11.845

Loading...
Searching...
No Matches
UpdateExperimentDefinitionRequest.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/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace AppConfig {
17namespace Model {
18
22 public:
23 AWS_APPCONFIG_API UpdateExperimentDefinitionRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateExperimentDefinition"; }
30
31 AWS_APPCONFIG_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetApplicationIdentifier() const { return m_applicationIdentifier; }
38 inline bool ApplicationIdentifierHasBeenSet() const { return m_applicationIdentifierHasBeenSet; }
39 template <typename ApplicationIdentifierT = Aws::String>
40 void SetApplicationIdentifier(ApplicationIdentifierT&& value) {
41 m_applicationIdentifierHasBeenSet = true;
42 m_applicationIdentifier = std::forward<ApplicationIdentifierT>(value);
43 }
44 template <typename ApplicationIdentifierT = Aws::String>
46 SetApplicationIdentifier(std::forward<ApplicationIdentifierT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetExperimentDefinitionIdentifier() const { return m_experimentDefinitionIdentifier; }
56 inline bool ExperimentDefinitionIdentifierHasBeenSet() const { return m_experimentDefinitionIdentifierHasBeenSet; }
57 template <typename ExperimentDefinitionIdentifierT = Aws::String>
58 void SetExperimentDefinitionIdentifier(ExperimentDefinitionIdentifierT&& value) {
59 m_experimentDefinitionIdentifierHasBeenSet = true;
60 m_experimentDefinitionIdentifier = std::forward<ExperimentDefinitionIdentifierT>(value);
61 }
62 template <typename ExperimentDefinitionIdentifierT = Aws::String>
64 SetExperimentDefinitionIdentifier(std::forward<ExperimentDefinitionIdentifierT>(value));
65 return *this;
66 }
68
70
74 inline const Aws::Vector<TreatmentInput>& GetTreatments() const { return m_treatments; }
75 inline bool TreatmentsHasBeenSet() const { return m_treatmentsHasBeenSet; }
76 template <typename TreatmentsT = Aws::Vector<TreatmentInput>>
77 void SetTreatments(TreatmentsT&& value) {
78 m_treatmentsHasBeenSet = true;
79 m_treatments = std::forward<TreatmentsT>(value);
80 }
81 template <typename TreatmentsT = Aws::Vector<TreatmentInput>>
83 SetTreatments(std::forward<TreatmentsT>(value));
84 return *this;
85 }
86 template <typename TreatmentsT = TreatmentInput>
88 m_treatmentsHasBeenSet = true;
89 m_treatments.emplace_back(std::forward<TreatmentsT>(value));
90 return *this;
91 }
93
95
98 inline const TreatmentInput& GetControl() const { return m_control; }
99 inline bool ControlHasBeenSet() const { return m_controlHasBeenSet; }
100 template <typename ControlT = TreatmentInput>
101 void SetControl(ControlT&& value) {
102 m_controlHasBeenSet = true;
103 m_control = std::forward<ControlT>(value);
104 }
105 template <typename ControlT = TreatmentInput>
107 SetControl(std::forward<ControlT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetHypothesis() const { return m_hypothesis; }
117 inline bool HypothesisHasBeenSet() const { return m_hypothesisHasBeenSet; }
118 template <typename HypothesisT = Aws::String>
119 void SetHypothesis(HypothesisT&& value) {
120 m_hypothesisHasBeenSet = true;
121 m_hypothesis = std::forward<HypothesisT>(value);
122 }
123 template <typename HypothesisT = Aws::String>
125 SetHypothesis(std::forward<HypothesisT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::String& GetAudienceRule() const { return m_audienceRule; }
135 inline bool AudienceRuleHasBeenSet() const { return m_audienceRuleHasBeenSet; }
136 template <typename AudienceRuleT = Aws::String>
137 void SetAudienceRule(AudienceRuleT&& value) {
138 m_audienceRuleHasBeenSet = true;
139 m_audienceRule = std::forward<AudienceRuleT>(value);
140 }
141 template <typename AudienceRuleT = Aws::String>
143 SetAudienceRule(std::forward<AudienceRuleT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::String& GetAudienceDescription() const { return m_audienceDescription; }
153 inline bool AudienceDescriptionHasBeenSet() const { return m_audienceDescriptionHasBeenSet; }
154 template <typename AudienceDescriptionT = Aws::String>
155 void SetAudienceDescription(AudienceDescriptionT&& value) {
156 m_audienceDescriptionHasBeenSet = true;
157 m_audienceDescription = std::forward<AudienceDescriptionT>(value);
158 }
159 template <typename AudienceDescriptionT = Aws::String>
161 SetAudienceDescription(std::forward<AudienceDescriptionT>(value));
162 return *this;
163 }
165
167
170 inline const Aws::String& GetLaunchCriteria() const { return m_launchCriteria; }
171 inline bool LaunchCriteriaHasBeenSet() const { return m_launchCriteriaHasBeenSet; }
172 template <typename LaunchCriteriaT = Aws::String>
173 void SetLaunchCriteria(LaunchCriteriaT&& value) {
174 m_launchCriteriaHasBeenSet = true;
175 m_launchCriteria = std::forward<LaunchCriteriaT>(value);
176 }
177 template <typename LaunchCriteriaT = Aws::String>
179 SetLaunchCriteria(std::forward<LaunchCriteriaT>(value));
180 return *this;
181 }
183 private:
184 Aws::String m_applicationIdentifier;
185
186 Aws::String m_experimentDefinitionIdentifier;
187
188 Aws::Vector<TreatmentInput> m_treatments;
189
190 TreatmentInput m_control;
191
192 Aws::String m_hypothesis;
193
194 Aws::String m_audienceRule;
195
196 Aws::String m_audienceDescription;
197
198 Aws::String m_launchCriteria;
199 bool m_applicationIdentifierHasBeenSet = false;
200 bool m_experimentDefinitionIdentifierHasBeenSet = false;
201 bool m_treatmentsHasBeenSet = false;
202 bool m_controlHasBeenSet = false;
203 bool m_hypothesisHasBeenSet = false;
204 bool m_audienceRuleHasBeenSet = false;
205 bool m_audienceDescriptionHasBeenSet = false;
206 bool m_launchCriteriaHasBeenSet = false;
207};
208
209} // namespace Model
210} // namespace AppConfig
211} // namespace Aws
void SetExperimentDefinitionIdentifier(ExperimentDefinitionIdentifierT &&value)
UpdateExperimentDefinitionRequest & AddTreatments(TreatmentsT &&value)
UpdateExperimentDefinitionRequest & WithAudienceDescription(AudienceDescriptionT &&value)
UpdateExperimentDefinitionRequest & WithHypothesis(HypothesisT &&value)
UpdateExperimentDefinitionRequest & WithTreatments(TreatmentsT &&value)
AWS_APPCONFIG_API UpdateExperimentDefinitionRequest()=default
UpdateExperimentDefinitionRequest & WithExperimentDefinitionIdentifier(ExperimentDefinitionIdentifierT &&value)
UpdateExperimentDefinitionRequest & WithLaunchCriteria(LaunchCriteriaT &&value)
AWS_APPCONFIG_API Aws::String SerializePayload() const override
UpdateExperimentDefinitionRequest & WithAudienceRule(AudienceRuleT &&value)
UpdateExperimentDefinitionRequest & WithApplicationIdentifier(ApplicationIdentifierT &&value)
UpdateExperimentDefinitionRequest & WithControl(ControlT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector