AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ScheduledSplit.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 ScheduledSplit();
41 AWS_CLOUDWATCHEVIDENTLY_API ScheduledSplit(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CLOUDWATCHEVIDENTLY_API ScheduledSplit& 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); }
63 inline ScheduledSplit& WithGroupWeights(Aws::Map<Aws::String, long long>&& value) { SetGroupWeights(std::move(value)); return *this;}
64 inline ScheduledSplit& AddGroupWeights(const Aws::String& key, long long value) { m_groupWeightsHasBeenSet = true; m_groupWeights.emplace(key, value); return *this; }
65 inline ScheduledSplit& AddGroupWeights(Aws::String&& key, long long value) { m_groupWeightsHasBeenSet = true; m_groupWeights.emplace(std::move(key), value); return *this; }
66 inline ScheduledSplit& 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); }
84 inline ScheduledSplit& WithSegmentOverrides(Aws::Vector<SegmentOverride>&& value) { SetSegmentOverrides(std::move(value)); return *this;}
85 inline ScheduledSplit& AddSegmentOverrides(const SegmentOverride& value) { m_segmentOverridesHasBeenSet = true; m_segmentOverrides.push_back(value); return *this; }
86 inline ScheduledSplit& 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 ScheduledSplit& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
98 inline ScheduledSplit& 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
ScheduledSplit & WithGroupWeights(const Aws::Map< Aws::String, long long > &value)
ScheduledSplit & AddGroupWeights(const Aws::String &key, long long value)
const Aws::Vector< SegmentOverride > & GetSegmentOverrides() const
const Aws::Utils::DateTime & GetStartTime() const
void SetStartTime(const Aws::Utils::DateTime &value)
void SetGroupWeights(Aws::Map< Aws::String, long long > &&value)
ScheduledSplit & WithGroupWeights(Aws::Map< Aws::String, long long > &&value)
void SetSegmentOverrides(const Aws::Vector< SegmentOverride > &value)
ScheduledSplit & AddSegmentOverrides(const SegmentOverride &value)
void SetStartTime(Aws::Utils::DateTime &&value)
const Aws::Map< Aws::String, long long > & GetGroupWeights() const
ScheduledSplit & AddGroupWeights(Aws::String &&key, long long value)
void SetSegmentOverrides(Aws::Vector< SegmentOverride > &&value)
ScheduledSplit & WithStartTime(Aws::Utils::DateTime &&value)
ScheduledSplit & WithSegmentOverrides(const Aws::Vector< SegmentOverride > &value)
AWS_CLOUDWATCHEVIDENTLY_API ScheduledSplit()
void SetGroupWeights(const Aws::Map< Aws::String, long long > &value)
ScheduledSplit & WithStartTime(const Aws::Utils::DateTime &value)
ScheduledSplit & AddSegmentOverrides(SegmentOverride &&value)
AWS_CLOUDWATCHEVIDENTLY_API ScheduledSplit(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHEVIDENTLY_API ScheduledSplit & operator=(Aws::Utils::Json::JsonView jsonValue)
ScheduledSplit & WithSegmentOverrides(Aws::Vector< SegmentOverride > &&value)
ScheduledSplit & AddGroupWeights(const char *key, long long value)
AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() 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
Aws::Utils::Json::JsonValue JsonValue