7#include <aws/evidently/CloudWatchEvidently_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
22namespace CloudWatchEvidently
51 template<
typename ControlTreatmentNameT = Aws::String>
52 void SetControlTreatmentName(ControlTreatmentNameT&& value) { m_controlTreatmentNameHasBeenSet =
true; m_controlTreatmentName = std::forward<ControlTreatmentNameT>(value); }
53 template<
typename ControlTreatmentNameT = Aws::String>
66 template<
typename TreatmentWeightsT = Aws::Map<Aws::String,
long long>>
67 void SetTreatmentWeights(TreatmentWeightsT&& value) { m_treatmentWeightsHasBeenSet =
true; m_treatmentWeights = std::forward<TreatmentWeightsT>(value); }
68 template<
typename TreatmentWeightsT = Aws::Map<Aws::String,
long long>>
71 m_treatmentWeightsHasBeenSet =
true; m_treatmentWeights.emplace(key, value);
return *
this;
77 bool m_controlTreatmentNameHasBeenSet =
false;
80 bool m_treatmentWeightsHasBeenSet =
false;
AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetControlTreatmentName(ControlTreatmentNameT &&value)
AWS_CLOUDWATCHEVIDENTLY_API OnlineAbDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, long long > & GetTreatmentWeights() const
AWS_CLOUDWATCHEVIDENTLY_API OnlineAbDefinition()=default
const Aws::String & GetControlTreatmentName() const
AWS_CLOUDWATCHEVIDENTLY_API OnlineAbDefinition(Aws::Utils::Json::JsonView jsonValue)
bool TreatmentWeightsHasBeenSet() const
void SetTreatmentWeights(TreatmentWeightsT &&value)
OnlineAbDefinition & WithTreatmentWeights(TreatmentWeightsT &&value)
OnlineAbDefinition & AddTreatmentWeights(Aws::String key, long long value)
OnlineAbDefinition & WithControlTreatmentName(ControlTreatmentNameT &&value)
bool ControlTreatmentNameHasBeenSet() 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
Aws::Utils::Json::JsonValue JsonValue