AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WorkspaceSummary.h
1
6#pragma once
7#include <aws/grafana/ManagedGrafana_EXPORTS.h>
8#include <aws/grafana/model/AuthenticationSummary.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/grafana/model/LicenseType.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/grafana/model/WorkspaceStatus.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/grafana/model/NotificationDestinationType.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace ManagedGrafana
29{
30namespace Model
31{
32
40 {
41 public:
42 AWS_MANAGEDGRAFANA_API WorkspaceSummary();
43 AWS_MANAGEDGRAFANA_API WorkspaceSummary(Aws::Utils::Json::JsonView jsonValue);
44 AWS_MANAGEDGRAFANA_API WorkspaceSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_MANAGEDGRAFANA_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
53 inline const AuthenticationSummary& GetAuthentication() const{ return m_authentication; }
54 inline bool AuthenticationHasBeenSet() const { return m_authenticationHasBeenSet; }
55 inline void SetAuthentication(const AuthenticationSummary& value) { m_authenticationHasBeenSet = true; m_authentication = value; }
56 inline void SetAuthentication(AuthenticationSummary&& value) { m_authenticationHasBeenSet = true; m_authentication = std::move(value); }
57 inline WorkspaceSummary& WithAuthentication(const AuthenticationSummary& value) { SetAuthentication(value); return *this;}
58 inline WorkspaceSummary& WithAuthentication(AuthenticationSummary&& value) { SetAuthentication(std::move(value)); return *this;}
60
62
65 inline const Aws::Utils::DateTime& GetCreated() const{ return m_created; }
66 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
67 inline void SetCreated(const Aws::Utils::DateTime& value) { m_createdHasBeenSet = true; m_created = value; }
68 inline void SetCreated(Aws::Utils::DateTime&& value) { m_createdHasBeenSet = true; m_created = std::move(value); }
69 inline WorkspaceSummary& WithCreated(const Aws::Utils::DateTime& value) { SetCreated(value); return *this;}
70 inline WorkspaceSummary& WithCreated(Aws::Utils::DateTime&& value) { SetCreated(std::move(value)); return *this;}
72
74
77 inline const Aws::String& GetDescription() const{ return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
80 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
81 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
82 inline WorkspaceSummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
83 inline WorkspaceSummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
84 inline WorkspaceSummary& WithDescription(const char* value) { SetDescription(value); return *this;}
86
88
91 inline const Aws::String& GetEndpoint() const{ return m_endpoint; }
92 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
93 inline void SetEndpoint(const Aws::String& value) { m_endpointHasBeenSet = true; m_endpoint = value; }
94 inline void SetEndpoint(Aws::String&& value) { m_endpointHasBeenSet = true; m_endpoint = std::move(value); }
95 inline void SetEndpoint(const char* value) { m_endpointHasBeenSet = true; m_endpoint.assign(value); }
96 inline WorkspaceSummary& WithEndpoint(const Aws::String& value) { SetEndpoint(value); return *this;}
97 inline WorkspaceSummary& WithEndpoint(Aws::String&& value) { SetEndpoint(std::move(value)); return *this;}
98 inline WorkspaceSummary& WithEndpoint(const char* value) { SetEndpoint(value); return *this;}
100
102
108 inline const Aws::String& GetGrafanaToken() const{ return m_grafanaToken; }
109 inline bool GrafanaTokenHasBeenSet() const { return m_grafanaTokenHasBeenSet; }
110 inline void SetGrafanaToken(const Aws::String& value) { m_grafanaTokenHasBeenSet = true; m_grafanaToken = value; }
111 inline void SetGrafanaToken(Aws::String&& value) { m_grafanaTokenHasBeenSet = true; m_grafanaToken = std::move(value); }
112 inline void SetGrafanaToken(const char* value) { m_grafanaTokenHasBeenSet = true; m_grafanaToken.assign(value); }
113 inline WorkspaceSummary& WithGrafanaToken(const Aws::String& value) { SetGrafanaToken(value); return *this;}
114 inline WorkspaceSummary& WithGrafanaToken(Aws::String&& value) { SetGrafanaToken(std::move(value)); return *this;}
115 inline WorkspaceSummary& WithGrafanaToken(const char* value) { SetGrafanaToken(value); return *this;}
117
119
122 inline const Aws::String& GetGrafanaVersion() const{ return m_grafanaVersion; }
123 inline bool GrafanaVersionHasBeenSet() const { return m_grafanaVersionHasBeenSet; }
124 inline void SetGrafanaVersion(const Aws::String& value) { m_grafanaVersionHasBeenSet = true; m_grafanaVersion = value; }
125 inline void SetGrafanaVersion(Aws::String&& value) { m_grafanaVersionHasBeenSet = true; m_grafanaVersion = std::move(value); }
126 inline void SetGrafanaVersion(const char* value) { m_grafanaVersionHasBeenSet = true; m_grafanaVersion.assign(value); }
127 inline WorkspaceSummary& WithGrafanaVersion(const Aws::String& value) { SetGrafanaVersion(value); return *this;}
128 inline WorkspaceSummary& WithGrafanaVersion(Aws::String&& value) { SetGrafanaVersion(std::move(value)); return *this;}
129 inline WorkspaceSummary& WithGrafanaVersion(const char* value) { SetGrafanaVersion(value); return *this;}
131
133
136 inline const Aws::String& GetId() const{ return m_id; }
137 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
138 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
139 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
140 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
141 inline WorkspaceSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
142 inline WorkspaceSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
143 inline WorkspaceSummary& WithId(const char* value) { SetId(value); return *this;}
145
147
152 inline const LicenseType& GetLicenseType() const{ return m_licenseType; }
153 inline bool LicenseTypeHasBeenSet() const { return m_licenseTypeHasBeenSet; }
154 inline void SetLicenseType(const LicenseType& value) { m_licenseTypeHasBeenSet = true; m_licenseType = value; }
155 inline void SetLicenseType(LicenseType&& value) { m_licenseTypeHasBeenSet = true; m_licenseType = std::move(value); }
156 inline WorkspaceSummary& WithLicenseType(const LicenseType& value) { SetLicenseType(value); return *this;}
157 inline WorkspaceSummary& WithLicenseType(LicenseType&& value) { SetLicenseType(std::move(value)); return *this;}
159
161
164 inline const Aws::Utils::DateTime& GetModified() const{ return m_modified; }
165 inline bool ModifiedHasBeenSet() const { return m_modifiedHasBeenSet; }
166 inline void SetModified(const Aws::Utils::DateTime& value) { m_modifiedHasBeenSet = true; m_modified = value; }
167 inline void SetModified(Aws::Utils::DateTime&& value) { m_modifiedHasBeenSet = true; m_modified = std::move(value); }
168 inline WorkspaceSummary& WithModified(const Aws::Utils::DateTime& value) { SetModified(value); return *this;}
169 inline WorkspaceSummary& WithModified(Aws::Utils::DateTime&& value) { SetModified(std::move(value)); return *this;}
171
173
176 inline const Aws::String& GetName() const{ return m_name; }
177 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
178 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
179 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
180 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
181 inline WorkspaceSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
182 inline WorkspaceSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
183 inline WorkspaceSummary& WithName(const char* value) { SetName(value); return *this;}
185
187
192 inline const Aws::Vector<NotificationDestinationType>& GetNotificationDestinations() const{ return m_notificationDestinations; }
193 inline bool NotificationDestinationsHasBeenSet() const { return m_notificationDestinationsHasBeenSet; }
194 inline void SetNotificationDestinations(const Aws::Vector<NotificationDestinationType>& value) { m_notificationDestinationsHasBeenSet = true; m_notificationDestinations = value; }
195 inline void SetNotificationDestinations(Aws::Vector<NotificationDestinationType>&& value) { m_notificationDestinationsHasBeenSet = true; m_notificationDestinations = std::move(value); }
198 inline WorkspaceSummary& AddNotificationDestinations(const NotificationDestinationType& value) { m_notificationDestinationsHasBeenSet = true; m_notificationDestinations.push_back(value); return *this; }
199 inline WorkspaceSummary& AddNotificationDestinations(NotificationDestinationType&& value) { m_notificationDestinationsHasBeenSet = true; m_notificationDestinations.push_back(std::move(value)); return *this; }
201
203
206 inline const WorkspaceStatus& GetStatus() const{ return m_status; }
207 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
208 inline void SetStatus(const WorkspaceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
209 inline void SetStatus(WorkspaceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
210 inline WorkspaceSummary& WithStatus(const WorkspaceStatus& value) { SetStatus(value); return *this;}
211 inline WorkspaceSummary& WithStatus(WorkspaceStatus&& value) { SetStatus(std::move(value)); return *this;}
213
215
218 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
219 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
220 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
221 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
222 inline WorkspaceSummary& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
223 inline WorkspaceSummary& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
224 inline WorkspaceSummary& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
225 inline WorkspaceSummary& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
226 inline WorkspaceSummary& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
227 inline WorkspaceSummary& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
228 inline WorkspaceSummary& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
229 inline WorkspaceSummary& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
230 inline WorkspaceSummary& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
232 private:
233
234 AuthenticationSummary m_authentication;
235 bool m_authenticationHasBeenSet = false;
236
237 Aws::Utils::DateTime m_created;
238 bool m_createdHasBeenSet = false;
239
240 Aws::String m_description;
241 bool m_descriptionHasBeenSet = false;
242
243 Aws::String m_endpoint;
244 bool m_endpointHasBeenSet = false;
245
246 Aws::String m_grafanaToken;
247 bool m_grafanaTokenHasBeenSet = false;
248
249 Aws::String m_grafanaVersion;
250 bool m_grafanaVersionHasBeenSet = false;
251
252 Aws::String m_id;
253 bool m_idHasBeenSet = false;
254
255 LicenseType m_licenseType;
256 bool m_licenseTypeHasBeenSet = false;
257
258 Aws::Utils::DateTime m_modified;
259 bool m_modifiedHasBeenSet = false;
260
261 Aws::String m_name;
262 bool m_nameHasBeenSet = false;
263
264 Aws::Vector<NotificationDestinationType> m_notificationDestinations;
265 bool m_notificationDestinationsHasBeenSet = false;
266
267 WorkspaceStatus m_status;
268 bool m_statusHasBeenSet = false;
269
271 bool m_tagsHasBeenSet = false;
272 };
273
274} // namespace Model
275} // namespace ManagedGrafana
276} // namespace Aws
WorkspaceSummary & WithEndpoint(const char *value)
WorkspaceSummary & WithEndpoint(const Aws::String &value)
WorkspaceSummary & WithAuthentication(AuthenticationSummary &&value)
void SetCreated(Aws::Utils::DateTime &&value)
WorkspaceSummary & WithName(const Aws::String &value)
WorkspaceSummary & WithGrafanaToken(const char *value)
WorkspaceSummary & WithNotificationDestinations(const Aws::Vector< NotificationDestinationType > &value)
void SetStatus(const WorkspaceStatus &value)
const Aws::Vector< NotificationDestinationType > & GetNotificationDestinations() const
WorkspaceSummary & AddTags(const Aws::String &key, Aws::String &&value)
const Aws::Utils::DateTime & GetCreated() const
WorkspaceSummary & WithModified(const Aws::Utils::DateTime &value)
WorkspaceSummary & WithDescription(Aws::String &&value)
void SetCreated(const Aws::Utils::DateTime &value)
WorkspaceSummary & WithGrafanaVersion(const Aws::String &value)
AWS_MANAGEDGRAFANA_API WorkspaceSummary(Aws::Utils::Json::JsonView jsonValue)
WorkspaceSummary & WithName(const char *value)
WorkspaceSummary & WithGrafanaVersion(const char *value)
WorkspaceSummary & WithGrafanaToken(Aws::String &&value)
WorkspaceSummary & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
WorkspaceSummary & WithNotificationDestinations(Aws::Vector< NotificationDestinationType > &&value)
void SetNotificationDestinations(const Aws::Vector< NotificationDestinationType > &value)
WorkspaceSummary & WithId(const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetNotificationDestinations(Aws::Vector< NotificationDestinationType > &&value)
WorkspaceSummary & WithName(Aws::String &&value)
void SetModified(Aws::Utils::DateTime &&value)
AWS_MANAGEDGRAFANA_API Aws::Utils::Json::JsonValue Jsonize() const
WorkspaceSummary & WithCreated(Aws::Utils::DateTime &&value)
WorkspaceSummary & WithEndpoint(Aws::String &&value)
WorkspaceSummary & AddNotificationDestinations(const NotificationDestinationType &value)
WorkspaceSummary & WithStatus(WorkspaceStatus &&value)
WorkspaceSummary & WithId(const char *value)
void SetGrafanaVersion(const Aws::String &value)
void SetAuthentication(AuthenticationSummary &&value)
WorkspaceSummary & WithId(Aws::String &&value)
AWS_MANAGEDGRAFANA_API WorkspaceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
WorkspaceSummary & WithDescription(const Aws::String &value)
WorkspaceSummary & WithAuthentication(const AuthenticationSummary &value)
WorkspaceSummary & WithDescription(const char *value)
void SetModified(const Aws::Utils::DateTime &value)
WorkspaceSummary & WithGrafanaToken(const Aws::String &value)
const Aws::Utils::DateTime & GetModified() const
WorkspaceSummary & WithModified(Aws::Utils::DateTime &&value)
WorkspaceSummary & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
WorkspaceSummary & AddTags(const char *key, Aws::String &&value)
WorkspaceSummary & AddNotificationDestinations(NotificationDestinationType &&value)
const AuthenticationSummary & GetAuthentication() const
WorkspaceSummary & AddTags(Aws::String &&key, const Aws::String &value)
WorkspaceSummary & WithStatus(const WorkspaceStatus &value)
WorkspaceSummary & AddTags(const char *key, const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
WorkspaceSummary & WithCreated(const Aws::Utils::DateTime &value)
WorkspaceSummary & WithLicenseType(const LicenseType &value)
WorkspaceSummary & WithGrafanaVersion(Aws::String &&value)
WorkspaceSummary & WithLicenseType(LicenseType &&value)
WorkspaceSummary & AddTags(Aws::String &&key, const char *value)
const WorkspaceStatus & GetStatus() const
WorkspaceSummary & AddTags(const Aws::String &key, const Aws::String &value)
void SetLicenseType(const LicenseType &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetGrafanaToken(const Aws::String &value)
void SetAuthentication(const AuthenticationSummary &value)
void SetEndpoint(const Aws::String &value)
void SetDescription(const Aws::String &value)
WorkspaceSummary & AddTags(Aws::String &&key, Aws::String &&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