AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
Workspace.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/Visibility.h>
9#include <aws/connect/model/WorkspaceTheme.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Connect {
24namespace Model {
25
32class Workspace {
33 public:
34 AWS_CONNECT_API Workspace() = default;
35 AWS_CONNECT_API Workspace(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CONNECT_API Workspace& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
45 inline Visibility GetVisibility() const { return m_visibility; }
46 inline bool VisibilityHasBeenSet() const { return m_visibilityHasBeenSet; }
47 inline void SetVisibility(Visibility value) {
48 m_visibilityHasBeenSet = true;
49 m_visibility = value;
50 }
52 SetVisibility(value);
53 return *this;
54 }
56
58
61 inline const Aws::String& GetId() const { return m_id; }
62 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
63 template <typename IdT = Aws::String>
64 void SetId(IdT&& value) {
65 m_idHasBeenSet = true;
66 m_id = std::forward<IdT>(value);
67 }
68 template <typename IdT = Aws::String>
69 Workspace& WithId(IdT&& value) {
70 SetId(std::forward<IdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetName() const { return m_name; }
80 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
81 template <typename NameT = Aws::String>
82 void SetName(NameT&& value) {
83 m_nameHasBeenSet = true;
84 m_name = std::forward<NameT>(value);
85 }
86 template <typename NameT = Aws::String>
87 Workspace& WithName(NameT&& value) {
88 SetName(std::forward<NameT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetArn() const { return m_arn; }
98 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
99 template <typename ArnT = Aws::String>
100 void SetArn(ArnT&& value) {
101 m_arnHasBeenSet = true;
102 m_arn = std::forward<ArnT>(value);
103 }
104 template <typename ArnT = Aws::String>
105 Workspace& WithArn(ArnT&& value) {
106 SetArn(std::forward<ArnT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetDescription() const { return m_description; }
116 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
117 template <typename DescriptionT = Aws::String>
118 void SetDescription(DescriptionT&& value) {
119 m_descriptionHasBeenSet = true;
120 m_description = std::forward<DescriptionT>(value);
121 }
122 template <typename DescriptionT = Aws::String>
123 Workspace& WithDescription(DescriptionT&& value) {
124 SetDescription(std::forward<DescriptionT>(value));
125 return *this;
126 }
128
130
133 inline const WorkspaceTheme& GetTheme() const { return m_theme; }
134 inline bool ThemeHasBeenSet() const { return m_themeHasBeenSet; }
135 template <typename ThemeT = WorkspaceTheme>
136 void SetTheme(ThemeT&& value) {
137 m_themeHasBeenSet = true;
138 m_theme = std::forward<ThemeT>(value);
139 }
140 template <typename ThemeT = WorkspaceTheme>
141 Workspace& WithTheme(ThemeT&& value) {
142 SetTheme(std::forward<ThemeT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::String& GetTitle() const { return m_title; }
152 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
153 template <typename TitleT = Aws::String>
154 void SetTitle(TitleT&& value) {
155 m_titleHasBeenSet = true;
156 m_title = std::forward<TitleT>(value);
157 }
158 template <typename TitleT = Aws::String>
159 Workspace& WithTitle(TitleT&& value) {
160 SetTitle(std::forward<TitleT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
170 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
171 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
172 void SetLastModifiedTime(LastModifiedTimeT&& value) {
173 m_lastModifiedTimeHasBeenSet = true;
174 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
175 }
176 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
177 Workspace& WithLastModifiedTime(LastModifiedTimeT&& value) {
178 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
179 return *this;
180 }
182
184
187 inline const Aws::String& GetLastModifiedRegion() const { return m_lastModifiedRegion; }
188 inline bool LastModifiedRegionHasBeenSet() const { return m_lastModifiedRegionHasBeenSet; }
189 template <typename LastModifiedRegionT = Aws::String>
190 void SetLastModifiedRegion(LastModifiedRegionT&& value) {
191 m_lastModifiedRegionHasBeenSet = true;
192 m_lastModifiedRegion = std::forward<LastModifiedRegionT>(value);
193 }
194 template <typename LastModifiedRegionT = Aws::String>
195 Workspace& WithLastModifiedRegion(LastModifiedRegionT&& value) {
196 SetLastModifiedRegion(std::forward<LastModifiedRegionT>(value));
197 return *this;
198 }
200
202
205 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
206 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
207 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
208 void SetTags(TagsT&& value) {
209 m_tagsHasBeenSet = true;
210 m_tags = std::forward<TagsT>(value);
211 }
212 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
213 Workspace& WithTags(TagsT&& value) {
214 SetTags(std::forward<TagsT>(value));
215 return *this;
216 }
217 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
218 Workspace& AddTags(TagsKeyT&& key, TagsValueT&& value) {
219 m_tagsHasBeenSet = true;
220 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
221 return *this;
222 }
224 private:
225 Visibility m_visibility{Visibility::NOT_SET};
226
227 Aws::String m_id;
228
229 Aws::String m_name;
230
231 Aws::String m_arn;
232
233 Aws::String m_description;
234
235 WorkspaceTheme m_theme;
236
237 Aws::String m_title;
238
239 Aws::Utils::DateTime m_lastModifiedTime{};
240
241 Aws::String m_lastModifiedRegion;
242
244 bool m_visibilityHasBeenSet = false;
245 bool m_idHasBeenSet = false;
246 bool m_nameHasBeenSet = false;
247 bool m_arnHasBeenSet = false;
248 bool m_descriptionHasBeenSet = false;
249 bool m_themeHasBeenSet = false;
250 bool m_titleHasBeenSet = false;
251 bool m_lastModifiedTimeHasBeenSet = false;
252 bool m_lastModifiedRegionHasBeenSet = false;
253 bool m_tagsHasBeenSet = false;
254};
255
256} // namespace Model
257} // namespace Connect
258} // namespace Aws
const Aws::String & GetTitle() const
Definition Workspace.h:151
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
Workspace & WithLastModifiedRegion(LastModifiedRegionT &&value)
Definition Workspace.h:195
Workspace & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Workspace.h:218
AWS_CONNECT_API Workspace()=default
Workspace & WithArn(ArnT &&value)
Definition Workspace.h:105
bool VisibilityHasBeenSet() const
Definition Workspace.h:46
void SetId(IdT &&value)
Definition Workspace.h:64
void SetArn(ArnT &&value)
Definition Workspace.h:100
Workspace & WithId(IdT &&value)
Definition Workspace.h:69
Workspace & WithTheme(ThemeT &&value)
Definition Workspace.h:141
Workspace & WithTags(TagsT &&value)
Definition Workspace.h:213
AWS_CONNECT_API Workspace & operator=(Aws::Utils::Json::JsonView jsonValue)
bool LastModifiedRegionHasBeenSet() const
Definition Workspace.h:188
Workspace & WithVisibility(Visibility value)
Definition Workspace.h:51
Visibility GetVisibility() const
Definition Workspace.h:45
void SetName(NameT &&value)
Definition Workspace.h:82
Workspace & WithTitle(TitleT &&value)
Definition Workspace.h:159
void SetLastModifiedTime(LastModifiedTimeT &&value)
Definition Workspace.h:172
const Aws::String & GetDescription() const
Definition Workspace.h:115
Workspace & WithLastModifiedTime(LastModifiedTimeT &&value)
Definition Workspace.h:177
const Aws::String & GetName() const
Definition Workspace.h:79
void SetTags(TagsT &&value)
Definition Workspace.h:208
bool LastModifiedTimeHasBeenSet() const
Definition Workspace.h:170
void SetTitle(TitleT &&value)
Definition Workspace.h:154
const Aws::String & GetArn() const
Definition Workspace.h:97
AWS_CONNECT_API Workspace(Aws::Utils::Json::JsonView jsonValue)
void SetLastModifiedRegion(LastModifiedRegionT &&value)
Definition Workspace.h:190
Workspace & WithName(NameT &&value)
Definition Workspace.h:87
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Workspace.h:205
const WorkspaceTheme & GetTheme() const
Definition Workspace.h:133
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition Workspace.h:169
void SetVisibility(Visibility value)
Definition Workspace.h:47
Workspace & WithDescription(DescriptionT &&value)
Definition Workspace.h:123
const Aws::String & GetId() const
Definition Workspace.h:61
void SetDescription(DescriptionT &&value)
Definition Workspace.h:118
void SetTheme(ThemeT &&value)
Definition Workspace.h:136
const Aws::String & GetLastModifiedRegion() const
Definition Workspace.h:187
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