AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
GetApplicationResult.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/ApiGatewayProxyConfig.h>
13#include <aws/migration-hub-refactor-spaces/model/ApplicationState.h>
14#include <aws/migration-hub-refactor-spaces/model/ErrorResponse.h>
15#include <aws/migration-hub-refactor-spaces/model/ProxyType.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace MigrationHubRefactorSpaces {
29namespace Model {
31 public:
32 AWS_MIGRATIONHUBREFACTORSPACES_API GetApplicationResult() = default;
33 AWS_MIGRATIONHUBREFACTORSPACES_API GetApplicationResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
34 AWS_MIGRATIONHUBREFACTORSPACES_API GetApplicationResult& operator=(
36
38
41 inline const ApiGatewayProxyConfig& GetApiGatewayProxy() const { return m_apiGatewayProxy; }
42 template <typename ApiGatewayProxyT = ApiGatewayProxyConfig>
43 void SetApiGatewayProxy(ApiGatewayProxyT&& value) {
44 m_apiGatewayProxyHasBeenSet = true;
45 m_apiGatewayProxy = std::forward<ApiGatewayProxyT>(value);
46 }
47 template <typename ApiGatewayProxyT = ApiGatewayProxyConfig>
48 GetApplicationResult& WithApiGatewayProxy(ApiGatewayProxyT&& value) {
49 SetApiGatewayProxy(std::forward<ApiGatewayProxyT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
59 template <typename ApplicationIdT = Aws::String>
60 void SetApplicationId(ApplicationIdT&& value) {
61 m_applicationIdHasBeenSet = true;
62 m_applicationId = std::forward<ApplicationIdT>(value);
63 }
64 template <typename ApplicationIdT = Aws::String>
65 GetApplicationResult& WithApplicationId(ApplicationIdT&& value) {
66 SetApplicationId(std::forward<ApplicationIdT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetArn() const { return m_arn; }
76 template <typename ArnT = Aws::String>
77 void SetArn(ArnT&& value) {
78 m_arnHasBeenSet = true;
79 m_arn = std::forward<ArnT>(value);
80 }
81 template <typename ArnT = Aws::String>
83 SetArn(std::forward<ArnT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetCreatedByAccountId() const { return m_createdByAccountId; }
93 template <typename CreatedByAccountIdT = Aws::String>
94 void SetCreatedByAccountId(CreatedByAccountIdT&& value) {
95 m_createdByAccountIdHasBeenSet = true;
96 m_createdByAccountId = std::forward<CreatedByAccountIdT>(value);
97 }
98 template <typename CreatedByAccountIdT = Aws::String>
99 GetApplicationResult& WithCreatedByAccountId(CreatedByAccountIdT&& value) {
100 SetCreatedByAccountId(std::forward<CreatedByAccountIdT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
110 template <typename CreatedTimeT = Aws::Utils::DateTime>
111 void SetCreatedTime(CreatedTimeT&& value) {
112 m_createdTimeHasBeenSet = true;
113 m_createdTime = std::forward<CreatedTimeT>(value);
114 }
115 template <typename CreatedTimeT = Aws::Utils::DateTime>
116 GetApplicationResult& WithCreatedTime(CreatedTimeT&& value) {
117 SetCreatedTime(std::forward<CreatedTimeT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
127 template <typename EnvironmentIdT = Aws::String>
128 void SetEnvironmentId(EnvironmentIdT&& value) {
129 m_environmentIdHasBeenSet = true;
130 m_environmentId = std::forward<EnvironmentIdT>(value);
131 }
132 template <typename EnvironmentIdT = Aws::String>
133 GetApplicationResult& WithEnvironmentId(EnvironmentIdT&& value) {
134 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
135 return *this;
136 }
138
140
143 inline const ErrorResponse& GetError() const { return m_error; }
144 template <typename ErrorT = ErrorResponse>
145 void SetError(ErrorT&& value) {
146 m_errorHasBeenSet = true;
147 m_error = std::forward<ErrorT>(value);
148 }
149 template <typename ErrorT = ErrorResponse>
151 SetError(std::forward<ErrorT>(value));
152 return *this;
153 }
155
157
160 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
161 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
162 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
163 m_lastUpdatedTimeHasBeenSet = true;
164 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
165 }
166 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
167 GetApplicationResult& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
168 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::String& GetName() const { return m_name; }
178 template <typename NameT = Aws::String>
179 void SetName(NameT&& value) {
180 m_nameHasBeenSet = true;
181 m_name = std::forward<NameT>(value);
182 }
183 template <typename NameT = Aws::String>
185 SetName(std::forward<NameT>(value));
186 return *this;
187 }
189
191
195 inline const Aws::String& GetOwnerAccountId() const { return m_ownerAccountId; }
196 template <typename OwnerAccountIdT = Aws::String>
197 void SetOwnerAccountId(OwnerAccountIdT&& value) {
198 m_ownerAccountIdHasBeenSet = true;
199 m_ownerAccountId = std::forward<OwnerAccountIdT>(value);
200 }
201 template <typename OwnerAccountIdT = Aws::String>
202 GetApplicationResult& WithOwnerAccountId(OwnerAccountIdT&& value) {
203 SetOwnerAccountId(std::forward<OwnerAccountIdT>(value));
204 return *this;
205 }
207
209
212 inline ProxyType GetProxyType() const { return m_proxyType; }
213 inline void SetProxyType(ProxyType value) {
214 m_proxyTypeHasBeenSet = true;
215 m_proxyType = value;
216 }
218 SetProxyType(value);
219 return *this;
220 }
222
224
227 inline ApplicationState GetState() const { return m_state; }
228 inline void SetState(ApplicationState value) {
229 m_stateHasBeenSet = true;
230 m_state = value;
231 }
233 SetState(value);
234 return *this;
235 }
237
239
243 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
244 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
245 void SetTags(TagsT&& value) {
246 m_tagsHasBeenSet = true;
247 m_tags = std::forward<TagsT>(value);
248 }
249 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
251 SetTags(std::forward<TagsT>(value));
252 return *this;
253 }
254 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
255 GetApplicationResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
256 m_tagsHasBeenSet = true;
257 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
258 return *this;
259 }
261
263
266 inline const Aws::String& GetVpcId() const { return m_vpcId; }
267 template <typename VpcIdT = Aws::String>
268 void SetVpcId(VpcIdT&& value) {
269 m_vpcIdHasBeenSet = true;
270 m_vpcId = std::forward<VpcIdT>(value);
271 }
272 template <typename VpcIdT = Aws::String>
274 SetVpcId(std::forward<VpcIdT>(value));
275 return *this;
276 }
278
280
281 inline const Aws::String& GetRequestId() const { return m_requestId; }
282 template <typename RequestIdT = Aws::String>
283 void SetRequestId(RequestIdT&& value) {
284 m_requestIdHasBeenSet = true;
285 m_requestId = std::forward<RequestIdT>(value);
286 }
287 template <typename RequestIdT = Aws::String>
288 GetApplicationResult& WithRequestId(RequestIdT&& value) {
289 SetRequestId(std::forward<RequestIdT>(value));
290 return *this;
291 }
293 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
294
295 private:
296 ApiGatewayProxyConfig m_apiGatewayProxy;
297
298 Aws::String m_applicationId;
299
300 Aws::String m_arn;
301
302 Aws::String m_createdByAccountId;
303
304 Aws::Utils::DateTime m_createdTime{};
305
306 Aws::String m_environmentId;
307
308 ErrorResponse m_error;
309
310 Aws::Utils::DateTime m_lastUpdatedTime{};
311
312 Aws::String m_name;
313
314 Aws::String m_ownerAccountId;
315
316 ProxyType m_proxyType{ProxyType::NOT_SET};
317
319
321
322 Aws::String m_vpcId;
323
324 Aws::String m_requestId;
325 Aws::Http::HttpResponseCode m_HttpResponseCode;
326 bool m_apiGatewayProxyHasBeenSet = false;
327 bool m_applicationIdHasBeenSet = false;
328 bool m_arnHasBeenSet = false;
329 bool m_createdByAccountIdHasBeenSet = false;
330 bool m_createdTimeHasBeenSet = false;
331 bool m_environmentIdHasBeenSet = false;
332 bool m_errorHasBeenSet = false;
333 bool m_lastUpdatedTimeHasBeenSet = false;
334 bool m_nameHasBeenSet = false;
335 bool m_ownerAccountIdHasBeenSet = false;
336 bool m_proxyTypeHasBeenSet = false;
337 bool m_stateHasBeenSet = false;
338 bool m_tagsHasBeenSet = false;
339 bool m_vpcIdHasBeenSet = false;
340 bool m_requestIdHasBeenSet = false;
341};
342
343} // namespace Model
344} // namespace MigrationHubRefactorSpaces
345} // namespace Aws
GetApplicationResult & WithCreatedByAccountId(CreatedByAccountIdT &&value)
GetApplicationResult & WithState(ApplicationState value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_MIGRATIONHUBREFACTORSPACES_API GetApplicationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_MIGRATIONHUBREFACTORSPACES_API GetApplicationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetApplicationResult & WithOwnerAccountId(OwnerAccountIdT &&value)
GetApplicationResult & WithEnvironmentId(EnvironmentIdT &&value)
GetApplicationResult & WithCreatedTime(CreatedTimeT &&value)
GetApplicationResult & WithApiGatewayProxy(ApiGatewayProxyT &&value)
GetApplicationResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
GetApplicationResult & WithLastUpdatedTime(LastUpdatedTimeT &&value)
AWS_MIGRATIONHUBREFACTORSPACES_API GetApplicationResult()=default
GetApplicationResult & WithApplicationId(ApplicationIdT &&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