AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
ServiceSummary.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/migration-hub-refactor-spaces/MigrationHubRefactorSpaces_EXPORTS.h>
11#include <aws/migration-hub-refactor-spaces/model/ErrorResponse.h>
12#include <aws/migration-hub-refactor-spaces/model/LambdaEndpointSummary.h>
13#include <aws/migration-hub-refactor-spaces/model/ServiceEndpointType.h>
14#include <aws/migration-hub-refactor-spaces/model/ServiceState.h>
15#include <aws/migration-hub-refactor-spaces/model/UrlEndpointSummary.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace MigrationHubRefactorSpaces {
27namespace Model {
28
36 public:
37 AWS_MIGRATIONHUBREFACTORSPACES_API ServiceSummary() = default;
38 AWS_MIGRATIONHUBREFACTORSPACES_API ServiceSummary(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MIGRATIONHUBREFACTORSPACES_API ServiceSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MIGRATIONHUBREFACTORSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
47 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
48 template <typename ApplicationIdT = Aws::String>
49 void SetApplicationId(ApplicationIdT&& value) {
50 m_applicationIdHasBeenSet = true;
51 m_applicationId = std::forward<ApplicationIdT>(value);
52 }
53 template <typename ApplicationIdT = Aws::String>
54 ServiceSummary& WithApplicationId(ApplicationIdT&& value) {
55 SetApplicationId(std::forward<ApplicationIdT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetArn() const { return m_arn; }
65 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
66 template <typename ArnT = Aws::String>
67 void SetArn(ArnT&& value) {
68 m_arnHasBeenSet = true;
69 m_arn = std::forward<ArnT>(value);
70 }
71 template <typename ArnT = Aws::String>
72 ServiceSummary& WithArn(ArnT&& value) {
73 SetArn(std::forward<ArnT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetCreatedByAccountId() const { return m_createdByAccountId; }
83 inline bool CreatedByAccountIdHasBeenSet() const { return m_createdByAccountIdHasBeenSet; }
84 template <typename CreatedByAccountIdT = Aws::String>
85 void SetCreatedByAccountId(CreatedByAccountIdT&& value) {
86 m_createdByAccountIdHasBeenSet = true;
87 m_createdByAccountId = std::forward<CreatedByAccountIdT>(value);
88 }
89 template <typename CreatedByAccountIdT = Aws::String>
90 ServiceSummary& WithCreatedByAccountId(CreatedByAccountIdT&& value) {
91 SetCreatedByAccountId(std::forward<CreatedByAccountIdT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
101 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
102 template <typename CreatedTimeT = Aws::Utils::DateTime>
103 void SetCreatedTime(CreatedTimeT&& value) {
104 m_createdTimeHasBeenSet = true;
105 m_createdTime = std::forward<CreatedTimeT>(value);
106 }
107 template <typename CreatedTimeT = Aws::Utils::DateTime>
108 ServiceSummary& WithCreatedTime(CreatedTimeT&& value) {
109 SetCreatedTime(std::forward<CreatedTimeT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetDescription() const { return m_description; }
119 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
120 template <typename DescriptionT = Aws::String>
121 void SetDescription(DescriptionT&& value) {
122 m_descriptionHasBeenSet = true;
123 m_description = std::forward<DescriptionT>(value);
124 }
125 template <typename DescriptionT = Aws::String>
126 ServiceSummary& WithDescription(DescriptionT&& value) {
127 SetDescription(std::forward<DescriptionT>(value));
128 return *this;
129 }
131
133
136 inline ServiceEndpointType GetEndpointType() const { return m_endpointType; }
137 inline bool EndpointTypeHasBeenSet() const { return m_endpointTypeHasBeenSet; }
139 m_endpointTypeHasBeenSet = true;
140 m_endpointType = value;
141 }
143 SetEndpointType(value);
144 return *this;
145 }
147
149
152 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
153 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
154 template <typename EnvironmentIdT = Aws::String>
155 void SetEnvironmentId(EnvironmentIdT&& value) {
156 m_environmentIdHasBeenSet = true;
157 m_environmentId = std::forward<EnvironmentIdT>(value);
158 }
159 template <typename EnvironmentIdT = Aws::String>
160 ServiceSummary& WithEnvironmentId(EnvironmentIdT&& value) {
161 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
162 return *this;
163 }
165
167
170 inline const ErrorResponse& GetError() const { return m_error; }
171 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
172 template <typename ErrorT = ErrorResponse>
173 void SetError(ErrorT&& value) {
174 m_errorHasBeenSet = true;
175 m_error = std::forward<ErrorT>(value);
176 }
177 template <typename ErrorT = ErrorResponse>
178 ServiceSummary& WithError(ErrorT&& value) {
179 SetError(std::forward<ErrorT>(value));
180 return *this;
181 }
183
185
188 inline const LambdaEndpointSummary& GetLambdaEndpoint() const { return m_lambdaEndpoint; }
189 inline bool LambdaEndpointHasBeenSet() const { return m_lambdaEndpointHasBeenSet; }
190 template <typename LambdaEndpointT = LambdaEndpointSummary>
191 void SetLambdaEndpoint(LambdaEndpointT&& value) {
192 m_lambdaEndpointHasBeenSet = true;
193 m_lambdaEndpoint = std::forward<LambdaEndpointT>(value);
194 }
195 template <typename LambdaEndpointT = LambdaEndpointSummary>
196 ServiceSummary& WithLambdaEndpoint(LambdaEndpointT&& value) {
197 SetLambdaEndpoint(std::forward<LambdaEndpointT>(value));
198 return *this;
199 }
201
203
206 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
207 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
208 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
209 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
210 m_lastUpdatedTimeHasBeenSet = true;
211 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
212 }
213 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
214 ServiceSummary& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
215 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
216 return *this;
217 }
219
221
224 inline const Aws::String& GetName() const { return m_name; }
225 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
226 template <typename NameT = Aws::String>
227 void SetName(NameT&& value) {
228 m_nameHasBeenSet = true;
229 m_name = std::forward<NameT>(value);
230 }
231 template <typename NameT = Aws::String>
232 ServiceSummary& WithName(NameT&& value) {
233 SetName(std::forward<NameT>(value));
234 return *this;
235 }
237
239
242 inline const Aws::String& GetOwnerAccountId() const { return m_ownerAccountId; }
243 inline bool OwnerAccountIdHasBeenSet() const { return m_ownerAccountIdHasBeenSet; }
244 template <typename OwnerAccountIdT = Aws::String>
245 void SetOwnerAccountId(OwnerAccountIdT&& value) {
246 m_ownerAccountIdHasBeenSet = true;
247 m_ownerAccountId = std::forward<OwnerAccountIdT>(value);
248 }
249 template <typename OwnerAccountIdT = Aws::String>
250 ServiceSummary& WithOwnerAccountId(OwnerAccountIdT&& value) {
251 SetOwnerAccountId(std::forward<OwnerAccountIdT>(value));
252 return *this;
253 }
255
257
260 inline const Aws::String& GetServiceId() const { return m_serviceId; }
261 inline bool ServiceIdHasBeenSet() const { return m_serviceIdHasBeenSet; }
262 template <typename ServiceIdT = Aws::String>
263 void SetServiceId(ServiceIdT&& value) {
264 m_serviceIdHasBeenSet = true;
265 m_serviceId = std::forward<ServiceIdT>(value);
266 }
267 template <typename ServiceIdT = Aws::String>
268 ServiceSummary& WithServiceId(ServiceIdT&& value) {
269 SetServiceId(std::forward<ServiceIdT>(value));
270 return *this;
271 }
273
275
278 inline ServiceState GetState() const { return m_state; }
279 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
280 inline void SetState(ServiceState value) {
281 m_stateHasBeenSet = true;
282 m_state = value;
283 }
285 SetState(value);
286 return *this;
287 }
289
291
294 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
295 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
296 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
297 void SetTags(TagsT&& value) {
298 m_tagsHasBeenSet = true;
299 m_tags = std::forward<TagsT>(value);
300 }
301 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
302 ServiceSummary& WithTags(TagsT&& value) {
303 SetTags(std::forward<TagsT>(value));
304 return *this;
305 }
306 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
307 ServiceSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
308 m_tagsHasBeenSet = true;
309 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
310 return *this;
311 }
313
315
318 inline const UrlEndpointSummary& GetUrlEndpoint() const { return m_urlEndpoint; }
319 inline bool UrlEndpointHasBeenSet() const { return m_urlEndpointHasBeenSet; }
320 template <typename UrlEndpointT = UrlEndpointSummary>
321 void SetUrlEndpoint(UrlEndpointT&& value) {
322 m_urlEndpointHasBeenSet = true;
323 m_urlEndpoint = std::forward<UrlEndpointT>(value);
324 }
325 template <typename UrlEndpointT = UrlEndpointSummary>
326 ServiceSummary& WithUrlEndpoint(UrlEndpointT&& value) {
327 SetUrlEndpoint(std::forward<UrlEndpointT>(value));
328 return *this;
329 }
331
333
336 inline const Aws::String& GetVpcId() const { return m_vpcId; }
337 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
338 template <typename VpcIdT = Aws::String>
339 void SetVpcId(VpcIdT&& value) {
340 m_vpcIdHasBeenSet = true;
341 m_vpcId = std::forward<VpcIdT>(value);
342 }
343 template <typename VpcIdT = Aws::String>
344 ServiceSummary& WithVpcId(VpcIdT&& value) {
345 SetVpcId(std::forward<VpcIdT>(value));
346 return *this;
347 }
349 private:
350 Aws::String m_applicationId;
351
352 Aws::String m_arn;
353
354 Aws::String m_createdByAccountId;
355
356 Aws::Utils::DateTime m_createdTime{};
357
358 Aws::String m_description;
359
361
362 Aws::String m_environmentId;
363
364 ErrorResponse m_error;
365
366 LambdaEndpointSummary m_lambdaEndpoint;
367
368 Aws::Utils::DateTime m_lastUpdatedTime{};
369
370 Aws::String m_name;
371
372 Aws::String m_ownerAccountId;
373
374 Aws::String m_serviceId;
375
377
379
380 UrlEndpointSummary m_urlEndpoint;
381
382 Aws::String m_vpcId;
383 bool m_applicationIdHasBeenSet = false;
384 bool m_arnHasBeenSet = false;
385 bool m_createdByAccountIdHasBeenSet = false;
386 bool m_createdTimeHasBeenSet = false;
387 bool m_descriptionHasBeenSet = false;
388 bool m_endpointTypeHasBeenSet = false;
389 bool m_environmentIdHasBeenSet = false;
390 bool m_errorHasBeenSet = false;
391 bool m_lambdaEndpointHasBeenSet = false;
392 bool m_lastUpdatedTimeHasBeenSet = false;
393 bool m_nameHasBeenSet = false;
394 bool m_ownerAccountIdHasBeenSet = false;
395 bool m_serviceIdHasBeenSet = false;
396 bool m_stateHasBeenSet = false;
397 bool m_tagsHasBeenSet = false;
398 bool m_urlEndpointHasBeenSet = false;
399 bool m_vpcIdHasBeenSet = false;
400};
401
402} // namespace Model
403} // namespace MigrationHubRefactorSpaces
404} // namespace Aws
ServiceSummary & WithApplicationId(ApplicationIdT &&value)
ServiceSummary & WithUrlEndpoint(UrlEndpointT &&value)
ServiceSummary & WithDescription(DescriptionT &&value)
AWS_MIGRATIONHUBREFACTORSPACES_API ServiceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastUpdatedTime() const
ServiceSummary & WithCreatedByAccountId(CreatedByAccountIdT &&value)
ServiceSummary & WithState(ServiceState value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetCreatedByAccountId(CreatedByAccountIdT &&value)
ServiceSummary & WithEnvironmentId(EnvironmentIdT &&value)
AWS_MIGRATIONHUBREFACTORSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
const LambdaEndpointSummary & GetLambdaEndpoint() const
ServiceSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
ServiceSummary & WithLastUpdatedTime(LastUpdatedTimeT &&value)
const UrlEndpointSummary & GetUrlEndpoint() const
ServiceSummary & WithEndpointType(ServiceEndpointType value)
AWS_MIGRATIONHUBREFACTORSPACES_API ServiceSummary()=default
ServiceSummary & WithCreatedTime(CreatedTimeT &&value)
ServiceSummary & WithServiceId(ServiceIdT &&value)
const Aws::Utils::DateTime & GetCreatedTime() const
AWS_MIGRATIONHUBREFACTORSPACES_API ServiceSummary(Aws::Utils::Json::JsonView jsonValue)
ServiceSummary & WithOwnerAccountId(OwnerAccountIdT &&value)
ServiceSummary & WithLambdaEndpoint(LambdaEndpointT &&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
Aws::Utils::Json::JsonValue JsonValue