AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
UpdateRouteResult.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/AWSString.h>
10#include <aws/migration-hub-refactor-spaces/MigrationHubRefactorSpaces_EXPORTS.h>
11#include <aws/migration-hub-refactor-spaces/model/RouteState.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace MigrationHubRefactorSpaces {
25namespace Model {
27 public:
28 AWS_MIGRATIONHUBREFACTORSPACES_API UpdateRouteResult() = default;
29 AWS_MIGRATIONHUBREFACTORSPACES_API UpdateRouteResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
31
33
36 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
37 template <typename ApplicationIdT = Aws::String>
38 void SetApplicationId(ApplicationIdT&& value) {
39 m_applicationIdHasBeenSet = true;
40 m_applicationId = std::forward<ApplicationIdT>(value);
41 }
42 template <typename ApplicationIdT = Aws::String>
43 UpdateRouteResult& WithApplicationId(ApplicationIdT&& value) {
44 SetApplicationId(std::forward<ApplicationIdT>(value));
45 return *this;
46 }
48
50
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 UpdateRouteResult& WithArn(ArnT&& value) {
66 SetArn(std::forward<ArnT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
76 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
77 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
78 m_lastUpdatedTimeHasBeenSet = true;
79 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
80 }
81 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
82 UpdateRouteResult& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
83 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetRouteId() const { return m_routeId; }
93 template <typename RouteIdT = Aws::String>
94 void SetRouteId(RouteIdT&& value) {
95 m_routeIdHasBeenSet = true;
96 m_routeId = std::forward<RouteIdT>(value);
97 }
98 template <typename RouteIdT = Aws::String>
99 UpdateRouteResult& WithRouteId(RouteIdT&& value) {
100 SetRouteId(std::forward<RouteIdT>(value));
101 return *this;
102 }
104
106
110 inline const Aws::String& GetServiceId() const { return m_serviceId; }
111 template <typename ServiceIdT = Aws::String>
112 void SetServiceId(ServiceIdT&& value) {
113 m_serviceIdHasBeenSet = true;
114 m_serviceId = std::forward<ServiceIdT>(value);
115 }
116 template <typename ServiceIdT = Aws::String>
117 UpdateRouteResult& WithServiceId(ServiceIdT&& value) {
118 SetServiceId(std::forward<ServiceIdT>(value));
119 return *this;
120 }
122
124
127 inline RouteState GetState() const { return m_state; }
128 inline void SetState(RouteState value) {
129 m_stateHasBeenSet = true;
130 m_state = value;
131 }
133 SetState(value);
134 return *this;
135 }
137
139
140 inline const Aws::String& GetRequestId() const { return m_requestId; }
141 template <typename RequestIdT = Aws::String>
142 void SetRequestId(RequestIdT&& value) {
143 m_requestIdHasBeenSet = true;
144 m_requestId = std::forward<RequestIdT>(value);
145 }
146 template <typename RequestIdT = Aws::String>
147 UpdateRouteResult& WithRequestId(RequestIdT&& value) {
148 SetRequestId(std::forward<RequestIdT>(value));
149 return *this;
150 }
152 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
153
154 private:
155 Aws::String m_applicationId;
156
157 Aws::String m_arn;
158
159 Aws::Utils::DateTime m_lastUpdatedTime{};
160
161 Aws::String m_routeId;
162
163 Aws::String m_serviceId;
164
166
167 Aws::String m_requestId;
168 Aws::Http::HttpResponseCode m_HttpResponseCode;
169 bool m_applicationIdHasBeenSet = false;
170 bool m_arnHasBeenSet = false;
171 bool m_lastUpdatedTimeHasBeenSet = false;
172 bool m_routeIdHasBeenSet = false;
173 bool m_serviceIdHasBeenSet = false;
174 bool m_stateHasBeenSet = false;
175 bool m_requestIdHasBeenSet = false;
176};
177
178} // namespace Model
179} // namespace MigrationHubRefactorSpaces
180} // namespace Aws
AWS_MIGRATIONHUBREFACTORSPACES_API UpdateRouteResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetLastUpdatedTime() const
AWS_MIGRATIONHUBREFACTORSPACES_API UpdateRouteResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateRouteResult & WithRequestId(RequestIdT &&value)
UpdateRouteResult & WithApplicationId(ApplicationIdT &&value)
AWS_MIGRATIONHUBREFACTORSPACES_API UpdateRouteResult()=default
UpdateRouteResult & WithLastUpdatedTime(LastUpdatedTimeT &&value)
UpdateRouteResult & WithServiceId(ServiceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue