AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
CreateRouteResult.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/RouteState.h>
13#include <aws/migration-hub-refactor-spaces/model/RouteType.h>
14#include <aws/migration-hub-refactor-spaces/model/UriPathRouteInput.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace MigrationHubRefactorSpaces {
28namespace Model {
30 public:
31 AWS_MIGRATIONHUBREFACTORSPACES_API CreateRouteResult() = default;
32 AWS_MIGRATIONHUBREFACTORSPACES_API CreateRouteResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
34
36
39 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
40 template <typename ApplicationIdT = Aws::String>
41 void SetApplicationId(ApplicationIdT&& value) {
42 m_applicationIdHasBeenSet = true;
43 m_applicationId = std::forward<ApplicationIdT>(value);
44 }
45 template <typename ApplicationIdT = Aws::String>
46 CreateRouteResult& WithApplicationId(ApplicationIdT&& value) {
47 SetApplicationId(std::forward<ApplicationIdT>(value));
48 return *this;
49 }
51
53
61 inline const Aws::String& GetArn() const { return m_arn; }
62 template <typename ArnT = Aws::String>
63 void SetArn(ArnT&& value) {
64 m_arnHasBeenSet = true;
65 m_arn = std::forward<ArnT>(value);
66 }
67 template <typename ArnT = Aws::String>
68 CreateRouteResult& WithArn(ArnT&& value) {
69 SetArn(std::forward<ArnT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetCreatedByAccountId() const { return m_createdByAccountId; }
79 template <typename CreatedByAccountIdT = Aws::String>
80 void SetCreatedByAccountId(CreatedByAccountIdT&& value) {
81 m_createdByAccountIdHasBeenSet = true;
82 m_createdByAccountId = std::forward<CreatedByAccountIdT>(value);
83 }
84 template <typename CreatedByAccountIdT = Aws::String>
85 CreateRouteResult& WithCreatedByAccountId(CreatedByAccountIdT&& value) {
86 SetCreatedByAccountId(std::forward<CreatedByAccountIdT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
96 template <typename CreatedTimeT = Aws::Utils::DateTime>
97 void SetCreatedTime(CreatedTimeT&& value) {
98 m_createdTimeHasBeenSet = true;
99 m_createdTime = std::forward<CreatedTimeT>(value);
100 }
101 template <typename CreatedTimeT = Aws::Utils::DateTime>
102 CreateRouteResult& WithCreatedTime(CreatedTimeT&& value) {
103 SetCreatedTime(std::forward<CreatedTimeT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
113 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
114 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
115 m_lastUpdatedTimeHasBeenSet = true;
116 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
117 }
118 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
119 CreateRouteResult& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
120 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetOwnerAccountId() const { return m_ownerAccountId; }
130 template <typename OwnerAccountIdT = Aws::String>
131 void SetOwnerAccountId(OwnerAccountIdT&& value) {
132 m_ownerAccountIdHasBeenSet = true;
133 m_ownerAccountId = std::forward<OwnerAccountIdT>(value);
134 }
135 template <typename OwnerAccountIdT = Aws::String>
136 CreateRouteResult& WithOwnerAccountId(OwnerAccountIdT&& value) {
137 SetOwnerAccountId(std::forward<OwnerAccountIdT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::String& GetRouteId() const { return m_routeId; }
147 template <typename RouteIdT = Aws::String>
148 void SetRouteId(RouteIdT&& value) {
149 m_routeIdHasBeenSet = true;
150 m_routeId = std::forward<RouteIdT>(value);
151 }
152 template <typename RouteIdT = Aws::String>
153 CreateRouteResult& WithRouteId(RouteIdT&& value) {
154 SetRouteId(std::forward<RouteIdT>(value));
155 return *this;
156 }
158
160
163 inline RouteType GetRouteType() const { return m_routeType; }
164 inline void SetRouteType(RouteType value) {
165 m_routeTypeHasBeenSet = true;
166 m_routeType = value;
167 }
169 SetRouteType(value);
170 return *this;
171 }
173
175
179 inline const Aws::String& GetServiceId() const { return m_serviceId; }
180 template <typename ServiceIdT = Aws::String>
181 void SetServiceId(ServiceIdT&& value) {
182 m_serviceIdHasBeenSet = true;
183 m_serviceId = std::forward<ServiceIdT>(value);
184 }
185 template <typename ServiceIdT = Aws::String>
186 CreateRouteResult& WithServiceId(ServiceIdT&& value) {
187 SetServiceId(std::forward<ServiceIdT>(value));
188 return *this;
189 }
191
193
198 inline RouteState GetState() const { return m_state; }
199 inline void SetState(RouteState value) {
200 m_stateHasBeenSet = true;
201 m_state = value;
202 }
204 SetState(value);
205 return *this;
206 }
208
210
214 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
215 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
216 void SetTags(TagsT&& value) {
217 m_tagsHasBeenSet = true;
218 m_tags = std::forward<TagsT>(value);
219 }
220 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
221 CreateRouteResult& WithTags(TagsT&& value) {
222 SetTags(std::forward<TagsT>(value));
223 return *this;
224 }
225 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
226 CreateRouteResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
227 m_tagsHasBeenSet = true;
228 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
229 return *this;
230 }
232
234
237 inline const UriPathRouteInput& GetUriPathRoute() const { return m_uriPathRoute; }
238 template <typename UriPathRouteT = UriPathRouteInput>
239 void SetUriPathRoute(UriPathRouteT&& value) {
240 m_uriPathRouteHasBeenSet = true;
241 m_uriPathRoute = std::forward<UriPathRouteT>(value);
242 }
243 template <typename UriPathRouteT = UriPathRouteInput>
244 CreateRouteResult& WithUriPathRoute(UriPathRouteT&& value) {
245 SetUriPathRoute(std::forward<UriPathRouteT>(value));
246 return *this;
247 }
249
251
252 inline const Aws::String& GetRequestId() const { return m_requestId; }
253 template <typename RequestIdT = Aws::String>
254 void SetRequestId(RequestIdT&& value) {
255 m_requestIdHasBeenSet = true;
256 m_requestId = std::forward<RequestIdT>(value);
257 }
258 template <typename RequestIdT = Aws::String>
259 CreateRouteResult& WithRequestId(RequestIdT&& value) {
260 SetRequestId(std::forward<RequestIdT>(value));
261 return *this;
262 }
264 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
265
266 private:
267 Aws::String m_applicationId;
268
269 Aws::String m_arn;
270
271 Aws::String m_createdByAccountId;
272
273 Aws::Utils::DateTime m_createdTime{};
274
275 Aws::Utils::DateTime m_lastUpdatedTime{};
276
277 Aws::String m_ownerAccountId;
278
279 Aws::String m_routeId;
280
281 RouteType m_routeType{RouteType::NOT_SET};
282
283 Aws::String m_serviceId;
284
286
288
289 UriPathRouteInput m_uriPathRoute;
290
291 Aws::String m_requestId;
292 Aws::Http::HttpResponseCode m_HttpResponseCode;
293 bool m_applicationIdHasBeenSet = false;
294 bool m_arnHasBeenSet = false;
295 bool m_createdByAccountIdHasBeenSet = false;
296 bool m_createdTimeHasBeenSet = false;
297 bool m_lastUpdatedTimeHasBeenSet = false;
298 bool m_ownerAccountIdHasBeenSet = false;
299 bool m_routeIdHasBeenSet = false;
300 bool m_routeTypeHasBeenSet = false;
301 bool m_serviceIdHasBeenSet = false;
302 bool m_stateHasBeenSet = false;
303 bool m_tagsHasBeenSet = false;
304 bool m_uriPathRouteHasBeenSet = false;
305 bool m_requestIdHasBeenSet = false;
306};
307
308} // namespace Model
309} // namespace MigrationHubRefactorSpaces
310} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateRouteResult & WithLastUpdatedTime(LastUpdatedTimeT &&value)
CreateRouteResult & WithApplicationId(ApplicationIdT &&value)
AWS_MIGRATIONHUBREFACTORSPACES_API CreateRouteResult()=default
CreateRouteResult & WithCreatedByAccountId(CreatedByAccountIdT &&value)
CreateRouteResult & WithOwnerAccountId(OwnerAccountIdT &&value)
AWS_MIGRATIONHUBREFACTORSPACES_API CreateRouteResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_MIGRATIONHUBREFACTORSPACES_API CreateRouteResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateRouteResult & WithServiceId(ServiceIdT &&value)
CreateRouteResult & WithUriPathRoute(UriPathRouteT &&value)
CreateRouteResult & WithCreatedTime(CreatedTimeT &&value)
CreateRouteResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateRouteResult & WithRequestId(RequestIdT &&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