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
50 inline void SetEvaluationOrder(
long long value) { m_evaluationOrderHasBeenSet =
true; m_evaluationOrder = value; }
60 template<
typename SegmentT = Aws::String>
61 void SetSegment(SegmentT&& value) { m_segmentHasBeenSet =
true; m_segment = std::forward<SegmentT>(value); }
62 template<
typename SegmentT = Aws::String>
76 template<
typename WeightsT = Aws::Map<Aws::String,
long long>>
77 void SetWeights(WeightsT&& value) { m_weightsHasBeenSet =
true; m_weights = std::forward<WeightsT>(value); }
78 template<
typename WeightsT = Aws::Map<Aws::String,
long long>>
81 m_weightsHasBeenSet =
true; m_weights.emplace(key, value);
return *
this;
86 long long m_evaluationOrder{0};
87 bool m_evaluationOrderHasBeenSet =
false;
90 bool m_segmentHasBeenSet =
false;
93 bool m_weightsHasBeenSet =
false;
const Aws::Map< Aws::String, long long > & GetWeights() const
bool WeightsHasBeenSet() const
AWS_CLOUDWATCHEVIDENTLY_API SegmentOverride(Aws::Utils::Json::JsonView jsonValue)
SegmentOverride & WithWeights(WeightsT &&value)
SegmentOverride & AddWeights(Aws::String key, long long value)
void SetEvaluationOrder(long long value)
long long GetEvaluationOrder() const
void SetSegment(SegmentT &&value)
const Aws::String & GetSegment() const
bool SegmentHasBeenSet() const
SegmentOverride & WithEvaluationOrder(long long value)
SegmentOverride & WithSegment(SegmentT &&value)
bool EvaluationOrderHasBeenSet() const
AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLOUDWATCHEVIDENTLY_API SegmentOverride()=default
void SetWeights(WeightsT &&value)
AWS_CLOUDWATCHEVIDENTLY_API SegmentOverride & operator=(Aws::Utils::Json::JsonView jsonValue)
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