AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename DescriptionT = Aws::String>
46 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
47 template<typename DescriptionT = Aws::String>
48 UpdateExperimentRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
50
52
55 inline const Aws::String& GetExperiment() const { return m_experiment; }
56 inline bool ExperimentHasBeenSet() const { return m_experimentHasBeenSet; }
57 template<typename ExperimentT = Aws::String>
58 void SetExperiment(ExperimentT&& value) { m_experimentHasBeenSet = true; m_experiment = std::forward<ExperimentT>(value); }
59 template<typename ExperimentT = Aws::String>
60 UpdateExperimentRequest& WithExperiment(ExperimentT&& value) { SetExperiment(std::forward<ExperimentT>(value)); return *this;}
62
64
68 inline const Aws::Vector<MetricGoalConfig>& GetMetricGoals() const { return m_metricGoals; }
69 inline bool MetricGoalsHasBeenSet() const { return m_metricGoalsHasBeenSet; }
70 template<typename MetricGoalsT = Aws::Vector<MetricGoalConfig>>
71 void SetMetricGoals(MetricGoalsT&& value) { m_metricGoalsHasBeenSet = true; m_metricGoals = std::forward<MetricGoalsT>(value); }
72 template<typename MetricGoalsT = Aws::Vector<MetricGoalConfig>>
73 UpdateExperimentRequest& WithMetricGoals(MetricGoalsT&& value) { SetMetricGoals(std::forward<MetricGoalsT>(value)); return *this;}
74 template<typename MetricGoalsT = MetricGoalConfig>
75 UpdateExperimentRequest& AddMetricGoals(MetricGoalsT&& value) { m_metricGoalsHasBeenSet = true; m_metricGoals.emplace_back(std::forward<MetricGoalsT>(value)); return *this; }
77
79
85 inline const OnlineAbConfig& GetOnlineAbConfig() const { return m_onlineAbConfig; }
86 inline bool OnlineAbConfigHasBeenSet() const { return m_onlineAbConfigHasBeenSet; }
87 template<typename OnlineAbConfigT = OnlineAbConfig>
88 void SetOnlineAbConfig(OnlineAbConfigT&& value) { m_onlineAbConfigHasBeenSet = true; m_onlineAbConfig = std::forward<OnlineAbConfigT>(value); }
89 template<typename OnlineAbConfigT = OnlineAbConfig>
90 UpdateExperimentRequest& WithOnlineAbConfig(OnlineAbConfigT&& value) { SetOnlineAbConfig(std::forward<OnlineAbConfigT>(value)); return *this;}
92
94
98 inline const Aws::String& GetProject() const { return m_project; }
99 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
100 template<typename ProjectT = Aws::String>
101 void SetProject(ProjectT&& value) { m_projectHasBeenSet = true; m_project = std::forward<ProjectT>(value); }
102 template<typename ProjectT = Aws::String>
103 UpdateExperimentRequest& WithProject(ProjectT&& value) { SetProject(std::forward<ProjectT>(value)); return *this;}
105
107
114 inline const Aws::String& GetRandomizationSalt() const { return m_randomizationSalt; }
115 inline bool RandomizationSaltHasBeenSet() const { return m_randomizationSaltHasBeenSet; }
116 template<typename RandomizationSaltT = Aws::String>
117 void SetRandomizationSalt(RandomizationSaltT&& value) { m_randomizationSaltHasBeenSet = true; m_randomizationSalt = std::forward<RandomizationSaltT>(value); }
118 template<typename RandomizationSaltT = Aws::String>
119 UpdateExperimentRequest& WithRandomizationSalt(RandomizationSaltT&& value) { SetRandomizationSalt(std::forward<RandomizationSaltT>(value)); return *this;}
121
123
127 inline bool GetRemoveSegment() const { return m_removeSegment; }
128 inline bool RemoveSegmentHasBeenSet() const { return m_removeSegmentHasBeenSet; }
129 inline void SetRemoveSegment(bool value) { m_removeSegmentHasBeenSet = true; m_removeSegment = value; }
130 inline UpdateExperimentRequest& WithRemoveSegment(bool value) { SetRemoveSegment(value); return *this;}
132
134
142 inline long long GetSamplingRate() const { return m_samplingRate; }
143 inline bool SamplingRateHasBeenSet() const { return m_samplingRateHasBeenSet; }
144 inline void SetSamplingRate(long long value) { m_samplingRateHasBeenSet = true; m_samplingRate = value; }
145 inline UpdateExperimentRequest& WithSamplingRate(long long value) { SetSamplingRate(value); return *this;}
147
149
155 inline const Aws::String& GetSegment() const { return m_segment; }
156 inline bool SegmentHasBeenSet() const { return m_segmentHasBeenSet; }
157 template<typename SegmentT = Aws::String>
158 void SetSegment(SegmentT&& value) { m_segmentHasBeenSet = true; m_segment = std::forward<SegmentT>(value); }
159 template<typename SegmentT = Aws::String>
160 UpdateExperimentRequest& WithSegment(SegmentT&& value) { SetSegment(std::forward<SegmentT>(value)); return *this;}
162
164
168 inline const Aws::Vector<TreatmentConfig>& GetTreatments() const { return m_treatments; }
169 inline bool TreatmentsHasBeenSet() const { return m_treatmentsHasBeenSet; }
170 template<typename TreatmentsT = Aws::Vector<TreatmentConfig>>
171 void SetTreatments(TreatmentsT&& value) { m_treatmentsHasBeenSet = true; m_treatments = std::forward<TreatmentsT>(value); }
172 template<typename TreatmentsT = Aws::Vector<TreatmentConfig>>
173 UpdateExperimentRequest& WithTreatments(TreatmentsT&& value) { SetTreatments(std::forward<TreatmentsT>(value)); return *this;}
174 template<typename TreatmentsT = TreatmentConfig>
175 UpdateExperimentRequest& AddTreatments(TreatmentsT&& value) { m_treatmentsHasBeenSet = true; m_treatments.emplace_back(std::forward<TreatmentsT>(value)); return *this; }
177 private:
178
179 Aws::String m_description;
180 bool m_descriptionHasBeenSet = false;
181
182 Aws::String m_experiment;
183 bool m_experimentHasBeenSet = false;
184
185 Aws::Vector<MetricGoalConfig> m_metricGoals;
186 bool m_metricGoalsHasBeenSet = false;
187
188 OnlineAbConfig m_onlineAbConfig;
189 bool m_onlineAbConfigHasBeenSet = false;
190
191 Aws::String m_project;
192 bool m_projectHasBeenSet = false;
193
194 Aws::String m_randomizationSalt;
195 bool m_randomizationSaltHasBeenSet = false;
196
197 bool m_removeSegment{false};
198 bool m_removeSegmentHasBeenSet = false;
199
200 long long m_samplingRate{0};
201 bool m_samplingRateHasBeenSet = false;
202
203 Aws::String m_segment;
204 bool m_segmentHasBeenSet = false;
205
206 Aws::Vector<TreatmentConfig> m_treatments;
207 bool m_treatmentsHasBeenSet = false;
208 };
209
210} // namespace Model
211} // namespace CloudWatchEvidently
212} // namespace Aws
UpdateExperimentRequest & WithDescription(DescriptionT &&value)
UpdateExperimentRequest & WithSegment(SegmentT &&value)
UpdateExperimentRequest & WithRandomizationSalt(RandomizationSaltT &&value)
const Aws::Vector< TreatmentConfig > & GetTreatments() const
AWS_CLOUDWATCHEVIDENTLY_API Aws::String SerializePayload() const override
UpdateExperimentRequest & WithExperiment(ExperimentT &&value)
UpdateExperimentRequest & AddTreatments(TreatmentsT &&value)
UpdateExperimentRequest & WithSamplingRate(long long value)
UpdateExperimentRequest & WithMetricGoals(MetricGoalsT &&value)
UpdateExperimentRequest & AddMetricGoals(MetricGoalsT &&value)
UpdateExperimentRequest & WithProject(ProjectT &&value)
AWS_CLOUDWATCHEVIDENTLY_API UpdateExperimentRequest()=default
UpdateExperimentRequest & WithTreatments(TreatmentsT &&value)
UpdateExperimentRequest & WithOnlineAbConfig(OnlineAbConfigT &&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