AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
RouteSummary.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/core/utils/memory/stl/AWSVector.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/HttpMethod.h>
14#include <aws/migration-hub-refactor-spaces/model/RouteState.h>
15#include <aws/migration-hub-refactor-spaces/model/RouteType.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 RouteSummary() = default;
38 AWS_MIGRATIONHUBREFACTORSPACES_API RouteSummary(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MIGRATIONHUBREFACTORSPACES_API RouteSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MIGRATIONHUBREFACTORSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
47 inline bool GetAppendSourcePath() const { return m_appendSourcePath; }
48 inline bool AppendSourcePathHasBeenSet() const { return m_appendSourcePathHasBeenSet; }
49 inline void SetAppendSourcePath(bool value) {
50 m_appendSourcePathHasBeenSet = true;
51 m_appendSourcePath = value;
52 }
53 inline RouteSummary& WithAppendSourcePath(bool value) {
55 return *this;
56 }
58
60
63 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
64 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
65 template <typename ApplicationIdT = Aws::String>
66 void SetApplicationId(ApplicationIdT&& value) {
67 m_applicationIdHasBeenSet = true;
68 m_applicationId = std::forward<ApplicationIdT>(value);
69 }
70 template <typename ApplicationIdT = Aws::String>
71 RouteSummary& WithApplicationId(ApplicationIdT&& value) {
72 SetApplicationId(std::forward<ApplicationIdT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetArn() const { return m_arn; }
82 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
83 template <typename ArnT = Aws::String>
84 void SetArn(ArnT&& value) {
85 m_arnHasBeenSet = true;
86 m_arn = std::forward<ArnT>(value);
87 }
88 template <typename ArnT = Aws::String>
89 RouteSummary& WithArn(ArnT&& value) {
90 SetArn(std::forward<ArnT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetCreatedByAccountId() const { return m_createdByAccountId; }
100 inline bool CreatedByAccountIdHasBeenSet() const { return m_createdByAccountIdHasBeenSet; }
101 template <typename CreatedByAccountIdT = Aws::String>
102 void SetCreatedByAccountId(CreatedByAccountIdT&& value) {
103 m_createdByAccountIdHasBeenSet = true;
104 m_createdByAccountId = std::forward<CreatedByAccountIdT>(value);
105 }
106 template <typename CreatedByAccountIdT = Aws::String>
107 RouteSummary& WithCreatedByAccountId(CreatedByAccountIdT&& value) {
108 SetCreatedByAccountId(std::forward<CreatedByAccountIdT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
118 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
119 template <typename CreatedTimeT = Aws::Utils::DateTime>
120 void SetCreatedTime(CreatedTimeT&& value) {
121 m_createdTimeHasBeenSet = true;
122 m_createdTime = std::forward<CreatedTimeT>(value);
123 }
124 template <typename CreatedTimeT = Aws::Utils::DateTime>
125 RouteSummary& WithCreatedTime(CreatedTimeT&& value) {
126 SetCreatedTime(std::forward<CreatedTimeT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
136 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
137 template <typename EnvironmentIdT = Aws::String>
138 void SetEnvironmentId(EnvironmentIdT&& value) {
139 m_environmentIdHasBeenSet = true;
140 m_environmentId = std::forward<EnvironmentIdT>(value);
141 }
142 template <typename EnvironmentIdT = Aws::String>
143 RouteSummary& WithEnvironmentId(EnvironmentIdT&& value) {
144 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
145 return *this;
146 }
148
150
153 inline const ErrorResponse& GetError() const { return m_error; }
154 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
155 template <typename ErrorT = ErrorResponse>
156 void SetError(ErrorT&& value) {
157 m_errorHasBeenSet = true;
158 m_error = std::forward<ErrorT>(value);
159 }
160 template <typename ErrorT = ErrorResponse>
161 RouteSummary& WithError(ErrorT&& value) {
162 SetError(std::forward<ErrorT>(value));
163 return *this;
164 }
166
168
173 inline bool GetIncludeChildPaths() const { return m_includeChildPaths; }
174 inline bool IncludeChildPathsHasBeenSet() const { return m_includeChildPathsHasBeenSet; }
175 inline void SetIncludeChildPaths(bool value) {
176 m_includeChildPathsHasBeenSet = true;
177 m_includeChildPaths = value;
178 }
181 return *this;
182 }
184
186
189 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
190 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
191 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
192 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
193 m_lastUpdatedTimeHasBeenSet = true;
194 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
195 }
196 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
197 RouteSummary& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
198 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
199 return *this;
200 }
202
204
209 inline const Aws::Vector<HttpMethod>& GetMethods() const { return m_methods; }
210 inline bool MethodsHasBeenSet() const { return m_methodsHasBeenSet; }
211 template <typename MethodsT = Aws::Vector<HttpMethod>>
212 void SetMethods(MethodsT&& value) {
213 m_methodsHasBeenSet = true;
214 m_methods = std::forward<MethodsT>(value);
215 }
216 template <typename MethodsT = Aws::Vector<HttpMethod>>
217 RouteSummary& WithMethods(MethodsT&& value) {
218 SetMethods(std::forward<MethodsT>(value));
219 return *this;
220 }
222 m_methodsHasBeenSet = true;
223 m_methods.push_back(value);
224 return *this;
225 }
227
229
232 inline const Aws::String& GetOwnerAccountId() const { return m_ownerAccountId; }
233 inline bool OwnerAccountIdHasBeenSet() const { return m_ownerAccountIdHasBeenSet; }
234 template <typename OwnerAccountIdT = Aws::String>
235 void SetOwnerAccountId(OwnerAccountIdT&& value) {
236 m_ownerAccountIdHasBeenSet = true;
237 m_ownerAccountId = std::forward<OwnerAccountIdT>(value);
238 }
239 template <typename OwnerAccountIdT = Aws::String>
240 RouteSummary& WithOwnerAccountId(OwnerAccountIdT&& value) {
241 SetOwnerAccountId(std::forward<OwnerAccountIdT>(value));
242 return *this;
243 }
245
247
250 inline const Aws::Map<Aws::String, Aws::String>& GetPathResourceToId() const { return m_pathResourceToId; }
251 inline bool PathResourceToIdHasBeenSet() const { return m_pathResourceToIdHasBeenSet; }
252 template <typename PathResourceToIdT = Aws::Map<Aws::String, Aws::String>>
253 void SetPathResourceToId(PathResourceToIdT&& value) {
254 m_pathResourceToIdHasBeenSet = true;
255 m_pathResourceToId = std::forward<PathResourceToIdT>(value);
256 }
257 template <typename PathResourceToIdT = Aws::Map<Aws::String, Aws::String>>
258 RouteSummary& WithPathResourceToId(PathResourceToIdT&& value) {
259 SetPathResourceToId(std::forward<PathResourceToIdT>(value));
260 return *this;
261 }
262 template <typename PathResourceToIdKeyT = Aws::String, typename PathResourceToIdValueT = Aws::String>
263 RouteSummary& AddPathResourceToId(PathResourceToIdKeyT&& key, PathResourceToIdValueT&& value) {
264 m_pathResourceToIdHasBeenSet = true;
265 m_pathResourceToId.emplace(std::forward<PathResourceToIdKeyT>(key), std::forward<PathResourceToIdValueT>(value));
266 return *this;
267 }
269
271
274 inline const Aws::String& GetRouteId() const { return m_routeId; }
275 inline bool RouteIdHasBeenSet() const { return m_routeIdHasBeenSet; }
276 template <typename RouteIdT = Aws::String>
277 void SetRouteId(RouteIdT&& value) {
278 m_routeIdHasBeenSet = true;
279 m_routeId = std::forward<RouteIdT>(value);
280 }
281 template <typename RouteIdT = Aws::String>
282 RouteSummary& WithRouteId(RouteIdT&& value) {
283 SetRouteId(std::forward<RouteIdT>(value));
284 return *this;
285 }
287
289
292 inline RouteType GetRouteType() const { return m_routeType; }
293 inline bool RouteTypeHasBeenSet() const { return m_routeTypeHasBeenSet; }
294 inline void SetRouteType(RouteType value) {
295 m_routeTypeHasBeenSet = true;
296 m_routeType = value;
297 }
299 SetRouteType(value);
300 return *this;
301 }
303
305
308 inline const Aws::String& GetServiceId() const { return m_serviceId; }
309 inline bool ServiceIdHasBeenSet() const { return m_serviceIdHasBeenSet; }
310 template <typename ServiceIdT = Aws::String>
311 void SetServiceId(ServiceIdT&& value) {
312 m_serviceIdHasBeenSet = true;
313 m_serviceId = std::forward<ServiceIdT>(value);
314 }
315 template <typename ServiceIdT = Aws::String>
316 RouteSummary& WithServiceId(ServiceIdT&& value) {
317 SetServiceId(std::forward<ServiceIdT>(value));
318 return *this;
319 }
321
323
329 inline const Aws::String& GetSourcePath() const { return m_sourcePath; }
330 inline bool SourcePathHasBeenSet() const { return m_sourcePathHasBeenSet; }
331 template <typename SourcePathT = Aws::String>
332 void SetSourcePath(SourcePathT&& value) {
333 m_sourcePathHasBeenSet = true;
334 m_sourcePath = std::forward<SourcePathT>(value);
335 }
336 template <typename SourcePathT = Aws::String>
337 RouteSummary& WithSourcePath(SourcePathT&& value) {
338 SetSourcePath(std::forward<SourcePathT>(value));
339 return *this;
340 }
342
344
347 inline RouteState GetState() const { return m_state; }
348 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
349 inline void SetState(RouteState value) {
350 m_stateHasBeenSet = true;
351 m_state = value;
352 }
354 SetState(value);
355 return *this;
356 }
358
360
363 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
364 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
365 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
366 void SetTags(TagsT&& value) {
367 m_tagsHasBeenSet = true;
368 m_tags = std::forward<TagsT>(value);
369 }
370 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
371 RouteSummary& WithTags(TagsT&& value) {
372 SetTags(std::forward<TagsT>(value));
373 return *this;
374 }
375 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
376 RouteSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
377 m_tagsHasBeenSet = true;
378 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
379 return *this;
380 }
382 private:
383 bool m_appendSourcePath{false};
384
385 Aws::String m_applicationId;
386
387 Aws::String m_arn;
388
389 Aws::String m_createdByAccountId;
390
391 Aws::Utils::DateTime m_createdTime{};
392
393 Aws::String m_environmentId;
394
395 ErrorResponse m_error;
396
397 bool m_includeChildPaths{false};
398
399 Aws::Utils::DateTime m_lastUpdatedTime{};
400
401 Aws::Vector<HttpMethod> m_methods;
402
403 Aws::String m_ownerAccountId;
404
405 Aws::Map<Aws::String, Aws::String> m_pathResourceToId;
406
407 Aws::String m_routeId;
408
409 RouteType m_routeType{RouteType::NOT_SET};
410
411 Aws::String m_serviceId;
412
413 Aws::String m_sourcePath;
414
416
418 bool m_appendSourcePathHasBeenSet = false;
419 bool m_applicationIdHasBeenSet = false;
420 bool m_arnHasBeenSet = false;
421 bool m_createdByAccountIdHasBeenSet = false;
422 bool m_createdTimeHasBeenSet = false;
423 bool m_environmentIdHasBeenSet = false;
424 bool m_errorHasBeenSet = false;
425 bool m_includeChildPathsHasBeenSet = false;
426 bool m_lastUpdatedTimeHasBeenSet = false;
427 bool m_methodsHasBeenSet = false;
428 bool m_ownerAccountIdHasBeenSet = false;
429 bool m_pathResourceToIdHasBeenSet = false;
430 bool m_routeIdHasBeenSet = false;
431 bool m_routeTypeHasBeenSet = false;
432 bool m_serviceIdHasBeenSet = false;
433 bool m_sourcePathHasBeenSet = false;
434 bool m_stateHasBeenSet = false;
435 bool m_tagsHasBeenSet = false;
436};
437
438} // namespace Model
439} // namespace MigrationHubRefactorSpaces
440} // namespace Aws
RouteSummary & WithServiceId(ServiceIdT &&value)
RouteSummary & WithLastUpdatedTime(LastUpdatedTimeT &&value)
void SetPathResourceToId(PathResourceToIdT &&value)
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
RouteSummary & WithApplicationId(ApplicationIdT &&value)
const Aws::Utils::DateTime & GetLastUpdatedTime() const
AWS_MIGRATIONHUBREFACTORSPACES_API RouteSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetPathResourceToId() const
AWS_MIGRATIONHUBREFACTORSPACES_API RouteSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedTime() const
RouteSummary & WithCreatedTime(CreatedTimeT &&value)
AWS_MIGRATIONHUBREFACTORSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
RouteSummary & WithSourcePath(SourcePathT &&value)
RouteSummary & WithCreatedByAccountId(CreatedByAccountIdT &&value)
AWS_MIGRATIONHUBREFACTORSPACES_API RouteSummary()=default
void SetCreatedByAccountId(CreatedByAccountIdT &&value)
RouteSummary & WithPathResourceToId(PathResourceToIdT &&value)
RouteSummary & WithEnvironmentId(EnvironmentIdT &&value)
RouteSummary & WithOwnerAccountId(OwnerAccountIdT &&value)
RouteSummary & AddPathResourceToId(PathResourceToIdKeyT &&key, PathResourceToIdValueT &&value)
const Aws::Vector< HttpMethod > & GetMethods() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
RouteSummary & AddTags(TagsKeyT &&key, TagsValueT &&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