AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SegmentOverride.h
1
6#pragma once
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>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CloudWatchEvidently
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_CLOUDWATCHEVIDENTLY_API SegmentOverride();
38 AWS_CLOUDWATCHEVIDENTLY_API SegmentOverride(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDWATCHEVIDENTLY_API SegmentOverride& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline long long GetEvaluationOrder() const{ return m_evaluationOrder; }
49 inline bool EvaluationOrderHasBeenSet() const { return m_evaluationOrderHasBeenSet; }
50 inline void SetEvaluationOrder(long long value) { m_evaluationOrderHasBeenSet = true; m_evaluationOrder = value; }
51 inline SegmentOverride& WithEvaluationOrder(long long value) { SetEvaluationOrder(value); return *this;}
53
55
58 inline const Aws::String& GetSegment() const{ return m_segment; }
59 inline bool SegmentHasBeenSet() const { return m_segmentHasBeenSet; }
60 inline void SetSegment(const Aws::String& value) { m_segmentHasBeenSet = true; m_segment = value; }
61 inline void SetSegment(Aws::String&& value) { m_segmentHasBeenSet = true; m_segment = std::move(value); }
62 inline void SetSegment(const char* value) { m_segmentHasBeenSet = true; m_segment.assign(value); }
63 inline SegmentOverride& WithSegment(const Aws::String& value) { SetSegment(value); return *this;}
64 inline SegmentOverride& WithSegment(Aws::String&& value) { SetSegment(std::move(value)); return *this;}
65 inline SegmentOverride& WithSegment(const char* value) { SetSegment(value); return *this;}
67
69
76 inline const Aws::Map<Aws::String, long long>& GetWeights() const{ return m_weights; }
77 inline bool WeightsHasBeenSet() const { return m_weightsHasBeenSet; }
78 inline void SetWeights(const Aws::Map<Aws::String, long long>& value) { m_weightsHasBeenSet = true; m_weights = value; }
79 inline void SetWeights(Aws::Map<Aws::String, long long>&& value) { m_weightsHasBeenSet = true; m_weights = std::move(value); }
80 inline SegmentOverride& WithWeights(const Aws::Map<Aws::String, long long>& value) { SetWeights(value); return *this;}
81 inline SegmentOverride& WithWeights(Aws::Map<Aws::String, long long>&& value) { SetWeights(std::move(value)); return *this;}
82 inline SegmentOverride& AddWeights(const Aws::String& key, long long value) { m_weightsHasBeenSet = true; m_weights.emplace(key, value); return *this; }
83 inline SegmentOverride& AddWeights(Aws::String&& key, long long value) { m_weightsHasBeenSet = true; m_weights.emplace(std::move(key), value); return *this; }
84 inline SegmentOverride& AddWeights(const char* key, long long value) { m_weightsHasBeenSet = true; m_weights.emplace(key, value); return *this; }
86 private:
87
88 long long m_evaluationOrder;
89 bool m_evaluationOrderHasBeenSet = false;
90
91 Aws::String m_segment;
92 bool m_segmentHasBeenSet = false;
93
95 bool m_weightsHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace CloudWatchEvidently
100} // namespace Aws
SegmentOverride & AddWeights(const char *key, long long value)
const Aws::Map< Aws::String, long long > & GetWeights() const
void SetWeights(const Aws::Map< Aws::String, long long > &value)
SegmentOverride & WithWeights(const Aws::Map< Aws::String, long long > &value)
SegmentOverride & WithWeights(Aws::Map< Aws::String, long long > &&value)
AWS_CLOUDWATCHEVIDENTLY_API SegmentOverride(Aws::Utils::Json::JsonView jsonValue)
SegmentOverride & AddWeights(Aws::String &&key, long long value)
SegmentOverride & AddWeights(const Aws::String &key, long long value)
SegmentOverride & WithSegment(const char *value)
SegmentOverride & WithEvaluationOrder(long long value)
AWS_CLOUDWATCHEVIDENTLY_API SegmentOverride()
SegmentOverride & WithSegment(const Aws::String &value)
void SetWeights(Aws::Map< Aws::String, long long > &&value)
AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const
SegmentOverride & WithSegment(Aws::String &&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