AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
View.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/connect/model/ViewStatus.h>
10#include <aws/connect/model/ViewType.h>
11#include <aws/connect/model/ViewContent.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/DateTime.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Connect
27{
28namespace Model
29{
30
37 class View
38 {
39 public:
40 AWS_CONNECT_API View();
41 AWS_CONNECT_API View(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CONNECT_API View& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetId() const{ return m_id; }
51 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
52 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
53 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
54 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
55 inline View& WithId(const Aws::String& value) { SetId(value); return *this;}
56 inline View& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
57 inline View& WithId(const char* value) { SetId(value); return *this;}
59
61
64 inline const Aws::String& GetArn() const{ return m_arn; }
65 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
66 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
67 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
68 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
69 inline View& WithArn(const Aws::String& value) { SetArn(value); return *this;}
70 inline View& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
71 inline View& WithArn(const char* value) { SetArn(value); return *this;}
73
75
78 inline const Aws::String& GetName() const{ return m_name; }
79 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
80 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
81 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
82 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
83 inline View& WithName(const Aws::String& value) { SetName(value); return *this;}
84 inline View& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
85 inline View& WithName(const char* value) { SetName(value); return *this;}
87
89
94 inline const ViewStatus& GetStatus() const{ return m_status; }
95 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
96 inline void SetStatus(const ViewStatus& value) { m_statusHasBeenSet = true; m_status = value; }
97 inline void SetStatus(ViewStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
98 inline View& WithStatus(const ViewStatus& value) { SetStatus(value); return *this;}
99 inline View& WithStatus(ViewStatus&& value) { SetStatus(std::move(value)); return *this;}
101
103
106 inline const ViewType& GetType() const{ return m_type; }
107 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
108 inline void SetType(const ViewType& value) { m_typeHasBeenSet = true; m_type = value; }
109 inline void SetType(ViewType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
110 inline View& WithType(const ViewType& value) { SetType(value); return *this;}
111 inline View& WithType(ViewType&& value) { SetType(std::move(value)); return *this;}
113
115
118 inline const Aws::String& GetDescription() const{ return m_description; }
119 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
120 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
121 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
122 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
123 inline View& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
124 inline View& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
125 inline View& WithDescription(const char* value) { SetDescription(value); return *this;}
127
129
132 inline int GetVersion() const{ return m_version; }
133 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
134 inline void SetVersion(int value) { m_versionHasBeenSet = true; m_version = value; }
135 inline View& WithVersion(int value) { SetVersion(value); return *this;}
137
139
142 inline const Aws::String& GetVersionDescription() const{ return m_versionDescription; }
143 inline bool VersionDescriptionHasBeenSet() const { return m_versionDescriptionHasBeenSet; }
144 inline void SetVersionDescription(const Aws::String& value) { m_versionDescriptionHasBeenSet = true; m_versionDescription = value; }
145 inline void SetVersionDescription(Aws::String&& value) { m_versionDescriptionHasBeenSet = true; m_versionDescription = std::move(value); }
146 inline void SetVersionDescription(const char* value) { m_versionDescriptionHasBeenSet = true; m_versionDescription.assign(value); }
147 inline View& WithVersionDescription(const Aws::String& value) { SetVersionDescription(value); return *this;}
148 inline View& WithVersionDescription(Aws::String&& value) { SetVersionDescription(std::move(value)); return *this;}
149 inline View& WithVersionDescription(const char* value) { SetVersionDescription(value); return *this;}
151
153
157 inline const ViewContent& GetContent() const{ return m_content; }
158 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
159 inline void SetContent(const ViewContent& value) { m_contentHasBeenSet = true; m_content = value; }
160 inline void SetContent(ViewContent&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
161 inline View& WithContent(const ViewContent& value) { SetContent(value); return *this;}
162 inline View& WithContent(ViewContent&& value) { SetContent(std::move(value)); return *this;}
164
166
170 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
171 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
172 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
173 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
174 inline View& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
175 inline View& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
176 inline View& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
177 inline View& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
178 inline View& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
179 inline View& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
180 inline View& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
181 inline View& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
182 inline View& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
184
186
189 inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; }
190 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
191 inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; }
192 inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); }
193 inline View& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;}
194 inline View& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;}
196
198
202 inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
203 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
204 inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
205 inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
206 inline View& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;}
207 inline View& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
209
211
214 inline const Aws::String& GetViewContentSha256() const{ return m_viewContentSha256; }
215 inline bool ViewContentSha256HasBeenSet() const { return m_viewContentSha256HasBeenSet; }
216 inline void SetViewContentSha256(const Aws::String& value) { m_viewContentSha256HasBeenSet = true; m_viewContentSha256 = value; }
217 inline void SetViewContentSha256(Aws::String&& value) { m_viewContentSha256HasBeenSet = true; m_viewContentSha256 = std::move(value); }
218 inline void SetViewContentSha256(const char* value) { m_viewContentSha256HasBeenSet = true; m_viewContentSha256.assign(value); }
219 inline View& WithViewContentSha256(const Aws::String& value) { SetViewContentSha256(value); return *this;}
220 inline View& WithViewContentSha256(Aws::String&& value) { SetViewContentSha256(std::move(value)); return *this;}
221 inline View& WithViewContentSha256(const char* value) { SetViewContentSha256(value); return *this;}
223 private:
224
225 Aws::String m_id;
226 bool m_idHasBeenSet = false;
227
228 Aws::String m_arn;
229 bool m_arnHasBeenSet = false;
230
231 Aws::String m_name;
232 bool m_nameHasBeenSet = false;
233
234 ViewStatus m_status;
235 bool m_statusHasBeenSet = false;
236
237 ViewType m_type;
238 bool m_typeHasBeenSet = false;
239
240 Aws::String m_description;
241 bool m_descriptionHasBeenSet = false;
242
243 int m_version;
244 bool m_versionHasBeenSet = false;
245
246 Aws::String m_versionDescription;
247 bool m_versionDescriptionHasBeenSet = false;
248
249 ViewContent m_content;
250 bool m_contentHasBeenSet = false;
251
253 bool m_tagsHasBeenSet = false;
254
255 Aws::Utils::DateTime m_createdTime;
256 bool m_createdTimeHasBeenSet = false;
257
258 Aws::Utils::DateTime m_lastModifiedTime;
259 bool m_lastModifiedTimeHasBeenSet = false;
260
261 Aws::String m_viewContentSha256;
262 bool m_viewContentSha256HasBeenSet = false;
263 };
264
265} // namespace Model
266} // namespace Connect
267} // namespace Aws
View & WithVersionDescription(const char *value)
Definition View.h:149
bool ArnHasBeenSet() const
Definition View.h:65
View & WithContent(const ViewContent &value)
Definition View.h:161
void SetId(const char *value)
Definition View.h:54
bool ContentHasBeenSet() const
Definition View.h:158
void SetName(Aws::String &&value)
Definition View.h:81
void SetViewContentSha256(const char *value)
Definition View.h:218
View & WithArn(const char *value)
Definition View.h:71
AWS_CONNECT_API View(Aws::Utils::Json::JsonView jsonValue)
void SetName(const Aws::String &value)
Definition View.h:80
View & WithType(ViewType &&value)
Definition View.h:111
View & WithStatus(ViewStatus &&value)
Definition View.h:99
bool IdHasBeenSet() const
Definition View.h:51
View & WithVersionDescription(Aws::String &&value)
Definition View.h:148
View & AddTags(const char *key, Aws::String &&value)
Definition View.h:180
void SetDescription(const char *value)
Definition View.h:122
bool StatusHasBeenSet() const
Definition View.h:95
void SetVersionDescription(Aws::String &&value)
Definition View.h:145
View & WithDescription(Aws::String &&value)
Definition View.h:124
View & WithLastModifiedTime(const Aws::Utils::DateTime &value)
Definition View.h:206
View & WithName(const Aws::String &value)
Definition View.h:83
const Aws::String & GetName() const
Definition View.h:78
void SetName(const char *value)
Definition View.h:82
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition View.h:202
View & WithCreatedTime(const Aws::Utils::DateTime &value)
Definition View.h:193
View & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition View.h:174
const Aws::String & GetId() const
Definition View.h:50
View & AddTags(Aws::String &&key, Aws::String &&value)
Definition View.h:179
const Aws::String & GetVersionDescription() const
Definition View.h:142
View & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition View.h:175
View & WithStatus(const ViewStatus &value)
Definition View.h:98
bool VersionDescriptionHasBeenSet() const
Definition View.h:143
View & AddTags(const Aws::String &key, Aws::String &&value)
Definition View.h:178
View & WithArn(const Aws::String &value)
Definition View.h:69
View & WithName(Aws::String &&value)
Definition View.h:84
View & WithId(const char *value)
Definition View.h:57
bool TypeHasBeenSet() const
Definition View.h:107
void SetStatus(const ViewStatus &value)
Definition View.h:96
bool TagsHasBeenSet() const
Definition View.h:171
void SetId(Aws::String &&value)
Definition View.h:53
void SetType(ViewType &&value)
Definition View.h:109
const ViewStatus & GetStatus() const
Definition View.h:94
bool ViewContentSha256HasBeenSet() const
Definition View.h:215
View & WithCreatedTime(Aws::Utils::DateTime &&value)
Definition View.h:194
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
Definition View.h:205
View & AddTags(const Aws::String &key, const Aws::String &value)
Definition View.h:176
void SetCreatedTime(Aws::Utils::DateTime &&value)
Definition View.h:192
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition View.h:170
void SetContent(ViewContent &&value)
Definition View.h:160
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition View.h:172
const Aws::String & GetArn() const
Definition View.h:64
View & WithId(Aws::String &&value)
Definition View.h:56
int GetVersion() const
Definition View.h:132
bool CreatedTimeHasBeenSet() const
Definition View.h:190
void SetCreatedTime(const Aws::Utils::DateTime &value)
Definition View.h:191
void SetVersion(int value)
Definition View.h:134
View & WithViewContentSha256(const Aws::String &value)
Definition View.h:219
void SetArn(const Aws::String &value)
Definition View.h:66
void SetArn(Aws::String &&value)
Definition View.h:67
View & WithViewContentSha256(const char *value)
Definition View.h:221
const ViewContent & GetContent() const
Definition View.h:157
AWS_CONNECT_API View()
void SetVersionDescription(const Aws::String &value)
Definition View.h:144
View & WithId(const Aws::String &value)
Definition View.h:55
void SetDescription(Aws::String &&value)
Definition View.h:121
const Aws::Utils::DateTime & GetCreatedTime() const
Definition View.h:189
bool DescriptionHasBeenSet() const
Definition View.h:119
View & WithDescription(const char *value)
Definition View.h:125
View & WithContent(ViewContent &&value)
Definition View.h:162
void SetId(const Aws::String &value)
Definition View.h:52
View & WithArn(Aws::String &&value)
Definition View.h:70
View & AddTags(const char *key, const char *value)
Definition View.h:182
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition View.h:173
View & WithName(const char *value)
Definition View.h:85
void SetVersionDescription(const char *value)
Definition View.h:146
void SetDescription(const Aws::String &value)
Definition View.h:120
View & WithDescription(const Aws::String &value)
Definition View.h:123
View & WithVersionDescription(const Aws::String &value)
Definition View.h:147
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(ViewStatus &&value)
Definition View.h:97
const ViewType & GetType() const
Definition View.h:106
AWS_CONNECT_API View & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetViewContentSha256(Aws::String &&value)
Definition View.h:217
View & WithViewContentSha256(Aws::String &&value)
Definition View.h:220
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
Definition View.h:204
const Aws::String & GetDescription() const
Definition View.h:118
View & AddTags(Aws::String &&key, const char *value)
Definition View.h:181
View & WithLastModifiedTime(Aws::Utils::DateTime &&value)
Definition View.h:207
View & AddTags(Aws::String &&key, const Aws::String &value)
Definition View.h:177
bool LastModifiedTimeHasBeenSet() const
Definition View.h:203
bool VersionHasBeenSet() const
Definition View.h:133
void SetContent(const ViewContent &value)
Definition View.h:159
void SetViewContentSha256(const Aws::String &value)
Definition View.h:216
void SetType(const ViewType &value)
Definition View.h:108
View & WithVersion(int value)
Definition View.h:135
View & WithType(const ViewType &value)
Definition View.h:110
bool NameHasBeenSet() const
Definition View.h:79
void SetArn(const char *value)
Definition View.h:68
const Aws::String & GetViewContentSha256() const
Definition View.h:214
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