AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Segment.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/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CloudWatchEvidently
24{
25namespace Model
26{
27
36 class Segment
37 {
38 public:
39 AWS_CLOUDWATCHEVIDENTLY_API Segment() = default;
40 AWS_CLOUDWATCHEVIDENTLY_API Segment(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CLOUDWATCHEVIDENTLY_API Segment& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetArn() const { return m_arn; }
50 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
51 template<typename ArnT = Aws::String>
52 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
53 template<typename ArnT = Aws::String>
54 Segment& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
56
58
61 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
62 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
63 template<typename CreatedTimeT = Aws::Utils::DateTime>
64 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
65 template<typename CreatedTimeT = Aws::Utils::DateTime>
66 Segment& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
68
70
73 inline const Aws::String& GetDescription() const { return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 template<typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
77 template<typename DescriptionT = Aws::String>
78 Segment& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
80
82
86 inline long long GetExperimentCount() const { return m_experimentCount; }
87 inline bool ExperimentCountHasBeenSet() const { return m_experimentCountHasBeenSet; }
88 inline void SetExperimentCount(long long value) { m_experimentCountHasBeenSet = true; m_experimentCount = value; }
89 inline Segment& WithExperimentCount(long long value) { SetExperimentCount(value); return *this;}
91
93
96 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
97 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
98 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
99 void SetLastUpdatedTime(LastUpdatedTimeT&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value); }
100 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
101 Segment& WithLastUpdatedTime(LastUpdatedTimeT&& value) { SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value)); return *this;}
103
105
109 inline long long GetLaunchCount() const { return m_launchCount; }
110 inline bool LaunchCountHasBeenSet() const { return m_launchCountHasBeenSet; }
111 inline void SetLaunchCount(long long value) { m_launchCountHasBeenSet = true; m_launchCount = value; }
112 inline Segment& WithLaunchCount(long long value) { SetLaunchCount(value); return *this;}
114
116
119 inline const Aws::String& GetName() const { return m_name; }
120 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
121 template<typename NameT = Aws::String>
122 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
123 template<typename NameT = Aws::String>
124 Segment& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
126
128
135 inline const Aws::String& GetPattern() const { return m_pattern; }
136 inline bool PatternHasBeenSet() const { return m_patternHasBeenSet; }
137 template<typename PatternT = Aws::String>
138 void SetPattern(PatternT&& value) { m_patternHasBeenSet = true; m_pattern = std::forward<PatternT>(value); }
139 template<typename PatternT = Aws::String>
140 Segment& WithPattern(PatternT&& value) { SetPattern(std::forward<PatternT>(value)); return *this;}
142
144
147 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
148 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
149 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
150 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
151 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
152 Segment& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
153 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
154 Segment& AddTags(TagsKeyT&& key, TagsValueT&& value) {
155 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
156 }
158 private:
159
160 Aws::String m_arn;
161 bool m_arnHasBeenSet = false;
162
163 Aws::Utils::DateTime m_createdTime{};
164 bool m_createdTimeHasBeenSet = false;
165
166 Aws::String m_description;
167 bool m_descriptionHasBeenSet = false;
168
169 long long m_experimentCount{0};
170 bool m_experimentCountHasBeenSet = false;
171
172 Aws::Utils::DateTime m_lastUpdatedTime{};
173 bool m_lastUpdatedTimeHasBeenSet = false;
174
175 long long m_launchCount{0};
176 bool m_launchCountHasBeenSet = false;
177
178 Aws::String m_name;
179 bool m_nameHasBeenSet = false;
180
181 Aws::String m_pattern;
182 bool m_patternHasBeenSet = false;
183
185 bool m_tagsHasBeenSet = false;
186 };
187
188} // namespace Model
189} // namespace CloudWatchEvidently
190} // namespace Aws
const Aws::String & GetPattern() const
Definition Segment.h:135
Segment & WithTags(TagsT &&value)
Definition Segment.h:152
Segment & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Segment.h:154
Segment & WithCreatedTime(CreatedTimeT &&value)
Definition Segment.h:66
AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetCreatedTime() const
Definition Segment.h:61
Segment & WithLaunchCount(long long value)
Definition Segment.h:112
void SetCreatedTime(CreatedTimeT &&value)
Definition Segment.h:64
Segment & WithPattern(PatternT &&value)
Definition Segment.h:140
void SetExperimentCount(long long value)
Definition Segment.h:88
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
Definition Segment.h:99
Segment & WithDescription(DescriptionT &&value)
Definition Segment.h:78
const Aws::String & GetName() const
Definition Segment.h:119
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Segment.h:147
const Aws::String & GetDescription() const
Definition Segment.h:73
AWS_CLOUDWATCHEVIDENTLY_API Segment(Aws::Utils::Json::JsonView jsonValue)
Segment & WithLastUpdatedTime(LastUpdatedTimeT &&value)
Definition Segment.h:101
AWS_CLOUDWATCHEVIDENTLY_API Segment()=default
Segment & WithExperimentCount(long long value)
Definition Segment.h:89
const Aws::String & GetArn() const
Definition Segment.h:49
AWS_CLOUDWATCHEVIDENTLY_API Segment & operator=(Aws::Utils::Json::JsonView jsonValue)
Segment & WithArn(ArnT &&value)
Definition Segment.h:54
Segment & WithName(NameT &&value)
Definition Segment.h:124
void SetLaunchCount(long long value)
Definition Segment.h:111
void SetPattern(PatternT &&value)
Definition Segment.h:138
void SetDescription(DescriptionT &&value)
Definition Segment.h:76
const Aws::Utils::DateTime & GetLastUpdatedTime() const
Definition Segment.h:96
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