AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateExperimentRequest.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/core/utils/memory/stl/AWSMap.h>
13#include <aws/evidently/model/MetricGoalConfig.h>
14#include <aws/evidently/model/TreatmentConfig.h>
15#include <utility>
16
17namespace Aws
18{
19namespace CloudWatchEvidently
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_CLOUDWATCHEVIDENTLY_API CreateExperimentRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateExperiment"; }
36
37 AWS_CLOUDWATCHEVIDENTLY_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetDescription() const{ return m_description; }
45 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
46 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
47 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
48 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
49 inline CreateExperimentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
50 inline CreateExperimentRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
51 inline CreateExperimentRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
53
55
59 inline const Aws::Vector<MetricGoalConfig>& GetMetricGoals() const{ return m_metricGoals; }
60 inline bool MetricGoalsHasBeenSet() const { return m_metricGoalsHasBeenSet; }
61 inline void SetMetricGoals(const Aws::Vector<MetricGoalConfig>& value) { m_metricGoalsHasBeenSet = true; m_metricGoals = value; }
62 inline void SetMetricGoals(Aws::Vector<MetricGoalConfig>&& value) { m_metricGoalsHasBeenSet = true; m_metricGoals = std::move(value); }
64 inline CreateExperimentRequest& WithMetricGoals(Aws::Vector<MetricGoalConfig>&& value) { SetMetricGoals(std::move(value)); return *this;}
65 inline CreateExperimentRequest& AddMetricGoals(const MetricGoalConfig& value) { m_metricGoalsHasBeenSet = true; m_metricGoals.push_back(value); return *this; }
66 inline CreateExperimentRequest& AddMetricGoals(MetricGoalConfig&& value) { m_metricGoalsHasBeenSet = true; m_metricGoals.push_back(std::move(value)); return *this; }
68
70
73 inline const Aws::String& GetName() const{ return m_name; }
74 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
75 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
76 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
77 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
78 inline CreateExperimentRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
79 inline CreateExperimentRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
80 inline CreateExperimentRequest& WithName(const char* value) { SetName(value); return *this;}
82
84
90 inline const OnlineAbConfig& GetOnlineAbConfig() const{ return m_onlineAbConfig; }
91 inline bool OnlineAbConfigHasBeenSet() const { return m_onlineAbConfigHasBeenSet; }
92 inline void SetOnlineAbConfig(const OnlineAbConfig& value) { m_onlineAbConfigHasBeenSet = true; m_onlineAbConfig = value; }
93 inline void SetOnlineAbConfig(OnlineAbConfig&& value) { m_onlineAbConfigHasBeenSet = true; m_onlineAbConfig = std::move(value); }
94 inline CreateExperimentRequest& WithOnlineAbConfig(const OnlineAbConfig& value) { SetOnlineAbConfig(value); return *this;}
95 inline CreateExperimentRequest& WithOnlineAbConfig(OnlineAbConfig&& value) { SetOnlineAbConfig(std::move(value)); return *this;}
97
99
103 inline const Aws::String& GetProject() const{ return m_project; }
104 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
105 inline void SetProject(const Aws::String& value) { m_projectHasBeenSet = true; m_project = value; }
106 inline void SetProject(Aws::String&& value) { m_projectHasBeenSet = true; m_project = std::move(value); }
107 inline void SetProject(const char* value) { m_projectHasBeenSet = true; m_project.assign(value); }
108 inline CreateExperimentRequest& WithProject(const Aws::String& value) { SetProject(value); return *this;}
109 inline CreateExperimentRequest& WithProject(Aws::String&& value) { SetProject(std::move(value)); return *this;}
110 inline CreateExperimentRequest& WithProject(const char* value) { SetProject(value); return *this;}
112
114
121 inline const Aws::String& GetRandomizationSalt() const{ return m_randomizationSalt; }
122 inline bool RandomizationSaltHasBeenSet() const { return m_randomizationSaltHasBeenSet; }
123 inline void SetRandomizationSalt(const Aws::String& value) { m_randomizationSaltHasBeenSet = true; m_randomizationSalt = value; }
124 inline void SetRandomizationSalt(Aws::String&& value) { m_randomizationSaltHasBeenSet = true; m_randomizationSalt = std::move(value); }
125 inline void SetRandomizationSalt(const char* value) { m_randomizationSaltHasBeenSet = true; m_randomizationSalt.assign(value); }
127 inline CreateExperimentRequest& WithRandomizationSalt(Aws::String&& value) { SetRandomizationSalt(std::move(value)); return *this;}
128 inline CreateExperimentRequest& WithRandomizationSalt(const char* value) { SetRandomizationSalt(value); return *this;}
130
132
140 inline long long GetSamplingRate() const{ return m_samplingRate; }
141 inline bool SamplingRateHasBeenSet() const { return m_samplingRateHasBeenSet; }
142 inline void SetSamplingRate(long long value) { m_samplingRateHasBeenSet = true; m_samplingRate = value; }
143 inline CreateExperimentRequest& WithSamplingRate(long long value) { SetSamplingRate(value); return *this;}
145
147
152 inline const Aws::String& GetSegment() const{ return m_segment; }
153 inline bool SegmentHasBeenSet() const { return m_segmentHasBeenSet; }
154 inline void SetSegment(const Aws::String& value) { m_segmentHasBeenSet = true; m_segment = value; }
155 inline void SetSegment(Aws::String&& value) { m_segmentHasBeenSet = true; m_segment = std::move(value); }
156 inline void SetSegment(const char* value) { m_segmentHasBeenSet = true; m_segment.assign(value); }
157 inline CreateExperimentRequest& WithSegment(const Aws::String& value) { SetSegment(value); return *this;}
158 inline CreateExperimentRequest& WithSegment(Aws::String&& value) { SetSegment(std::move(value)); return *this;}
159 inline CreateExperimentRequest& WithSegment(const char* value) { SetSegment(value); return *this;}
161
163
174 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
175 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
176 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
177 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
178 inline CreateExperimentRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
179 inline CreateExperimentRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
180 inline CreateExperimentRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
181 inline CreateExperimentRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
182 inline CreateExperimentRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
183 inline CreateExperimentRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
184 inline CreateExperimentRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
185 inline CreateExperimentRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
186 inline CreateExperimentRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
188
190
194 inline const Aws::Vector<TreatmentConfig>& GetTreatments() const{ return m_treatments; }
195 inline bool TreatmentsHasBeenSet() const { return m_treatmentsHasBeenSet; }
196 inline void SetTreatments(const Aws::Vector<TreatmentConfig>& value) { m_treatmentsHasBeenSet = true; m_treatments = value; }
197 inline void SetTreatments(Aws::Vector<TreatmentConfig>&& value) { m_treatmentsHasBeenSet = true; m_treatments = std::move(value); }
199 inline CreateExperimentRequest& WithTreatments(Aws::Vector<TreatmentConfig>&& value) { SetTreatments(std::move(value)); return *this;}
200 inline CreateExperimentRequest& AddTreatments(const TreatmentConfig& value) { m_treatmentsHasBeenSet = true; m_treatments.push_back(value); return *this; }
201 inline CreateExperimentRequest& AddTreatments(TreatmentConfig&& value) { m_treatmentsHasBeenSet = true; m_treatments.push_back(std::move(value)); return *this; }
203 private:
204
205 Aws::String m_description;
206 bool m_descriptionHasBeenSet = false;
207
208 Aws::Vector<MetricGoalConfig> m_metricGoals;
209 bool m_metricGoalsHasBeenSet = false;
210
211 Aws::String m_name;
212 bool m_nameHasBeenSet = false;
213
214 OnlineAbConfig m_onlineAbConfig;
215 bool m_onlineAbConfigHasBeenSet = false;
216
217 Aws::String m_project;
218 bool m_projectHasBeenSet = false;
219
220 Aws::String m_randomizationSalt;
221 bool m_randomizationSaltHasBeenSet = false;
222
223 long long m_samplingRate;
224 bool m_samplingRateHasBeenSet = false;
225
226 Aws::String m_segment;
227 bool m_segmentHasBeenSet = false;
228
230 bool m_tagsHasBeenSet = false;
231
232 Aws::Vector<TreatmentConfig> m_treatments;
233 bool m_treatmentsHasBeenSet = false;
234 };
235
236} // namespace Model
237} // namespace CloudWatchEvidently
238} // namespace Aws
CreateExperimentRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetTreatments(Aws::Vector< TreatmentConfig > &&value)
CreateExperimentRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateExperimentRequest & WithProject(Aws::String &&value)
CreateExperimentRequest & AddTags(Aws::String &&key, const char *value)
CreateExperimentRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateExperimentRequest & WithRandomizationSalt(const char *value)
CreateExperimentRequest & WithOnlineAbConfig(OnlineAbConfig &&value)
CreateExperimentRequest & WithName(Aws::String &&value)
CreateExperimentRequest & WithRandomizationSalt(Aws::String &&value)
CreateExperimentRequest & WithSegment(const Aws::String &value)
CreateExperimentRequest & WithDescription(const char *value)
CreateExperimentRequest & WithName(const Aws::String &value)
CreateExperimentRequest & WithProject(const Aws::String &value)
CreateExperimentRequest & WithMetricGoals(Aws::Vector< MetricGoalConfig > &&value)
void SetMetricGoals(const Aws::Vector< MetricGoalConfig > &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateExperimentRequest & WithProject(const char *value)
CreateExperimentRequest & WithDescription(const Aws::String &value)
CreateExperimentRequest & WithMetricGoals(const Aws::Vector< MetricGoalConfig > &value)
void SetMetricGoals(Aws::Vector< MetricGoalConfig > &&value)
CreateExperimentRequest & WithDescription(Aws::String &&value)
void SetTreatments(const Aws::Vector< TreatmentConfig > &value)
CreateExperimentRequest & WithName(const char *value)
CreateExperimentRequest & WithRandomizationSalt(const Aws::String &value)
CreateExperimentRequest & WithSegment(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_CLOUDWATCHEVIDENTLY_API Aws::String SerializePayload() const override
CreateExperimentRequest & AddTreatments(TreatmentConfig &&value)
const Aws::Vector< TreatmentConfig > & GetTreatments() const
CreateExperimentRequest & AddMetricGoals(MetricGoalConfig &&value)
CreateExperimentRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateExperimentRequest & WithTreatments(const Aws::Vector< TreatmentConfig > &value)
CreateExperimentRequest & WithSamplingRate(long long value)
CreateExperimentRequest & AddTags(const char *key, Aws::String &&value)
CreateExperimentRequest & AddMetricGoals(const MetricGoalConfig &value)
CreateExperimentRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateExperimentRequest & AddTreatments(const TreatmentConfig &value)
CreateExperimentRequest & AddTags(const char *key, const char *value)
CreateExperimentRequest & WithSegment(Aws::String &&value)
CreateExperimentRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateExperimentRequest & WithTreatments(Aws::Vector< TreatmentConfig > &&value)
CreateExperimentRequest & WithOnlineAbConfig(const OnlineAbConfig &value)
const Aws::Vector< MetricGoalConfig > & GetMetricGoals() const
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