AWS SDK for C++

AWS SDK for C++ Version 1.11.928

Loading...
Searching...
No Matches
GetRouteResult.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/core/utils/memory/stl/AWSVector.h>
12#include <aws/migration-hub-refactor-spaces/MigrationHubRefactorSpaces_EXPORTS.h>
13#include <aws/migration-hub-refactor-spaces/model/ErrorResponse.h>
14#include <aws/migration-hub-refactor-spaces/model/HttpMethod.h>
15#include <aws/migration-hub-refactor-spaces/model/RouteState.h>
16#include <aws/migration-hub-refactor-spaces/model/RouteType.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 GetRouteResult() = default;
34 AWS_MIGRATIONHUBREFACTORSPACES_API GetRouteResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
35 AWS_MIGRATIONHUBREFACTORSPACES_API GetRouteResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
36
38
42 inline bool GetAppendSourcePath() const { return m_appendSourcePath; }
43 inline void SetAppendSourcePath(bool value) {
44 m_appendSourcePathHasBeenSet = true;
45 m_appendSourcePath = value;
46 }
49 return *this;
50 }
52
54
57 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
58 template <typename ApplicationIdT = Aws::String>
59 void SetApplicationId(ApplicationIdT&& value) {
60 m_applicationIdHasBeenSet = true;
61 m_applicationId = std::forward<ApplicationIdT>(value);
62 }
63 template <typename ApplicationIdT = Aws::String>
64 GetRouteResult& WithApplicationId(ApplicationIdT&& value) {
65 SetApplicationId(std::forward<ApplicationIdT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetArn() const { return m_arn; }
75 template <typename ArnT = Aws::String>
76 void SetArn(ArnT&& value) {
77 m_arnHasBeenSet = true;
78 m_arn = std::forward<ArnT>(value);
79 }
80 template <typename ArnT = Aws::String>
81 GetRouteResult& WithArn(ArnT&& value) {
82 SetArn(std::forward<ArnT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetCreatedByAccountId() const { return m_createdByAccountId; }
92 template <typename CreatedByAccountIdT = Aws::String>
93 void SetCreatedByAccountId(CreatedByAccountIdT&& value) {
94 m_createdByAccountIdHasBeenSet = true;
95 m_createdByAccountId = std::forward<CreatedByAccountIdT>(value);
96 }
97 template <typename CreatedByAccountIdT = Aws::String>
98 GetRouteResult& WithCreatedByAccountId(CreatedByAccountIdT&& value) {
99 SetCreatedByAccountId(std::forward<CreatedByAccountIdT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
109 template <typename CreatedTimeT = Aws::Utils::DateTime>
110 void SetCreatedTime(CreatedTimeT&& value) {
111 m_createdTimeHasBeenSet = true;
112 m_createdTime = std::forward<CreatedTimeT>(value);
113 }
114 template <typename CreatedTimeT = Aws::Utils::DateTime>
115 GetRouteResult& WithCreatedTime(CreatedTimeT&& value) {
116 SetCreatedTime(std::forward<CreatedTimeT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
126 template <typename EnvironmentIdT = Aws::String>
127 void SetEnvironmentId(EnvironmentIdT&& value) {
128 m_environmentIdHasBeenSet = true;
129 m_environmentId = std::forward<EnvironmentIdT>(value);
130 }
131 template <typename EnvironmentIdT = Aws::String>
132 GetRouteResult& WithEnvironmentId(EnvironmentIdT&& value) {
133 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
134 return *this;
135 }
137
139
142 inline const ErrorResponse& GetError() const { return m_error; }
143 template <typename ErrorT = ErrorResponse>
144 void SetError(ErrorT&& value) {
145 m_errorHasBeenSet = true;
146 m_error = std::forward<ErrorT>(value);
147 }
148 template <typename ErrorT = ErrorResponse>
149 GetRouteResult& WithError(ErrorT&& value) {
150 SetError(std::forward<ErrorT>(value));
151 return *this;
152 }
154
156
161 inline bool GetIncludeChildPaths() const { return m_includeChildPaths; }
162 inline void SetIncludeChildPaths(bool value) {
163 m_includeChildPathsHasBeenSet = true;
164 m_includeChildPaths = value;
165 }
168 return *this;
169 }
171
173
176 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
177 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
178 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
179 m_lastUpdatedTimeHasBeenSet = true;
180 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
181 }
182 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
183 GetRouteResult& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
184 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
185 return *this;
186 }
188
190
195 inline const Aws::Vector<HttpMethod>& GetMethods() const { return m_methods; }
196 template <typename MethodsT = Aws::Vector<HttpMethod>>
197 void SetMethods(MethodsT&& value) {
198 m_methodsHasBeenSet = true;
199 m_methods = std::forward<MethodsT>(value);
200 }
201 template <typename MethodsT = Aws::Vector<HttpMethod>>
202 GetRouteResult& WithMethods(MethodsT&& value) {
203 SetMethods(std::forward<MethodsT>(value));
204 return *this;
205 }
207 m_methodsHasBeenSet = true;
208 m_methods.push_back(value);
209 return *this;
210 }
212
214
217 inline const Aws::String& GetOwnerAccountId() const { return m_ownerAccountId; }
218 template <typename OwnerAccountIdT = Aws::String>
219 void SetOwnerAccountId(OwnerAccountIdT&& value) {
220 m_ownerAccountIdHasBeenSet = true;
221 m_ownerAccountId = std::forward<OwnerAccountIdT>(value);
222 }
223 template <typename OwnerAccountIdT = Aws::String>
224 GetRouteResult& WithOwnerAccountId(OwnerAccountIdT&& value) {
225 SetOwnerAccountId(std::forward<OwnerAccountIdT>(value));
226 return *this;
227 }
229
231
234 inline const Aws::Map<Aws::String, Aws::String>& GetPathResourceToId() const { return m_pathResourceToId; }
235 template <typename PathResourceToIdT = Aws::Map<Aws::String, Aws::String>>
236 void SetPathResourceToId(PathResourceToIdT&& value) {
237 m_pathResourceToIdHasBeenSet = true;
238 m_pathResourceToId = std::forward<PathResourceToIdT>(value);
239 }
240 template <typename PathResourceToIdT = Aws::Map<Aws::String, Aws::String>>
241 GetRouteResult& WithPathResourceToId(PathResourceToIdT&& value) {
242 SetPathResourceToId(std::forward<PathResourceToIdT>(value));
243 return *this;
244 }
245 template <typename PathResourceToIdKeyT = Aws::String, typename PathResourceToIdValueT = Aws::String>
246 GetRouteResult& AddPathResourceToId(PathResourceToIdKeyT&& key, PathResourceToIdValueT&& value) {
247 m_pathResourceToIdHasBeenSet = true;
248 m_pathResourceToId.emplace(std::forward<PathResourceToIdKeyT>(key), std::forward<PathResourceToIdValueT>(value));
249 return *this;
250 }
252
254
260 inline const Aws::String& GetRouteId() const { return m_routeId; }
261 template <typename RouteIdT = Aws::String>
262 void SetRouteId(RouteIdT&& value) {
263 m_routeIdHasBeenSet = true;
264 m_routeId = std::forward<RouteIdT>(value);
265 }
266 template <typename RouteIdT = Aws::String>
267 GetRouteResult& WithRouteId(RouteIdT&& value) {
268 SetRouteId(std::forward<RouteIdT>(value));
269 return *this;
270 }
272
274
277 inline RouteType GetRouteType() const { return m_routeType; }
278 inline void SetRouteType(RouteType value) {
279 m_routeTypeHasBeenSet = true;
280 m_routeType = value;
281 }
283 SetRouteType(value);
284 return *this;
285 }
287
289
292 inline const Aws::String& GetServiceId() const { return m_serviceId; }
293 template <typename ServiceIdT = Aws::String>
294 void SetServiceId(ServiceIdT&& value) {
295 m_serviceIdHasBeenSet = true;
296 m_serviceId = std::forward<ServiceIdT>(value);
297 }
298 template <typename ServiceIdT = Aws::String>
299 GetRouteResult& WithServiceId(ServiceIdT&& value) {
300 SetServiceId(std::forward<ServiceIdT>(value));
301 return *this;
302 }
304
306
312 inline const Aws::String& GetSourcePath() const { return m_sourcePath; }
313 template <typename SourcePathT = Aws::String>
314 void SetSourcePath(SourcePathT&& value) {
315 m_sourcePathHasBeenSet = true;
316 m_sourcePath = std::forward<SourcePathT>(value);
317 }
318 template <typename SourcePathT = Aws::String>
319 GetRouteResult& WithSourcePath(SourcePathT&& value) {
320 SetSourcePath(std::forward<SourcePathT>(value));
321 return *this;
322 }
324
326
329 inline RouteState GetState() const { return m_state; }
330 inline void SetState(RouteState value) {
331 m_stateHasBeenSet = true;
332 m_state = value;
333 }
335 SetState(value);
336 return *this;
337 }
339
341
345 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
346 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
347 void SetTags(TagsT&& value) {
348 m_tagsHasBeenSet = true;
349 m_tags = std::forward<TagsT>(value);
350 }
351 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
352 GetRouteResult& WithTags(TagsT&& value) {
353 SetTags(std::forward<TagsT>(value));
354 return *this;
355 }
356 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
357 GetRouteResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
358 m_tagsHasBeenSet = true;
359 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
360 return *this;
361 }
363
365
366 inline const Aws::String& GetRequestId() const { return m_requestId; }
367 template <typename RequestIdT = Aws::String>
368 void SetRequestId(RequestIdT&& value) {
369 m_requestIdHasBeenSet = true;
370 m_requestId = std::forward<RequestIdT>(value);
371 }
372 template <typename RequestIdT = Aws::String>
373 GetRouteResult& WithRequestId(RequestIdT&& value) {
374 SetRequestId(std::forward<RequestIdT>(value));
375 return *this;
376 }
378 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
379
380 private:
381 bool m_appendSourcePath{false};
382
383 Aws::String m_applicationId;
384
385 Aws::String m_arn;
386
387 Aws::String m_createdByAccountId;
388
389 Aws::Utils::DateTime m_createdTime{};
390
391 Aws::String m_environmentId;
392
393 ErrorResponse m_error;
394
395 bool m_includeChildPaths{false};
396
397 Aws::Utils::DateTime m_lastUpdatedTime{};
398
399 Aws::Vector<HttpMethod> m_methods;
400
401 Aws::String m_ownerAccountId;
402
403 Aws::Map<Aws::String, Aws::String> m_pathResourceToId;
404
405 Aws::String m_routeId;
406
407 RouteType m_routeType{RouteType::NOT_SET};
408
409 Aws::String m_serviceId;
410
411 Aws::String m_sourcePath;
412
414
416
417 Aws::String m_requestId;
418 Aws::Http::HttpResponseCode m_HttpResponseCode;
419 bool m_appendSourcePathHasBeenSet = false;
420 bool m_applicationIdHasBeenSet = false;
421 bool m_arnHasBeenSet = false;
422 bool m_createdByAccountIdHasBeenSet = false;
423 bool m_createdTimeHasBeenSet = false;
424 bool m_environmentIdHasBeenSet = false;
425 bool m_errorHasBeenSet = false;
426 bool m_includeChildPathsHasBeenSet = false;
427 bool m_lastUpdatedTimeHasBeenSet = false;
428 bool m_methodsHasBeenSet = false;
429 bool m_ownerAccountIdHasBeenSet = false;
430 bool m_pathResourceToIdHasBeenSet = false;
431 bool m_routeIdHasBeenSet = false;
432 bool m_routeTypeHasBeenSet = false;
433 bool m_serviceIdHasBeenSet = false;
434 bool m_sourcePathHasBeenSet = false;
435 bool m_stateHasBeenSet = false;
436 bool m_tagsHasBeenSet = false;
437 bool m_requestIdHasBeenSet = false;
438};
439
440} // namespace Model
441} // namespace MigrationHubRefactorSpaces
442} // namespace Aws
GetRouteResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
GetRouteResult & WithRequestId(RequestIdT &&value)
AWS_MIGRATIONHUBREFACTORSPACES_API GetRouteResult()=default
GetRouteResult & WithCreatedTime(CreatedTimeT &&value)
GetRouteResult & WithApplicationId(ApplicationIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetRouteResult & AddPathResourceToId(PathResourceToIdKeyT &&key, PathResourceToIdValueT &&value)
const Aws::Vector< HttpMethod > & GetMethods() const
GetRouteResult & WithLastUpdatedTime(LastUpdatedTimeT &&value)
void SetCreatedByAccountId(CreatedByAccountIdT &&value)
GetRouteResult & WithEnvironmentId(EnvironmentIdT &&value)
GetRouteResult & WithCreatedByAccountId(CreatedByAccountIdT &&value)
const Aws::Utils::DateTime & GetCreatedTime() const
GetRouteResult & WithServiceId(ServiceIdT &&value)
const Aws::Utils::DateTime & GetLastUpdatedTime() const
GetRouteResult & WithOwnerAccountId(OwnerAccountIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetPathResourceToId() const
AWS_MIGRATIONHUBREFACTORSPACES_API GetRouteResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_MIGRATIONHUBREFACTORSPACES_API GetRouteResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetRouteResult & WithSourcePath(SourcePathT &&value)
GetRouteResult & WithPathResourceToId(PathResourceToIdT &&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