AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename AuthenticationT = AuthenticationSummary>
56 void SetAuthentication(AuthenticationT&& value) { m_authenticationHasBeenSet = true; m_authentication = std::forward<AuthenticationT>(value); }
57 template<typename AuthenticationT = AuthenticationSummary>
58 WorkspaceSummary& WithAuthentication(AuthenticationT&& value) { SetAuthentication(std::forward<AuthenticationT>(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 template<typename CreatedT = Aws::Utils::DateTime>
68 void SetCreated(CreatedT&& value) { m_createdHasBeenSet = true; m_created = std::forward<CreatedT>(value); }
69 template<typename CreatedT = Aws::Utils::DateTime>
70 WorkspaceSummary& WithCreated(CreatedT&& value) { SetCreated(std::forward<CreatedT>(value)); return *this;}
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template<typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
81 template<typename DescriptionT = Aws::String>
82 WorkspaceSummary& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
84
86
89 inline const Aws::String& GetEndpoint() const { return m_endpoint; }
90 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
91 template<typename EndpointT = Aws::String>
92 void SetEndpoint(EndpointT&& value) { m_endpointHasBeenSet = true; m_endpoint = std::forward<EndpointT>(value); }
93 template<typename EndpointT = Aws::String>
94 WorkspaceSummary& WithEndpoint(EndpointT&& value) { SetEndpoint(std::forward<EndpointT>(value)); return *this;}
96
98
104 inline const Aws::String& GetGrafanaToken() const { return m_grafanaToken; }
105 inline bool GrafanaTokenHasBeenSet() const { return m_grafanaTokenHasBeenSet; }
106 template<typename GrafanaTokenT = Aws::String>
107 void SetGrafanaToken(GrafanaTokenT&& value) { m_grafanaTokenHasBeenSet = true; m_grafanaToken = std::forward<GrafanaTokenT>(value); }
108 template<typename GrafanaTokenT = Aws::String>
109 WorkspaceSummary& WithGrafanaToken(GrafanaTokenT&& value) { SetGrafanaToken(std::forward<GrafanaTokenT>(value)); return *this;}
111
113
116 inline const Aws::String& GetGrafanaVersion() const { return m_grafanaVersion; }
117 inline bool GrafanaVersionHasBeenSet() const { return m_grafanaVersionHasBeenSet; }
118 template<typename GrafanaVersionT = Aws::String>
119 void SetGrafanaVersion(GrafanaVersionT&& value) { m_grafanaVersionHasBeenSet = true; m_grafanaVersion = std::forward<GrafanaVersionT>(value); }
120 template<typename GrafanaVersionT = Aws::String>
121 WorkspaceSummary& WithGrafanaVersion(GrafanaVersionT&& value) { SetGrafanaVersion(std::forward<GrafanaVersionT>(value)); return *this;}
123
125
128 inline const Aws::String& GetId() const { return m_id; }
129 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
130 template<typename IdT = Aws::String>
131 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
132 template<typename IdT = Aws::String>
133 WorkspaceSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
135
137
142 inline LicenseType GetLicenseType() const { return m_licenseType; }
143 inline bool LicenseTypeHasBeenSet() const { return m_licenseTypeHasBeenSet; }
144 inline void SetLicenseType(LicenseType value) { m_licenseTypeHasBeenSet = true; m_licenseType = value; }
145 inline WorkspaceSummary& WithLicenseType(LicenseType value) { SetLicenseType(value); return *this;}
147
149
152 inline const Aws::Utils::DateTime& GetModified() const { return m_modified; }
153 inline bool ModifiedHasBeenSet() const { return m_modifiedHasBeenSet; }
154 template<typename ModifiedT = Aws::Utils::DateTime>
155 void SetModified(ModifiedT&& value) { m_modifiedHasBeenSet = true; m_modified = std::forward<ModifiedT>(value); }
156 template<typename ModifiedT = Aws::Utils::DateTime>
157 WorkspaceSummary& WithModified(ModifiedT&& value) { SetModified(std::forward<ModifiedT>(value)); return *this;}
159
161
164 inline const Aws::String& GetName() const { return m_name; }
165 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
166 template<typename NameT = Aws::String>
167 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
168 template<typename NameT = Aws::String>
169 WorkspaceSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
171
173
178 inline const Aws::Vector<NotificationDestinationType>& GetNotificationDestinations() const { return m_notificationDestinations; }
179 inline bool NotificationDestinationsHasBeenSet() const { return m_notificationDestinationsHasBeenSet; }
180 template<typename NotificationDestinationsT = Aws::Vector<NotificationDestinationType>>
181 void SetNotificationDestinations(NotificationDestinationsT&& value) { m_notificationDestinationsHasBeenSet = true; m_notificationDestinations = std::forward<NotificationDestinationsT>(value); }
182 template<typename NotificationDestinationsT = Aws::Vector<NotificationDestinationType>>
183 WorkspaceSummary& WithNotificationDestinations(NotificationDestinationsT&& value) { SetNotificationDestinations(std::forward<NotificationDestinationsT>(value)); return *this;}
184 inline WorkspaceSummary& AddNotificationDestinations(NotificationDestinationType value) { m_notificationDestinationsHasBeenSet = true; m_notificationDestinations.push_back(value); return *this; }
186
188
191 inline WorkspaceStatus GetStatus() const { return m_status; }
192 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
193 inline void SetStatus(WorkspaceStatus value) { m_statusHasBeenSet = true; m_status = value; }
194 inline WorkspaceSummary& WithStatus(WorkspaceStatus value) { SetStatus(value); return *this;}
196
198
201 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
202 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
203 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
204 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
205 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
206 WorkspaceSummary& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
207 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
208 WorkspaceSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
209 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
210 }
212 private:
213
214 AuthenticationSummary m_authentication;
215 bool m_authenticationHasBeenSet = false;
216
217 Aws::Utils::DateTime m_created{};
218 bool m_createdHasBeenSet = false;
219
220 Aws::String m_description;
221 bool m_descriptionHasBeenSet = false;
222
223 Aws::String m_endpoint;
224 bool m_endpointHasBeenSet = false;
225
226 Aws::String m_grafanaToken;
227 bool m_grafanaTokenHasBeenSet = false;
228
229 Aws::String m_grafanaVersion;
230 bool m_grafanaVersionHasBeenSet = false;
231
232 Aws::String m_id;
233 bool m_idHasBeenSet = false;
234
235 LicenseType m_licenseType{LicenseType::NOT_SET};
236 bool m_licenseTypeHasBeenSet = false;
237
238 Aws::Utils::DateTime m_modified{};
239 bool m_modifiedHasBeenSet = false;
240
241 Aws::String m_name;
242 bool m_nameHasBeenSet = false;
243
244 Aws::Vector<NotificationDestinationType> m_notificationDestinations;
245 bool m_notificationDestinationsHasBeenSet = false;
246
248 bool m_statusHasBeenSet = false;
249
251 bool m_tagsHasBeenSet = false;
252 };
253
254} // namespace Model
255} // namespace ManagedGrafana
256} // 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