AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateExperimentRequest.h
1
6#pragma once
7#include <aws/evidently/CloudWatchEvidently_EXPORTS.h>
8#include <aws/evidently/CloudWatchEvidentlyRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/evidently/model/OnlineAbConfig.h>
12#include <aws/evidently/model/MetricGoalConfig.h>
13#include <aws/evidently/model/TreatmentConfig.h>
14#include <utility>
15
16namespace Aws
17{
18namespace CloudWatchEvidently
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_CLOUDWATCHEVIDENTLY_API UpdateExperimentRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateExperiment"; }
35
36 AWS_CLOUDWATCHEVIDENTLY_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetDescription() const{ return m_description; }
44 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
45 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
46 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
47 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
48 inline UpdateExperimentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
49 inline UpdateExperimentRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
50 inline UpdateExperimentRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
52
54
57 inline const Aws::String& GetExperiment() const{ return m_experiment; }
58 inline bool ExperimentHasBeenSet() const { return m_experimentHasBeenSet; }
59 inline void SetExperiment(const Aws::String& value) { m_experimentHasBeenSet = true; m_experiment = value; }
60 inline void SetExperiment(Aws::String&& value) { m_experimentHasBeenSet = true; m_experiment = std::move(value); }
61 inline void SetExperiment(const char* value) { m_experimentHasBeenSet = true; m_experiment.assign(value); }
62 inline UpdateExperimentRequest& WithExperiment(const Aws::String& value) { SetExperiment(value); return *this;}
63 inline UpdateExperimentRequest& WithExperiment(Aws::String&& value) { SetExperiment(std::move(value)); return *this;}
64 inline UpdateExperimentRequest& WithExperiment(const char* value) { SetExperiment(value); return *this;}
66
68
72 inline const Aws::Vector<MetricGoalConfig>& GetMetricGoals() const{ return m_metricGoals; }
73 inline bool MetricGoalsHasBeenSet() const { return m_metricGoalsHasBeenSet; }
74 inline void SetMetricGoals(const Aws::Vector<MetricGoalConfig>& value) { m_metricGoalsHasBeenSet = true; m_metricGoals = value; }
75 inline void SetMetricGoals(Aws::Vector<MetricGoalConfig>&& value) { m_metricGoalsHasBeenSet = true; m_metricGoals = std::move(value); }
77 inline UpdateExperimentRequest& WithMetricGoals(Aws::Vector<MetricGoalConfig>&& value) { SetMetricGoals(std::move(value)); return *this;}
78 inline UpdateExperimentRequest& AddMetricGoals(const MetricGoalConfig& value) { m_metricGoalsHasBeenSet = true; m_metricGoals.push_back(value); return *this; }
79 inline UpdateExperimentRequest& AddMetricGoals(MetricGoalConfig&& value) { m_metricGoalsHasBeenSet = true; m_metricGoals.push_back(std::move(value)); return *this; }
81
83
89 inline const OnlineAbConfig& GetOnlineAbConfig() const{ return m_onlineAbConfig; }
90 inline bool OnlineAbConfigHasBeenSet() const { return m_onlineAbConfigHasBeenSet; }
91 inline void SetOnlineAbConfig(const OnlineAbConfig& value) { m_onlineAbConfigHasBeenSet = true; m_onlineAbConfig = value; }
92 inline void SetOnlineAbConfig(OnlineAbConfig&& value) { m_onlineAbConfigHasBeenSet = true; m_onlineAbConfig = std::move(value); }
93 inline UpdateExperimentRequest& WithOnlineAbConfig(const OnlineAbConfig& value) { SetOnlineAbConfig(value); return *this;}
94 inline UpdateExperimentRequest& WithOnlineAbConfig(OnlineAbConfig&& value) { SetOnlineAbConfig(std::move(value)); return *this;}
96
98
102 inline const Aws::String& GetProject() const{ return m_project; }
103 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
104 inline void SetProject(const Aws::String& value) { m_projectHasBeenSet = true; m_project = value; }
105 inline void SetProject(Aws::String&& value) { m_projectHasBeenSet = true; m_project = std::move(value); }
106 inline void SetProject(const char* value) { m_projectHasBeenSet = true; m_project.assign(value); }
107 inline UpdateExperimentRequest& WithProject(const Aws::String& value) { SetProject(value); return *this;}
108 inline UpdateExperimentRequest& WithProject(Aws::String&& value) { SetProject(std::move(value)); return *this;}
109 inline UpdateExperimentRequest& WithProject(const char* value) { SetProject(value); return *this;}
111
113
120 inline const Aws::String& GetRandomizationSalt() const{ return m_randomizationSalt; }
121 inline bool RandomizationSaltHasBeenSet() const { return m_randomizationSaltHasBeenSet; }
122 inline void SetRandomizationSalt(const Aws::String& value) { m_randomizationSaltHasBeenSet = true; m_randomizationSalt = value; }
123 inline void SetRandomizationSalt(Aws::String&& value) { m_randomizationSaltHasBeenSet = true; m_randomizationSalt = std::move(value); }
124 inline void SetRandomizationSalt(const char* value) { m_randomizationSaltHasBeenSet = true; m_randomizationSalt.assign(value); }
126 inline UpdateExperimentRequest& WithRandomizationSalt(Aws::String&& value) { SetRandomizationSalt(std::move(value)); return *this;}
127 inline UpdateExperimentRequest& WithRandomizationSalt(const char* value) { SetRandomizationSalt(value); return *this;}
129
131
135 inline bool GetRemoveSegment() const{ return m_removeSegment; }
136 inline bool RemoveSegmentHasBeenSet() const { return m_removeSegmentHasBeenSet; }
137 inline void SetRemoveSegment(bool value) { m_removeSegmentHasBeenSet = true; m_removeSegment = value; }
138 inline UpdateExperimentRequest& WithRemoveSegment(bool value) { SetRemoveSegment(value); return *this;}
140
142
150 inline long long GetSamplingRate() const{ return m_samplingRate; }
151 inline bool SamplingRateHasBeenSet() const { return m_samplingRateHasBeenSet; }
152 inline void SetSamplingRate(long long value) { m_samplingRateHasBeenSet = true; m_samplingRate = value; }
153 inline UpdateExperimentRequest& WithSamplingRate(long long value) { SetSamplingRate(value); return *this;}
155
157
163 inline const Aws::String& GetSegment() const{ return m_segment; }
164 inline bool SegmentHasBeenSet() const { return m_segmentHasBeenSet; }
165 inline void SetSegment(const Aws::String& value) { m_segmentHasBeenSet = true; m_segment = value; }
166 inline void SetSegment(Aws::String&& value) { m_segmentHasBeenSet = true; m_segment = std::move(value); }
167 inline void SetSegment(const char* value) { m_segmentHasBeenSet = true; m_segment.assign(value); }
168 inline UpdateExperimentRequest& WithSegment(const Aws::String& value) { SetSegment(value); return *this;}
169 inline UpdateExperimentRequest& WithSegment(Aws::String&& value) { SetSegment(std::move(value)); return *this;}
170 inline UpdateExperimentRequest& WithSegment(const char* value) { SetSegment(value); return *this;}
172
174
178 inline const Aws::Vector<TreatmentConfig>& GetTreatments() const{ return m_treatments; }
179 inline bool TreatmentsHasBeenSet() const { return m_treatmentsHasBeenSet; }
180 inline void SetTreatments(const Aws::Vector<TreatmentConfig>& value) { m_treatmentsHasBeenSet = true; m_treatments = value; }
181 inline void SetTreatments(Aws::Vector<TreatmentConfig>&& value) { m_treatmentsHasBeenSet = true; m_treatments = std::move(value); }
183 inline UpdateExperimentRequest& WithTreatments(Aws::Vector<TreatmentConfig>&& value) { SetTreatments(std::move(value)); return *this;}
184 inline UpdateExperimentRequest& AddTreatments(const TreatmentConfig& value) { m_treatmentsHasBeenSet = true; m_treatments.push_back(value); return *this; }
185 inline UpdateExperimentRequest& AddTreatments(TreatmentConfig&& value) { m_treatmentsHasBeenSet = true; m_treatments.push_back(std::move(value)); return *this; }
187 private:
188
189 Aws::String m_description;
190 bool m_descriptionHasBeenSet = false;
191
192 Aws::String m_experiment;
193 bool m_experimentHasBeenSet = false;
194
195 Aws::Vector<MetricGoalConfig> m_metricGoals;
196 bool m_metricGoalsHasBeenSet = false;
197
198 OnlineAbConfig m_onlineAbConfig;
199 bool m_onlineAbConfigHasBeenSet = false;
200
201 Aws::String m_project;
202 bool m_projectHasBeenSet = false;
203
204 Aws::String m_randomizationSalt;
205 bool m_randomizationSaltHasBeenSet = false;
206
207 bool m_removeSegment;
208 bool m_removeSegmentHasBeenSet = false;
209
210 long long m_samplingRate;
211 bool m_samplingRateHasBeenSet = false;
212
213 Aws::String m_segment;
214 bool m_segmentHasBeenSet = false;
215
216 Aws::Vector<TreatmentConfig> m_treatments;
217 bool m_treatmentsHasBeenSet = false;
218 };
219
220} // namespace Model
221} // namespace CloudWatchEvidently
222} // namespace Aws
UpdateExperimentRequest & AddTreatments(const TreatmentConfig &value)
UpdateExperimentRequest & WithSegment(const Aws::String &value)
UpdateExperimentRequest & WithTreatments(Aws::Vector< TreatmentConfig > &&value)
UpdateExperimentRequest & WithExperiment(Aws::String &&value)
const Aws::Vector< TreatmentConfig > & GetTreatments() const
AWS_CLOUDWATCHEVIDENTLY_API Aws::String SerializePayload() const override
void SetMetricGoals(Aws::Vector< MetricGoalConfig > &&value)
UpdateExperimentRequest & WithTreatments(const Aws::Vector< TreatmentConfig > &value)
UpdateExperimentRequest & WithSamplingRate(long long value)
void SetMetricGoals(const Aws::Vector< MetricGoalConfig > &value)
UpdateExperimentRequest & WithSegment(const char *value)
UpdateExperimentRequest & WithMetricGoals(Aws::Vector< MetricGoalConfig > &&value)
UpdateExperimentRequest & WithDescription(Aws::String &&value)
void SetTreatments(Aws::Vector< TreatmentConfig > &&value)
UpdateExperimentRequest & WithRandomizationSalt(const char *value)
UpdateExperimentRequest & AddTreatments(TreatmentConfig &&value)
void SetTreatments(const Aws::Vector< TreatmentConfig > &value)
UpdateExperimentRequest & WithMetricGoals(const Aws::Vector< MetricGoalConfig > &value)
UpdateExperimentRequest & AddMetricGoals(const MetricGoalConfig &value)
UpdateExperimentRequest & WithProject(Aws::String &&value)
UpdateExperimentRequest & WithExperiment(const char *value)
UpdateExperimentRequest & WithProject(const char *value)
UpdateExperimentRequest & WithDescription(const char *value)
UpdateExperimentRequest & WithDescription(const Aws::String &value)
UpdateExperimentRequest & WithSegment(Aws::String &&value)
UpdateExperimentRequest & WithOnlineAbConfig(const OnlineAbConfig &value)
UpdateExperimentRequest & AddMetricGoals(MetricGoalConfig &&value)
UpdateExperimentRequest & WithProject(const Aws::String &value)
UpdateExperimentRequest & WithExperiment(const Aws::String &value)
UpdateExperimentRequest & WithOnlineAbConfig(OnlineAbConfig &&value)
UpdateExperimentRequest & WithRandomizationSalt(Aws::String &&value)
UpdateExperimentRequest & WithRandomizationSalt(const Aws::String &value)
const Aws::Vector< MetricGoalConfig > & GetMetricGoals() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector