AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ScheduledSplitConfig.h
1
6#pragma once
7#include <aws/evidently/CloudWatchEvidently_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/evidently/model/SegmentOverride.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace CloudWatchEvidently
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_CLOUDWATCHEVIDENTLY_API ScheduledSplitConfig();
41 AWS_CLOUDWATCHEVIDENTLY_API ScheduledSplitConfig(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CLOUDWATCHEVIDENTLY_API ScheduledSplitConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
58 inline const Aws::Map<Aws::String, long long>& GetGroupWeights() const{ return m_groupWeights; }
59 inline bool GroupWeightsHasBeenSet() const { return m_groupWeightsHasBeenSet; }
60 inline void SetGroupWeights(const Aws::Map<Aws::String, long long>& value) { m_groupWeightsHasBeenSet = true; m_groupWeights = value; }
61 inline void SetGroupWeights(Aws::Map<Aws::String, long long>&& value) { m_groupWeightsHasBeenSet = true; m_groupWeights = std::move(value); }
64 inline ScheduledSplitConfig& AddGroupWeights(const Aws::String& key, long long value) { m_groupWeightsHasBeenSet = true; m_groupWeights.emplace(key, value); return *this; }
65 inline ScheduledSplitConfig& AddGroupWeights(Aws::String&& key, long long value) { m_groupWeightsHasBeenSet = true; m_groupWeights.emplace(std::move(key), value); return *this; }
66 inline ScheduledSplitConfig& AddGroupWeights(const char* key, long long value) { m_groupWeightsHasBeenSet = true; m_groupWeights.emplace(key, value); return *this; }
68
70
79 inline const Aws::Vector<SegmentOverride>& GetSegmentOverrides() const{ return m_segmentOverrides; }
80 inline bool SegmentOverridesHasBeenSet() const { return m_segmentOverridesHasBeenSet; }
81 inline void SetSegmentOverrides(const Aws::Vector<SegmentOverride>& value) { m_segmentOverridesHasBeenSet = true; m_segmentOverrides = value; }
82 inline void SetSegmentOverrides(Aws::Vector<SegmentOverride>&& value) { m_segmentOverridesHasBeenSet = true; m_segmentOverrides = std::move(value); }
85 inline ScheduledSplitConfig& AddSegmentOverrides(const SegmentOverride& value) { m_segmentOverridesHasBeenSet = true; m_segmentOverrides.push_back(value); return *this; }
86 inline ScheduledSplitConfig& AddSegmentOverrides(SegmentOverride&& value) { m_segmentOverridesHasBeenSet = true; m_segmentOverrides.push_back(std::move(value)); return *this; }
88
90
93 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
94 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
95 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
96 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
97 inline ScheduledSplitConfig& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
98 inline ScheduledSplitConfig& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
100 private:
101
103 bool m_groupWeightsHasBeenSet = false;
104
105 Aws::Vector<SegmentOverride> m_segmentOverrides;
106 bool m_segmentOverridesHasBeenSet = false;
107
108 Aws::Utils::DateTime m_startTime;
109 bool m_startTimeHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace CloudWatchEvidently
114} // namespace Aws
const Aws::Vector< SegmentOverride > & GetSegmentOverrides() const
ScheduledSplitConfig & WithStartTime(Aws::Utils::DateTime &&value)
ScheduledSplitConfig & WithGroupWeights(Aws::Map< Aws::String, long long > &&value)
AWS_CLOUDWATCHEVIDENTLY_API ScheduledSplitConfig(Aws::Utils::Json::JsonView jsonValue)
void SetGroupWeights(const Aws::Map< Aws::String, long long > &value)
ScheduledSplitConfig & AddGroupWeights(const Aws::String &key, long long value)
ScheduledSplitConfig & WithSegmentOverrides(const Aws::Vector< SegmentOverride > &value)
ScheduledSplitConfig & WithSegmentOverrides(Aws::Vector< SegmentOverride > &&value)
void SetSegmentOverrides(Aws::Vector< SegmentOverride > &&value)
ScheduledSplitConfig & WithStartTime(const Aws::Utils::DateTime &value)
ScheduledSplitConfig & AddGroupWeights(Aws::String &&key, long long value)
void SetGroupWeights(Aws::Map< Aws::String, long long > &&value)
AWS_CLOUDWATCHEVIDENTLY_API ScheduledSplitConfig()
ScheduledSplitConfig & WithGroupWeights(const Aws::Map< Aws::String, long long > &value)
const Aws::Map< Aws::String, long long > & GetGroupWeights() const
void SetSegmentOverrides(const Aws::Vector< SegmentOverride > &value)
AWS_CLOUDWATCHEVIDENTLY_API ScheduledSplitConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
ScheduledSplitConfig & AddGroupWeights(const char *key, long long value)
AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const
ScheduledSplitConfig & AddSegmentOverrides(const SegmentOverride &value)
ScheduledSplitConfig & AddSegmentOverrides(SegmentOverride &&value)
void SetStartTime(const Aws::Utils::DateTime &value)
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
Aws::Utils::Json::JsonValue JsonValue