AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
52 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
53 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
54 inline Segment& WithArn(const Aws::String& value) { SetArn(value); return *this;}
55 inline Segment& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
56 inline Segment& WithArn(const char* value) { SetArn(value); return *this;}
58
60
63 inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; }
64 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
65 inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; }
66 inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); }
67 inline Segment& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;}
68 inline Segment& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;}
70
72
75 inline const Aws::String& GetDescription() const{ return m_description; }
76 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
77 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
78 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
79 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
80 inline Segment& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
81 inline Segment& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
82 inline Segment& WithDescription(const char* value) { SetDescription(value); return *this;}
84
86
90 inline long long GetExperimentCount() const{ return m_experimentCount; }
91 inline bool ExperimentCountHasBeenSet() const { return m_experimentCountHasBeenSet; }
92 inline void SetExperimentCount(long long value) { m_experimentCountHasBeenSet = true; m_experimentCount = value; }
93 inline Segment& WithExperimentCount(long long value) { SetExperimentCount(value); return *this;}
95
97
100 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
101 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
102 inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
103 inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); }
104 inline Segment& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;}
105 inline Segment& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;}
107
109
113 inline long long GetLaunchCount() const{ return m_launchCount; }
114 inline bool LaunchCountHasBeenSet() const { return m_launchCountHasBeenSet; }
115 inline void SetLaunchCount(long long value) { m_launchCountHasBeenSet = true; m_launchCount = value; }
116 inline Segment& WithLaunchCount(long long value) { SetLaunchCount(value); return *this;}
118
120
123 inline const Aws::String& GetName() const{ return m_name; }
124 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
125 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
126 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
127 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
128 inline Segment& WithName(const Aws::String& value) { SetName(value); return *this;}
129 inline Segment& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
130 inline Segment& WithName(const char* value) { SetName(value); return *this;}
132
134
141 inline const Aws::String& GetPattern() const{ return m_pattern; }
142 inline bool PatternHasBeenSet() const { return m_patternHasBeenSet; }
143 inline void SetPattern(const Aws::String& value) { m_patternHasBeenSet = true; m_pattern = value; }
144 inline void SetPattern(Aws::String&& value) { m_patternHasBeenSet = true; m_pattern = std::move(value); }
145 inline void SetPattern(const char* value) { m_patternHasBeenSet = true; m_pattern.assign(value); }
146 inline Segment& WithPattern(const Aws::String& value) { SetPattern(value); return *this;}
147 inline Segment& WithPattern(Aws::String&& value) { SetPattern(std::move(value)); return *this;}
148 inline Segment& WithPattern(const char* value) { SetPattern(value); return *this;}
150
152
155 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
156 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
157 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
158 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
159 inline Segment& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
160 inline Segment& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
161 inline Segment& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
162 inline Segment& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
163 inline Segment& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
164 inline Segment& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
165 inline Segment& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
166 inline Segment& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
167 inline Segment& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
169 private:
170
171 Aws::String m_arn;
172 bool m_arnHasBeenSet = false;
173
174 Aws::Utils::DateTime m_createdTime;
175 bool m_createdTimeHasBeenSet = false;
176
177 Aws::String m_description;
178 bool m_descriptionHasBeenSet = false;
179
180 long long m_experimentCount;
181 bool m_experimentCountHasBeenSet = false;
182
183 Aws::Utils::DateTime m_lastUpdatedTime;
184 bool m_lastUpdatedTimeHasBeenSet = false;
185
186 long long m_launchCount;
187 bool m_launchCountHasBeenSet = false;
188
189 Aws::String m_name;
190 bool m_nameHasBeenSet = false;
191
192 Aws::String m_pattern;
193 bool m_patternHasBeenSet = false;
194
196 bool m_tagsHasBeenSet = false;
197 };
198
199} // namespace Model
200} // namespace CloudWatchEvidently
201} // namespace Aws
const Aws::String & GetPattern() const
Definition Segment.h:141
void SetLastUpdatedTime(Aws::Utils::DateTime &&value)
Definition Segment.h:103
Segment & WithArn(Aws::String &&value)
Definition Segment.h:55
void SetLastUpdatedTime(const Aws::Utils::DateTime &value)
Definition Segment.h:102
Segment & WithDescription(const char *value)
Definition Segment.h:82
AWS_CLOUDWATCHEVIDENTLY_API Segment()
void SetArn(const Aws::String &value)
Definition Segment.h:51
void SetPattern(Aws::String &&value)
Definition Segment.h:144
void SetName(Aws::String &&value)
Definition Segment.h:126
Segment & WithArn(const char *value)
Definition Segment.h:56
Segment & WithCreatedTime(const Aws::Utils::DateTime &value)
Definition Segment.h:67
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Segment.h:157
void SetDescription(Aws::String &&value)
Definition Segment.h:78
AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetArn(Aws::String &&value)
Definition Segment.h:52
Segment & AddTags(Aws::String &&key, Aws::String &&value)
Definition Segment.h:164
void SetPattern(const char *value)
Definition Segment.h:145
const Aws::Utils::DateTime & GetCreatedTime() const
Definition Segment.h:63
Segment & WithLastUpdatedTime(const Aws::Utils::DateTime &value)
Definition Segment.h:104
Segment & WithLaunchCount(long long value)
Definition Segment.h:116
Segment & WithName(const char *value)
Definition Segment.h:130
Segment & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Segment.h:159
void SetExperimentCount(long long value)
Definition Segment.h:92
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Segment.h:158
const Aws::String & GetName() const
Definition Segment.h:123
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Segment.h:155
const Aws::String & GetDescription() const
Definition Segment.h:75
Segment & WithCreatedTime(Aws::Utils::DateTime &&value)
Definition Segment.h:68
void SetCreatedTime(Aws::Utils::DateTime &&value)
Definition Segment.h:66
Segment & AddTags(Aws::String &&key, const char *value)
Definition Segment.h:166
Segment & WithName(Aws::String &&value)
Definition Segment.h:129
void SetDescription(const Aws::String &value)
Definition Segment.h:77
Segment & WithArn(const Aws::String &value)
Definition Segment.h:54
void SetDescription(const char *value)
Definition Segment.h:79
AWS_CLOUDWATCHEVIDENTLY_API Segment(Aws::Utils::Json::JsonView jsonValue)
Segment & WithPattern(Aws::String &&value)
Definition Segment.h:147
Segment & AddTags(Aws::String &&key, const Aws::String &value)
Definition Segment.h:162
Segment & WithExperimentCount(long long value)
Definition Segment.h:93
Segment & WithLastUpdatedTime(Aws::Utils::DateTime &&value)
Definition Segment.h:105
Segment & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Segment.h:160
void SetPattern(const Aws::String &value)
Definition Segment.h:143
Segment & AddTags(const char *key, Aws::String &&value)
Definition Segment.h:165
Segment & WithPattern(const char *value)
Definition Segment.h:148
void SetName(const char *value)
Definition Segment.h:127
void SetName(const Aws::String &value)
Definition Segment.h:125
const Aws::String & GetArn() const
Definition Segment.h:49
AWS_CLOUDWATCHEVIDENTLY_API Segment & operator=(Aws::Utils::Json::JsonView jsonValue)
Segment & WithPattern(const Aws::String &value)
Definition Segment.h:146
Segment & AddTags(const Aws::String &key, Aws::String &&value)
Definition Segment.h:163
Segment & AddTags(const Aws::String &key, const Aws::String &value)
Definition Segment.h:161
void SetCreatedTime(const Aws::Utils::DateTime &value)
Definition Segment.h:65
void SetLaunchCount(long long value)
Definition Segment.h:115
void SetArn(const char *value)
Definition Segment.h:53
Segment & WithDescription(const Aws::String &value)
Definition Segment.h:80
const Aws::Utils::DateTime & GetLastUpdatedTime() const
Definition Segment.h:100
Segment & WithDescription(Aws::String &&value)
Definition Segment.h:81
Segment & WithName(const Aws::String &value)
Definition Segment.h:128
Segment & AddTags(const char *key, const char *value)
Definition Segment.h:167
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