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>
19namespace CloudWatchEvidently
46 template<
typename DescriptionT = Aws::String>
47 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
48 template<
typename DescriptionT = Aws::String>
59 template<
typename MetricGoalsT = Aws::Vector<MetricGoalConfig>>
60 void SetMetricGoals(MetricGoalsT&& value) { m_metricGoalsHasBeenSet =
true; m_metricGoals = std::forward<MetricGoalsT>(value); }
61 template<
typename MetricGoalsT = Aws::Vector<MetricGoalConfig>>
63 template<
typename MetricGoalsT = MetricGoalConfig>
73 template<
typename NameT = Aws::String>
74 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
75 template<
typename NameT = Aws::String>
88 template<
typename OnlineAbConfigT = OnlineAbConfig>
89 void SetOnlineAbConfig(OnlineAbConfigT&& value) { m_onlineAbConfigHasBeenSet =
true; m_onlineAbConfig = std::forward<OnlineAbConfigT>(value); }
90 template<
typename OnlineAbConfigT = OnlineAbConfig>
101 template<
typename ProjectT = Aws::String>
102 void SetProject(ProjectT&& value) { m_projectHasBeenSet =
true; m_project = std::forward<ProjectT>(value); }
103 template<
typename ProjectT = Aws::String>
117 template<
typename RandomizationSaltT = Aws::String>
118 void SetRandomizationSalt(RandomizationSaltT&& value) { m_randomizationSaltHasBeenSet =
true; m_randomizationSalt = std::forward<RandomizationSaltT>(value); }
119 template<
typename RandomizationSaltT = Aws::String>
134 inline void SetSamplingRate(
long long value) { m_samplingRateHasBeenSet =
true; m_samplingRate = value; }
146 template<
typename SegmentT = Aws::String>
147 void SetSegment(SegmentT&& value) { m_segmentHasBeenSet =
true; m_segment = std::forward<SegmentT>(value); }
148 template<
typename SegmentT = Aws::String>
166 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
167 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
168 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
170 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
172 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
183 template<
typename TreatmentsT = Aws::Vector<TreatmentConfig>>
184 void SetTreatments(TreatmentsT&& value) { m_treatmentsHasBeenSet =
true; m_treatments = std::forward<TreatmentsT>(value); }
185 template<
typename TreatmentsT = Aws::Vector<TreatmentConfig>>
187 template<
typename TreatmentsT = TreatmentConfig>
193 bool m_descriptionHasBeenSet =
false;
196 bool m_metricGoalsHasBeenSet =
false;
199 bool m_nameHasBeenSet =
false;
202 bool m_onlineAbConfigHasBeenSet =
false;
205 bool m_projectHasBeenSet =
false;
208 bool m_randomizationSaltHasBeenSet =
false;
210 long long m_samplingRate{0};
211 bool m_samplingRateHasBeenSet =
false;
214 bool m_segmentHasBeenSet =
false;
217 bool m_tagsHasBeenSet =
false;
220 bool m_treatmentsHasBeenSet =
false;
bool MetricGoalsHasBeenSet() const
const OnlineAbConfig & GetOnlineAbConfig() const
void SetOnlineAbConfig(OnlineAbConfigT &&value)
CreateExperimentRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetProject(ProjectT &&value)
const Aws::String & GetName() const
const Aws::String & GetSegment() const
const Aws::String & GetRandomizationSalt() const
void SetDescription(DescriptionT &&value)
void SetSegment(SegmentT &&value)
CreateExperimentRequest & AddTreatments(TreatmentsT &&value)
CreateExperimentRequest & WithName(NameT &&value)
void SetName(NameT &&value)
bool NameHasBeenSet() const
void SetTags(TagsT &&value)
CreateExperimentRequest & WithSegment(SegmentT &&value)
bool TreatmentsHasBeenSet() const
bool DescriptionHasBeenSet() const
const Aws::String & GetProject() const
AWS_CLOUDWATCHEVIDENTLY_API CreateExperimentRequest()=default
CreateExperimentRequest & WithOnlineAbConfig(OnlineAbConfigT &&value)
bool OnlineAbConfigHasBeenSet() const
CreateExperimentRequest & WithTreatments(TreatmentsT &&value)
const Aws::String & GetDescription() const
CreateExperimentRequest & WithMetricGoals(MetricGoalsT &&value)
CreateExperimentRequest & WithTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
virtual const char * GetServiceRequestName() const override
void SetRandomizationSalt(RandomizationSaltT &&value)
AWS_CLOUDWATCHEVIDENTLY_API Aws::String SerializePayload() const override
CreateExperimentRequest & WithRandomizationSalt(RandomizationSaltT &&value)
void SetMetricGoals(MetricGoalsT &&value)
const Aws::Vector< TreatmentConfig > & GetTreatments() const
void SetTreatments(TreatmentsT &&value)
bool TagsHasBeenSet() const
bool SamplingRateHasBeenSet() const
bool ProjectHasBeenSet() const
CreateExperimentRequest & AddMetricGoals(MetricGoalsT &&value)
CreateExperimentRequest & WithSamplingRate(long long value)
bool RandomizationSaltHasBeenSet() const
CreateExperimentRequest & WithProject(ProjectT &&value)
CreateExperimentRequest & WithDescription(DescriptionT &&value)
bool SegmentHasBeenSet() const
void SetSamplingRate(long long value)
long long GetSamplingRate() const
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