AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
WorkspaceSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/grafana/ManagedGrafana_EXPORTS.h>
12#include <aws/grafana/model/AuthenticationSummary.h>
13#include <aws/grafana/model/LicenseType.h>
14#include <aws/grafana/model/NotificationDestinationType.h>
15#include <aws/grafana/model/WorkspaceStatus.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace ManagedGrafana {
27namespace Model {
28
36 public:
37 AWS_MANAGEDGRAFANA_API WorkspaceSummary() = default;
38 AWS_MANAGEDGRAFANA_API WorkspaceSummary(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MANAGEDGRAFANA_API WorkspaceSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MANAGEDGRAFANA_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::Utils::DateTime& GetCreated() const { return m_created; }
47 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
48 template <typename CreatedT = Aws::Utils::DateTime>
49 void SetCreated(CreatedT&& value) {
50 m_createdHasBeenSet = true;
51 m_created = std::forward<CreatedT>(value);
52 }
53 template <typename CreatedT = Aws::Utils::DateTime>
54 WorkspaceSummary& WithCreated(CreatedT&& value) {
55 SetCreated(std::forward<CreatedT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetDescription() const { return m_description; }
65 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
66 template <typename DescriptionT = Aws::String>
67 void SetDescription(DescriptionT&& value) {
68 m_descriptionHasBeenSet = true;
69 m_description = std::forward<DescriptionT>(value);
70 }
71 template <typename DescriptionT = Aws::String>
72 WorkspaceSummary& WithDescription(DescriptionT&& value) {
73 SetDescription(std::forward<DescriptionT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetEndpoint() const { return m_endpoint; }
83 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
84 template <typename EndpointT = Aws::String>
85 void SetEndpoint(EndpointT&& value) {
86 m_endpointHasBeenSet = true;
87 m_endpoint = std::forward<EndpointT>(value);
88 }
89 template <typename EndpointT = Aws::String>
90 WorkspaceSummary& WithEndpoint(EndpointT&& value) {
91 SetEndpoint(std::forward<EndpointT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetGrafanaVersion() const { return m_grafanaVersion; }
101 inline bool GrafanaVersionHasBeenSet() const { return m_grafanaVersionHasBeenSet; }
102 template <typename GrafanaVersionT = Aws::String>
103 void SetGrafanaVersion(GrafanaVersionT&& value) {
104 m_grafanaVersionHasBeenSet = true;
105 m_grafanaVersion = std::forward<GrafanaVersionT>(value);
106 }
107 template <typename GrafanaVersionT = Aws::String>
108 WorkspaceSummary& WithGrafanaVersion(GrafanaVersionT&& value) {
109 SetGrafanaVersion(std::forward<GrafanaVersionT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetId() const { return m_id; }
119 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
120 template <typename IdT = Aws::String>
121 void SetId(IdT&& value) {
122 m_idHasBeenSet = true;
123 m_id = std::forward<IdT>(value);
124 }
125 template <typename IdT = Aws::String>
126 WorkspaceSummary& WithId(IdT&& value) {
127 SetId(std::forward<IdT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::Utils::DateTime& GetModified() const { return m_modified; }
137 inline bool ModifiedHasBeenSet() const { return m_modifiedHasBeenSet; }
138 template <typename ModifiedT = Aws::Utils::DateTime>
139 void SetModified(ModifiedT&& value) {
140 m_modifiedHasBeenSet = true;
141 m_modified = std::forward<ModifiedT>(value);
142 }
143 template <typename ModifiedT = Aws::Utils::DateTime>
144 WorkspaceSummary& WithModified(ModifiedT&& value) {
145 SetModified(std::forward<ModifiedT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::String& GetName() const { return m_name; }
155 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
156 template <typename NameT = Aws::String>
157 void SetName(NameT&& value) {
158 m_nameHasBeenSet = true;
159 m_name = std::forward<NameT>(value);
160 }
161 template <typename NameT = Aws::String>
162 WorkspaceSummary& WithName(NameT&& value) {
163 SetName(std::forward<NameT>(value));
164 return *this;
165 }
167
169
174 inline const Aws::Vector<NotificationDestinationType>& GetNotificationDestinations() const { return m_notificationDestinations; }
175 inline bool NotificationDestinationsHasBeenSet() const { return m_notificationDestinationsHasBeenSet; }
176 template <typename NotificationDestinationsT = Aws::Vector<NotificationDestinationType>>
177 void SetNotificationDestinations(NotificationDestinationsT&& value) {
178 m_notificationDestinationsHasBeenSet = true;
179 m_notificationDestinations = std::forward<NotificationDestinationsT>(value);
180 }
181 template <typename NotificationDestinationsT = Aws::Vector<NotificationDestinationType>>
182 WorkspaceSummary& WithNotificationDestinations(NotificationDestinationsT&& value) {
183 SetNotificationDestinations(std::forward<NotificationDestinationsT>(value));
184 return *this;
185 }
187 m_notificationDestinationsHasBeenSet = true;
188 m_notificationDestinations.push_back(value);
189 return *this;
190 }
192
194
197 inline WorkspaceStatus GetStatus() const { return m_status; }
198 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
199 inline void SetStatus(WorkspaceStatus value) {
200 m_statusHasBeenSet = true;
201 m_status = value;
202 }
204 SetStatus(value);
205 return *this;
206 }
208
210
214 inline const AuthenticationSummary& GetAuthentication() const { return m_authentication; }
215 inline bool AuthenticationHasBeenSet() const { return m_authenticationHasBeenSet; }
216 template <typename AuthenticationT = AuthenticationSummary>
217 void SetAuthentication(AuthenticationT&& value) {
218 m_authenticationHasBeenSet = true;
219 m_authentication = std::forward<AuthenticationT>(value);
220 }
221 template <typename AuthenticationT = AuthenticationSummary>
222 WorkspaceSummary& WithAuthentication(AuthenticationT&& value) {
223 SetAuthentication(std::forward<AuthenticationT>(value));
224 return *this;
225 }
227
229
232 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
233 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
234 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
235 void SetTags(TagsT&& value) {
236 m_tagsHasBeenSet = true;
237 m_tags = std::forward<TagsT>(value);
238 }
239 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
240 WorkspaceSummary& WithTags(TagsT&& value) {
241 SetTags(std::forward<TagsT>(value));
242 return *this;
243 }
244 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
245 WorkspaceSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
246 m_tagsHasBeenSet = true;
247 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
248 return *this;
249 }
251
253
258 inline LicenseType GetLicenseType() const { return m_licenseType; }
259 inline bool LicenseTypeHasBeenSet() const { return m_licenseTypeHasBeenSet; }
260 inline void SetLicenseType(LicenseType value) {
261 m_licenseTypeHasBeenSet = true;
262 m_licenseType = value;
263 }
265 SetLicenseType(value);
266 return *this;
267 }
269
271
277 inline const Aws::String& GetGrafanaToken() const { return m_grafanaToken; }
278 inline bool GrafanaTokenHasBeenSet() const { return m_grafanaTokenHasBeenSet; }
279 template <typename GrafanaTokenT = Aws::String>
280 void SetGrafanaToken(GrafanaTokenT&& value) {
281 m_grafanaTokenHasBeenSet = true;
282 m_grafanaToken = std::forward<GrafanaTokenT>(value);
283 }
284 template <typename GrafanaTokenT = Aws::String>
285 WorkspaceSummary& WithGrafanaToken(GrafanaTokenT&& value) {
286 SetGrafanaToken(std::forward<GrafanaTokenT>(value));
287 return *this;
288 }
290 private:
291 Aws::Utils::DateTime m_created{};
292
293 Aws::String m_description;
294
295 Aws::String m_endpoint;
296
297 Aws::String m_grafanaVersion;
298
299 Aws::String m_id;
300
301 Aws::Utils::DateTime m_modified{};
302
303 Aws::String m_name;
304
305 Aws::Vector<NotificationDestinationType> m_notificationDestinations;
306
308
309 AuthenticationSummary m_authentication;
310
312
313 LicenseType m_licenseType{LicenseType::NOT_SET};
314
315 Aws::String m_grafanaToken;
316 bool m_createdHasBeenSet = false;
317 bool m_descriptionHasBeenSet = false;
318 bool m_endpointHasBeenSet = false;
319 bool m_grafanaVersionHasBeenSet = false;
320 bool m_idHasBeenSet = false;
321 bool m_modifiedHasBeenSet = false;
322 bool m_nameHasBeenSet = false;
323 bool m_notificationDestinationsHasBeenSet = false;
324 bool m_statusHasBeenSet = false;
325 bool m_authenticationHasBeenSet = false;
326 bool m_tagsHasBeenSet = false;
327 bool m_licenseTypeHasBeenSet = false;
328 bool m_grafanaTokenHasBeenSet = false;
329};
330
331} // namespace Model
332} // namespace ManagedGrafana
333} // namespace Aws
WorkspaceSummary & AddNotificationDestinations(NotificationDestinationType value)
void SetAuthentication(AuthenticationT &&value)
WorkspaceSummary & WithName(NameT &&value)
void SetGrafanaVersion(GrafanaVersionT &&value)
WorkspaceSummary & WithModified(ModifiedT &&value)
WorkspaceSummary & WithGrafanaToken(GrafanaTokenT &&value)
const Aws::Vector< NotificationDestinationType > & GetNotificationDestinations() const
const Aws::Utils::DateTime & GetCreated() const
WorkspaceSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_MANAGEDGRAFANA_API WorkspaceSummary(Aws::Utils::Json::JsonView jsonValue)
WorkspaceSummary & WithNotificationDestinations(NotificationDestinationsT &&value)
void SetNotificationDestinations(NotificationDestinationsT &&value)
AWS_MANAGEDGRAFANA_API WorkspaceSummary()=default
WorkspaceSummary & WithEndpoint(EndpointT &&value)
AWS_MANAGEDGRAFANA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MANAGEDGRAFANA_API WorkspaceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetModified() const
WorkspaceSummary & WithGrafanaVersion(GrafanaVersionT &&value)
WorkspaceSummary & WithLicenseType(LicenseType value)
const AuthenticationSummary & GetAuthentication() const
WorkspaceSummary & WithAuthentication(AuthenticationT &&value)
WorkspaceSummary & WithCreated(CreatedT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
WorkspaceSummary & WithDescription(DescriptionT &&value)
WorkspaceSummary & WithTags(TagsT &&value)
WorkspaceSummary & WithStatus(WorkspaceStatus value)
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