AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
CreateApplicationResult.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/ApiGatewayProxyInput.h>
13#include <aws/migration-hub-refactor-spaces/model/ApplicationState.h>
14#include <aws/migration-hub-refactor-spaces/model/ProxyType.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 CreateApplicationResult() = default;
33 AWS_MIGRATIONHUBREFACTORSPACES_API CreateApplicationResult& operator=(
35
37
41 inline const ApiGatewayProxyInput& GetApiGatewayProxy() const { return m_apiGatewayProxy; }
42 template <typename ApiGatewayProxyT = ApiGatewayProxyInput>
43 void SetApiGatewayProxy(ApiGatewayProxyT&& value) {
44 m_apiGatewayProxyHasBeenSet = true;
45 m_apiGatewayProxy = std::forward<ApiGatewayProxyT>(value);
46 }
47 template <typename ApiGatewayProxyT = ApiGatewayProxyInput>
48 CreateApplicationResult& 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 CreateApplicationResult& WithApplicationId(ApplicationIdT&& value) {
66 SetApplicationId(std::forward<ApplicationIdT>(value));
67 return *this;
68 }
70
72
80 inline const Aws::String& GetArn() const { return m_arn; }
81 template <typename ArnT = Aws::String>
82 void SetArn(ArnT&& value) {
83 m_arnHasBeenSet = true;
84 m_arn = std::forward<ArnT>(value);
85 }
86 template <typename ArnT = Aws::String>
88 SetArn(std::forward<ArnT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetCreatedByAccountId() const { return m_createdByAccountId; }
98 template <typename CreatedByAccountIdT = Aws::String>
99 void SetCreatedByAccountId(CreatedByAccountIdT&& value) {
100 m_createdByAccountIdHasBeenSet = true;
101 m_createdByAccountId = std::forward<CreatedByAccountIdT>(value);
102 }
103 template <typename CreatedByAccountIdT = Aws::String>
104 CreateApplicationResult& WithCreatedByAccountId(CreatedByAccountIdT&& value) {
105 SetCreatedByAccountId(std::forward<CreatedByAccountIdT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
115 template <typename CreatedTimeT = Aws::Utils::DateTime>
116 void SetCreatedTime(CreatedTimeT&& value) {
117 m_createdTimeHasBeenSet = true;
118 m_createdTime = std::forward<CreatedTimeT>(value);
119 }
120 template <typename CreatedTimeT = Aws::Utils::DateTime>
122 SetCreatedTime(std::forward<CreatedTimeT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
132 template <typename EnvironmentIdT = Aws::String>
133 void SetEnvironmentId(EnvironmentIdT&& value) {
134 m_environmentIdHasBeenSet = true;
135 m_environmentId = std::forward<EnvironmentIdT>(value);
136 }
137 template <typename EnvironmentIdT = Aws::String>
139 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
149 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
150 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
151 m_lastUpdatedTimeHasBeenSet = true;
152 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
153 }
154 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
155 CreateApplicationResult& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
156 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::String& GetName() const { return m_name; }
166 template <typename NameT = Aws::String>
167 void SetName(NameT&& value) {
168 m_nameHasBeenSet = true;
169 m_name = std::forward<NameT>(value);
170 }
171 template <typename NameT = Aws::String>
173 SetName(std::forward<NameT>(value));
174 return *this;
175 }
177
179
183 inline const Aws::String& GetOwnerAccountId() const { return m_ownerAccountId; }
184 template <typename OwnerAccountIdT = Aws::String>
185 void SetOwnerAccountId(OwnerAccountIdT&& value) {
186 m_ownerAccountIdHasBeenSet = true;
187 m_ownerAccountId = std::forward<OwnerAccountIdT>(value);
188 }
189 template <typename OwnerAccountIdT = Aws::String>
190 CreateApplicationResult& WithOwnerAccountId(OwnerAccountIdT&& value) {
191 SetOwnerAccountId(std::forward<OwnerAccountIdT>(value));
192 return *this;
193 }
195
197
200 inline ProxyType GetProxyType() const { return m_proxyType; }
201 inline void SetProxyType(ProxyType value) {
202 m_proxyTypeHasBeenSet = true;
203 m_proxyType = value;
204 }
206 SetProxyType(value);
207 return *this;
208 }
210
212
215 inline ApplicationState GetState() const { return m_state; }
216 inline void SetState(ApplicationState value) {
217 m_stateHasBeenSet = true;
218 m_state = value;
219 }
221 SetState(value);
222 return *this;
223 }
225
227
231 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
232 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
233 void SetTags(TagsT&& value) {
234 m_tagsHasBeenSet = true;
235 m_tags = std::forward<TagsT>(value);
236 }
237 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
239 SetTags(std::forward<TagsT>(value));
240 return *this;
241 }
242 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
243 CreateApplicationResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
244 m_tagsHasBeenSet = true;
245 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
246 return *this;
247 }
249
251
254 inline const Aws::String& GetVpcId() const { return m_vpcId; }
255 template <typename VpcIdT = Aws::String>
256 void SetVpcId(VpcIdT&& value) {
257 m_vpcIdHasBeenSet = true;
258 m_vpcId = std::forward<VpcIdT>(value);
259 }
260 template <typename VpcIdT = Aws::String>
262 SetVpcId(std::forward<VpcIdT>(value));
263 return *this;
264 }
266
268
269 inline const Aws::String& GetRequestId() const { return m_requestId; }
270 template <typename RequestIdT = Aws::String>
271 void SetRequestId(RequestIdT&& value) {
272 m_requestIdHasBeenSet = true;
273 m_requestId = std::forward<RequestIdT>(value);
274 }
275 template <typename RequestIdT = Aws::String>
277 SetRequestId(std::forward<RequestIdT>(value));
278 return *this;
279 }
281 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
282
283 private:
284 ApiGatewayProxyInput m_apiGatewayProxy;
285
286 Aws::String m_applicationId;
287
288 Aws::String m_arn;
289
290 Aws::String m_createdByAccountId;
291
292 Aws::Utils::DateTime m_createdTime{};
293
294 Aws::String m_environmentId;
295
296 Aws::Utils::DateTime m_lastUpdatedTime{};
297
298 Aws::String m_name;
299
300 Aws::String m_ownerAccountId;
301
302 ProxyType m_proxyType{ProxyType::NOT_SET};
303
305
307
308 Aws::String m_vpcId;
309
310 Aws::String m_requestId;
311 Aws::Http::HttpResponseCode m_HttpResponseCode;
312 bool m_apiGatewayProxyHasBeenSet = false;
313 bool m_applicationIdHasBeenSet = false;
314 bool m_arnHasBeenSet = false;
315 bool m_createdByAccountIdHasBeenSet = false;
316 bool m_createdTimeHasBeenSet = false;
317 bool m_environmentIdHasBeenSet = false;
318 bool m_lastUpdatedTimeHasBeenSet = false;
319 bool m_nameHasBeenSet = false;
320 bool m_ownerAccountIdHasBeenSet = false;
321 bool m_proxyTypeHasBeenSet = false;
322 bool m_stateHasBeenSet = false;
323 bool m_tagsHasBeenSet = false;
324 bool m_vpcIdHasBeenSet = false;
325 bool m_requestIdHasBeenSet = false;
326};
327
328} // namespace Model
329} // namespace MigrationHubRefactorSpaces
330} // namespace Aws
CreateApplicationResult & WithApplicationId(ApplicationIdT &&value)
CreateApplicationResult & WithApiGatewayProxy(ApiGatewayProxyT &&value)
CreateApplicationResult & WithOwnerAccountId(OwnerAccountIdT &&value)
CreateApplicationResult & WithEnvironmentId(EnvironmentIdT &&value)
CreateApplicationResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_MIGRATIONHUBREFACTORSPACES_API CreateApplicationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_MIGRATIONHUBREFACTORSPACES_API CreateApplicationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateApplicationResult & WithCreatedTime(CreatedTimeT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateApplicationResult & WithCreatedByAccountId(CreatedByAccountIdT &&value)
CreateApplicationResult & WithLastUpdatedTime(LastUpdatedTimeT &&value)
CreateApplicationResult & WithState(ApplicationState value)
AWS_MIGRATIONHUBREFACTORSPACES_API CreateApplicationResult()=default
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