AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
ApplicationSummary.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/migration-hub-refactor-spaces/MigrationHubRefactorSpaces_EXPORTS.h>
11#include <aws/migration-hub-refactor-spaces/model/ApiGatewayProxySummary.h>
12#include <aws/migration-hub-refactor-spaces/model/ApplicationState.h>
13#include <aws/migration-hub-refactor-spaces/model/ErrorResponse.h>
14#include <aws/migration-hub-refactor-spaces/model/ProxyType.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace MigrationHubRefactorSpaces {
26namespace Model {
27
35 public:
36 AWS_MIGRATIONHUBREFACTORSPACES_API ApplicationSummary() = default;
37 AWS_MIGRATIONHUBREFACTORSPACES_API ApplicationSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MIGRATIONHUBREFACTORSPACES_API ApplicationSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MIGRATIONHUBREFACTORSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const ApiGatewayProxySummary& GetApiGatewayProxy() const { return m_apiGatewayProxy; }
46 inline bool ApiGatewayProxyHasBeenSet() const { return m_apiGatewayProxyHasBeenSet; }
47 template <typename ApiGatewayProxyT = ApiGatewayProxySummary>
48 void SetApiGatewayProxy(ApiGatewayProxyT&& value) {
49 m_apiGatewayProxyHasBeenSet = true;
50 m_apiGatewayProxy = std::forward<ApiGatewayProxyT>(value);
51 }
52 template <typename ApiGatewayProxyT = ApiGatewayProxySummary>
53 ApplicationSummary& WithApiGatewayProxy(ApiGatewayProxyT&& value) {
54 SetApiGatewayProxy(std::forward<ApiGatewayProxyT>(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 ApplicationSummary& 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 ApplicationSummary& 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 ApplicationSummary& 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 ApplicationSummary& 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 ApplicationSummary& 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 ApplicationSummary& WithError(ErrorT&& value) {
162 SetError(std::forward<ErrorT>(value));
163 return *this;
164 }
166
168
171 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
172 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
173 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
174 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
175 m_lastUpdatedTimeHasBeenSet = true;
176 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
177 }
178 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
179 ApplicationSummary& WithLastUpdatedTime(LastUpdatedTimeT&& value) {
180 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
181 return *this;
182 }
184
186
189 inline const Aws::String& GetName() const { return m_name; }
190 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
191 template <typename NameT = Aws::String>
192 void SetName(NameT&& value) {
193 m_nameHasBeenSet = true;
194 m_name = std::forward<NameT>(value);
195 }
196 template <typename NameT = Aws::String>
197 ApplicationSummary& WithName(NameT&& value) {
198 SetName(std::forward<NameT>(value));
199 return *this;
200 }
202
204
208 inline const Aws::String& GetOwnerAccountId() const { return m_ownerAccountId; }
209 inline bool OwnerAccountIdHasBeenSet() const { return m_ownerAccountIdHasBeenSet; }
210 template <typename OwnerAccountIdT = Aws::String>
211 void SetOwnerAccountId(OwnerAccountIdT&& value) {
212 m_ownerAccountIdHasBeenSet = true;
213 m_ownerAccountId = std::forward<OwnerAccountIdT>(value);
214 }
215 template <typename OwnerAccountIdT = Aws::String>
216 ApplicationSummary& WithOwnerAccountId(OwnerAccountIdT&& value) {
217 SetOwnerAccountId(std::forward<OwnerAccountIdT>(value));
218 return *this;
219 }
221
223
226 inline ProxyType GetProxyType() const { return m_proxyType; }
227 inline bool ProxyTypeHasBeenSet() const { return m_proxyTypeHasBeenSet; }
228 inline void SetProxyType(ProxyType value) {
229 m_proxyTypeHasBeenSet = true;
230 m_proxyType = value;
231 }
233 SetProxyType(value);
234 return *this;
235 }
237
239
242 inline ApplicationState GetState() const { return m_state; }
243 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
244 inline void SetState(ApplicationState value) {
245 m_stateHasBeenSet = true;
246 m_state = value;
247 }
249 SetState(value);
250 return *this;
251 }
253
255
258 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
259 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
260 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
261 void SetTags(TagsT&& value) {
262 m_tagsHasBeenSet = true;
263 m_tags = std::forward<TagsT>(value);
264 }
265 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
266 ApplicationSummary& WithTags(TagsT&& value) {
267 SetTags(std::forward<TagsT>(value));
268 return *this;
269 }
270 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
271 ApplicationSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
272 m_tagsHasBeenSet = true;
273 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
274 return *this;
275 }
277
279
282 inline const Aws::String& GetVpcId() const { return m_vpcId; }
283 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
284 template <typename VpcIdT = Aws::String>
285 void SetVpcId(VpcIdT&& value) {
286 m_vpcIdHasBeenSet = true;
287 m_vpcId = std::forward<VpcIdT>(value);
288 }
289 template <typename VpcIdT = Aws::String>
290 ApplicationSummary& WithVpcId(VpcIdT&& value) {
291 SetVpcId(std::forward<VpcIdT>(value));
292 return *this;
293 }
295 private:
296 ApiGatewayProxySummary 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 bool m_apiGatewayProxyHasBeenSet = false;
324 bool m_applicationIdHasBeenSet = false;
325 bool m_arnHasBeenSet = false;
326 bool m_createdByAccountIdHasBeenSet = false;
327 bool m_createdTimeHasBeenSet = false;
328 bool m_environmentIdHasBeenSet = false;
329 bool m_errorHasBeenSet = false;
330 bool m_lastUpdatedTimeHasBeenSet = false;
331 bool m_nameHasBeenSet = false;
332 bool m_ownerAccountIdHasBeenSet = false;
333 bool m_proxyTypeHasBeenSet = false;
334 bool m_stateHasBeenSet = false;
335 bool m_tagsHasBeenSet = false;
336 bool m_vpcIdHasBeenSet = false;
337};
338
339} // namespace Model
340} // namespace MigrationHubRefactorSpaces
341} // namespace Aws
const ApiGatewayProxySummary & GetApiGatewayProxy() const
ApplicationSummary & WithState(ApplicationState value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ApplicationSummary & WithOwnerAccountId(OwnerAccountIdT &&value)
ApplicationSummary & WithEnvironmentId(EnvironmentIdT &&value)
ApplicationSummary & WithApplicationId(ApplicationIdT &&value)
AWS_MIGRATIONHUBREFACTORSPACES_API ApplicationSummary()=default
ApplicationSummary & WithApiGatewayProxy(ApiGatewayProxyT &&value)
AWS_MIGRATIONHUBREFACTORSPACES_API ApplicationSummary(Aws::Utils::Json::JsonView jsonValue)
ApplicationSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_MIGRATIONHUBREFACTORSPACES_API ApplicationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MIGRATIONHUBREFACTORSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
ApplicationSummary & WithLastUpdatedTime(LastUpdatedTimeT &&value)
ApplicationSummary & WithCreatedByAccountId(CreatedByAccountIdT &&value)
ApplicationSummary & WithCreatedTime(CreatedTimeT &&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