AWS SDK for C++

AWS SDK for C++ Version 1.11.928

Loading...
Searching...
No Matches
GetServiceResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/migration-hub-refactor-spaces/MigrationHubRefactorSpaces_EXPORTS.h>
12#include <aws/migration-hub-refactor-spaces/model/ErrorResponse.h>
13#include <aws/migration-hub-refactor-spaces/model/LambdaEndpointConfig.h>
14#include <aws/migration-hub-refactor-spaces/model/ServiceEndpointType.h>
15#include <aws/migration-hub-refactor-spaces/model/ServiceState.h>
16#include <aws/migration-hub-refactor-spaces/model/UrlEndpointConfig.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace MigrationHubRefactorSpaces {
30namespace Model {
32 public:
33 AWS_MIGRATIONHUBREFACTORSPACES_API GetServiceResult() = default;
34 AWS_MIGRATIONHUBREFACTORSPACES_API GetServiceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
36
38
41 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
42 template <typename ApplicationIdT = Aws::String>
43 void SetApplicationId(ApplicationIdT&& value) {
44 m_applicationIdHasBeenSet = true;
45 m_applicationId = std::forward<ApplicationIdT>(value);
46 }
47 template <typename ApplicationIdT = Aws::String>
48 GetServiceResult& WithApplicationId(ApplicationIdT&& value) {
49 SetApplicationId(std::forward<ApplicationIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetArn() const { return m_arn; }
59 template <typename ArnT = Aws::String>
60 void SetArn(ArnT&& value) {
61 m_arnHasBeenSet = true;
62 m_arn = std::forward<ArnT>(value);
63 }
64 template <typename ArnT = Aws::String>
65 GetServiceResult& WithArn(ArnT&& value) {
66 SetArn(std::forward<ArnT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetCreatedByAccountId() const { return m_createdByAccountId; }
76 template <typename CreatedByAccountIdT = Aws::String>
77 void SetCreatedByAccountId(CreatedByAccountIdT&& value) {
78 m_createdByAccountIdHasBeenSet = true;
79 m_createdByAccountId = std::forward<CreatedByAccountIdT>(value);
80 }
81 template <typename CreatedByAccountIdT = Aws::String>
82 GetServiceResult& WithCreatedByAccountId(CreatedByAccountIdT&& value) {
83 SetCreatedByAccountId(std::forward<CreatedByAccountIdT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
93 template <typename CreatedTimeT = Aws::Utils::DateTime>
94 void SetCreatedTime(CreatedTimeT&& value) {
95 m_createdTimeHasBeenSet = true;
96 m_createdTime = std::forward<CreatedTimeT>(value);
97 }
98 template <typename CreatedTimeT = Aws::Utils::DateTime>
99 GetServiceResult& WithCreatedTime(CreatedTimeT&& value) {
100 SetCreatedTime(std::forward<CreatedTimeT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetDescription() const { return m_description; }
110 template <typename DescriptionT = Aws::String>
111 void SetDescription(DescriptionT&& value) {
112 m_descriptionHasBeenSet = true;
113 m_description = std::forward<DescriptionT>(value);
114 }
115 template <typename DescriptionT = Aws::String>
116 GetServiceResult& WithDescription(DescriptionT&& value) {
117 SetDescription(std::forward<DescriptionT>(value));
118 return *this;
119 }
121
123
126 inline ServiceEndpointType GetEndpointType() const { return m_endpointType; }
128 m_endpointTypeHasBeenSet = true;
129 m_endpointType = value;
130 }
132 SetEndpointType(value);
133 return *this;
134 }
136
138
141 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
142 template <typename EnvironmentIdT = Aws::String>
143 void SetEnvironmentId(EnvironmentIdT&& value) {
144 m_environmentIdHasBeenSet = true;
145 m_environmentId = std::forward<EnvironmentIdT>(value);
146 }
147 template <typename EnvironmentIdT = Aws::String>
148 GetServiceResult& WithEnvironmentId(EnvironmentIdT&& value) {
149 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
150 return *this;
151 }
153
155
158 inline const ErrorResponse& GetError() const { return m_error; }
159 template <typename ErrorT = ErrorResponse>
160 void SetError(ErrorT&& value) {
161 m_errorHasBeenSet = true;
162 m_error = std::forward<ErrorT>(value);
163 }
164 template <typename ErrorT = ErrorResponse>
165 GetServiceResult& WithError(ErrorT&& value) {
166 SetError(std::forward<ErrorT>(value));
167 return *this;
168 }
170
172
177 inline const LambdaEndpointConfig& GetLambdaEndpoint() const { return m_lambdaEndpoint; }
178 template <typename LambdaEndpointT = LambdaEndpointConfig>
179 void SetLambdaEndpoint(LambdaEndpointT&& value) {
180 m_lambdaEndpointHasBeenSet = true;
181 m_lambdaEndpoint = std::forward<LambdaEndpointT>(value);
182 }
183 template <typename LambdaEndpointT = LambdaEndpointConfig>
184 GetServiceResult& WithLambdaEndpoint(LambdaEndpointT&& value) {
185 SetLambdaEndpoint(std::forward<LambdaEndpointT>(value));
186 return *this;
187 }
189
191
194 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
195 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
196 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
197 m_lastUpdatedTimeHasBeenSet = true;
198 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
199 }
200 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
201 GetServiceResult& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
202 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
203 return *this;
204 }
206
208
211 inline const Aws::String& GetName() const { return m_name; }
212 template <typename NameT = Aws::String>
213 void SetName(NameT&& value) {
214 m_nameHasBeenSet = true;
215 m_name = std::forward<NameT>(value);
216 }
217 template <typename NameT = Aws::String>
218 GetServiceResult& WithName(NameT&& value) {
219 SetName(std::forward<NameT>(value));
220 return *this;
221 }
223
225
228 inline const Aws::String& GetOwnerAccountId() const { return m_ownerAccountId; }
229 template <typename OwnerAccountIdT = Aws::String>
230 void SetOwnerAccountId(OwnerAccountIdT&& value) {
231 m_ownerAccountIdHasBeenSet = true;
232 m_ownerAccountId = std::forward<OwnerAccountIdT>(value);
233 }
234 template <typename OwnerAccountIdT = Aws::String>
235 GetServiceResult& WithOwnerAccountId(OwnerAccountIdT&& value) {
236 SetOwnerAccountId(std::forward<OwnerAccountIdT>(value));
237 return *this;
238 }
240
242
245 inline const Aws::String& GetServiceId() const { return m_serviceId; }
246 template <typename ServiceIdT = Aws::String>
247 void SetServiceId(ServiceIdT&& value) {
248 m_serviceIdHasBeenSet = true;
249 m_serviceId = std::forward<ServiceIdT>(value);
250 }
251 template <typename ServiceIdT = Aws::String>
252 GetServiceResult& WithServiceId(ServiceIdT&& value) {
253 SetServiceId(std::forward<ServiceIdT>(value));
254 return *this;
255 }
257
259
262 inline ServiceState GetState() const { return m_state; }
263 inline void SetState(ServiceState value) {
264 m_stateHasBeenSet = true;
265 m_state = value;
266 }
268 SetState(value);
269 return *this;
270 }
272
274
278 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
279 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
280 void SetTags(TagsT&& value) {
281 m_tagsHasBeenSet = true;
282 m_tags = std::forward<TagsT>(value);
283 }
284 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
285 GetServiceResult& WithTags(TagsT&& value) {
286 SetTags(std::forward<TagsT>(value));
287 return *this;
288 }
289 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
290 GetServiceResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
291 m_tagsHasBeenSet = true;
292 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
293 return *this;
294 }
296
298
303 inline const UrlEndpointConfig& GetUrlEndpoint() const { return m_urlEndpoint; }
304 template <typename UrlEndpointT = UrlEndpointConfig>
305 void SetUrlEndpoint(UrlEndpointT&& value) {
306 m_urlEndpointHasBeenSet = true;
307 m_urlEndpoint = std::forward<UrlEndpointT>(value);
308 }
309 template <typename UrlEndpointT = UrlEndpointConfig>
310 GetServiceResult& WithUrlEndpoint(UrlEndpointT&& value) {
311 SetUrlEndpoint(std::forward<UrlEndpointT>(value));
312 return *this;
313 }
315
317
320 inline const Aws::String& GetVpcId() const { return m_vpcId; }
321 template <typename VpcIdT = Aws::String>
322 void SetVpcId(VpcIdT&& value) {
323 m_vpcIdHasBeenSet = true;
324 m_vpcId = std::forward<VpcIdT>(value);
325 }
326 template <typename VpcIdT = Aws::String>
327 GetServiceResult& WithVpcId(VpcIdT&& value) {
328 SetVpcId(std::forward<VpcIdT>(value));
329 return *this;
330 }
332
334
335 inline const Aws::String& GetRequestId() const { return m_requestId; }
336 template <typename RequestIdT = Aws::String>
337 void SetRequestId(RequestIdT&& value) {
338 m_requestIdHasBeenSet = true;
339 m_requestId = std::forward<RequestIdT>(value);
340 }
341 template <typename RequestIdT = Aws::String>
342 GetServiceResult& WithRequestId(RequestIdT&& value) {
343 SetRequestId(std::forward<RequestIdT>(value));
344 return *this;
345 }
347 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
348
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 LambdaEndpointConfig 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 UrlEndpointConfig m_urlEndpoint;
381
382 Aws::String m_vpcId;
383
384 Aws::String m_requestId;
385 Aws::Http::HttpResponseCode m_HttpResponseCode;
386 bool m_applicationIdHasBeenSet = false;
387 bool m_arnHasBeenSet = false;
388 bool m_createdByAccountIdHasBeenSet = false;
389 bool m_createdTimeHasBeenSet = false;
390 bool m_descriptionHasBeenSet = false;
391 bool m_endpointTypeHasBeenSet = false;
392 bool m_environmentIdHasBeenSet = false;
393 bool m_errorHasBeenSet = false;
394 bool m_lambdaEndpointHasBeenSet = false;
395 bool m_lastUpdatedTimeHasBeenSet = false;
396 bool m_nameHasBeenSet = false;
397 bool m_ownerAccountIdHasBeenSet = false;
398 bool m_serviceIdHasBeenSet = false;
399 bool m_stateHasBeenSet = false;
400 bool m_tagsHasBeenSet = false;
401 bool m_urlEndpointHasBeenSet = false;
402 bool m_vpcIdHasBeenSet = false;
403 bool m_requestIdHasBeenSet = false;
404};
405
406} // namespace Model
407} // namespace MigrationHubRefactorSpaces
408} // namespace Aws
GetServiceResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
GetServiceResult & WithApplicationId(ApplicationIdT &&value)
const LambdaEndpointConfig & GetLambdaEndpoint() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
GetServiceResult & WithOwnerAccountId(OwnerAccountIdT &&value)
AWS_MIGRATIONHUBREFACTORSPACES_API GetServiceResult()=default
GetServiceResult & WithDescription(DescriptionT &&value)
AWS_MIGRATIONHUBREFACTORSPACES_API GetServiceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetServiceResult & WithEndpointType(ServiceEndpointType value)
GetServiceResult & WithEnvironmentId(EnvironmentIdT &&value)
GetServiceResult & WithCreatedByAccountId(CreatedByAccountIdT &&value)
GetServiceResult & WithCreatedTime(CreatedTimeT &&value)
GetServiceResult & WithRequestId(RequestIdT &&value)
GetServiceResult & WithLastUpdatedTime(LastUpdatedTimeT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Utils::DateTime & GetCreatedTime() const
const Aws::Utils::DateTime & GetLastUpdatedTime() const
GetServiceResult & WithServiceId(ServiceIdT &&value)
AWS_MIGRATIONHUBREFACTORSPACES_API GetServiceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetServiceResult & WithUrlEndpoint(UrlEndpointT &&value)
GetServiceResult & 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