AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Component.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ssm-sap/SsmSap_EXPORTS.h>
11#include <aws/ssm-sap/model/AssociatedHost.h>
12#include <aws/ssm-sap/model/ComponentStatus.h>
13#include <aws/ssm-sap/model/ComponentType.h>
14#include <aws/ssm-sap/model/DatabaseConnection.h>
15#include <aws/ssm-sap/model/Resilience.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace SsmSap {
27namespace Model {
28
34class Component {
35 public:
36 AWS_SSMSAP_API Component() = default;
37 AWS_SSMSAP_API Component(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetComponentId() const { return m_componentId; }
46 inline bool ComponentIdHasBeenSet() const { return m_componentIdHasBeenSet; }
47 template <typename ComponentIdT = Aws::String>
48 void SetComponentId(ComponentIdT&& value) {
49 m_componentIdHasBeenSet = true;
50 m_componentId = std::forward<ComponentIdT>(value);
51 }
52 template <typename ComponentIdT = Aws::String>
53 Component& WithComponentId(ComponentIdT&& value) {
54 SetComponentId(std::forward<ComponentIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetSid() const { return m_sid; }
64 inline bool SidHasBeenSet() const { return m_sidHasBeenSet; }
65 template <typename SidT = Aws::String>
66 void SetSid(SidT&& value) {
67 m_sidHasBeenSet = true;
68 m_sid = std::forward<SidT>(value);
69 }
70 template <typename SidT = Aws::String>
71 Component& WithSid(SidT&& value) {
72 SetSid(std::forward<SidT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetSystemNumber() const { return m_systemNumber; }
82 inline bool SystemNumberHasBeenSet() const { return m_systemNumberHasBeenSet; }
83 template <typename SystemNumberT = Aws::String>
84 void SetSystemNumber(SystemNumberT&& value) {
85 m_systemNumberHasBeenSet = true;
86 m_systemNumber = std::forward<SystemNumberT>(value);
87 }
88 template <typename SystemNumberT = Aws::String>
89 Component& WithSystemNumber(SystemNumberT&& value) {
90 SetSystemNumber(std::forward<SystemNumberT>(value));
91 return *this;
92 }
94
96
101 inline const Aws::String& GetParentComponent() const { return m_parentComponent; }
102 inline bool ParentComponentHasBeenSet() const { return m_parentComponentHasBeenSet; }
103 template <typename ParentComponentT = Aws::String>
104 void SetParentComponent(ParentComponentT&& value) {
105 m_parentComponentHasBeenSet = true;
106 m_parentComponent = std::forward<ParentComponentT>(value);
107 }
108 template <typename ParentComponentT = Aws::String>
109 Component& WithParentComponent(ParentComponentT&& value) {
110 SetParentComponent(std::forward<ParentComponentT>(value));
111 return *this;
112 }
114
116
121 inline const Aws::Vector<Aws::String>& GetChildComponents() const { return m_childComponents; }
122 inline bool ChildComponentsHasBeenSet() const { return m_childComponentsHasBeenSet; }
123 template <typename ChildComponentsT = Aws::Vector<Aws::String>>
124 void SetChildComponents(ChildComponentsT&& value) {
125 m_childComponentsHasBeenSet = true;
126 m_childComponents = std::forward<ChildComponentsT>(value);
127 }
128 template <typename ChildComponentsT = Aws::Vector<Aws::String>>
129 Component& WithChildComponents(ChildComponentsT&& value) {
130 SetChildComponents(std::forward<ChildComponentsT>(value));
131 return *this;
132 }
133 template <typename ChildComponentsT = Aws::String>
134 Component& AddChildComponents(ChildComponentsT&& value) {
135 m_childComponentsHasBeenSet = true;
136 m_childComponents.emplace_back(std::forward<ChildComponentsT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
146 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
147 template <typename ApplicationIdT = Aws::String>
148 void SetApplicationId(ApplicationIdT&& value) {
149 m_applicationIdHasBeenSet = true;
150 m_applicationId = std::forward<ApplicationIdT>(value);
151 }
152 template <typename ApplicationIdT = Aws::String>
153 Component& WithApplicationId(ApplicationIdT&& value) {
154 SetApplicationId(std::forward<ApplicationIdT>(value));
155 return *this;
156 }
158
160
163 inline ComponentType GetComponentType() const { return m_componentType; }
164 inline bool ComponentTypeHasBeenSet() const { return m_componentTypeHasBeenSet; }
165 inline void SetComponentType(ComponentType value) {
166 m_componentTypeHasBeenSet = true;
167 m_componentType = value;
168 }
170 SetComponentType(value);
171 return *this;
172 }
174
176
190 inline ComponentStatus GetStatus() const { return m_status; }
191 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
192 inline void SetStatus(ComponentStatus value) {
193 m_statusHasBeenSet = true;
194 m_status = value;
195 }
197 SetStatus(value);
198 return *this;
199 }
201
203
206 inline const Aws::String& GetSapHostname() const { return m_sapHostname; }
207 inline bool SapHostnameHasBeenSet() const { return m_sapHostnameHasBeenSet; }
208 template <typename SapHostnameT = Aws::String>
209 void SetSapHostname(SapHostnameT&& value) {
210 m_sapHostnameHasBeenSet = true;
211 m_sapHostname = std::forward<SapHostnameT>(value);
212 }
213 template <typename SapHostnameT = Aws::String>
214 Component& WithSapHostname(SapHostnameT&& value) {
215 SetSapHostname(std::forward<SapHostnameT>(value));
216 return *this;
217 }
219
221
224 inline const Aws::String& GetSapFeature() const { return m_sapFeature; }
225 inline bool SapFeatureHasBeenSet() const { return m_sapFeatureHasBeenSet; }
226 template <typename SapFeatureT = Aws::String>
227 void SetSapFeature(SapFeatureT&& value) {
228 m_sapFeatureHasBeenSet = true;
229 m_sapFeature = std::forward<SapFeatureT>(value);
230 }
231 template <typename SapFeatureT = Aws::String>
232 Component& WithSapFeature(SapFeatureT&& value) {
233 SetSapFeature(std::forward<SapFeatureT>(value));
234 return *this;
235 }
237
239
242 inline const Aws::String& GetSapKernelVersion() const { return m_sapKernelVersion; }
243 inline bool SapKernelVersionHasBeenSet() const { return m_sapKernelVersionHasBeenSet; }
244 template <typename SapKernelVersionT = Aws::String>
245 void SetSapKernelVersion(SapKernelVersionT&& value) {
246 m_sapKernelVersionHasBeenSet = true;
247 m_sapKernelVersion = std::forward<SapKernelVersionT>(value);
248 }
249 template <typename SapKernelVersionT = Aws::String>
250 Component& WithSapKernelVersion(SapKernelVersionT&& value) {
251 SetSapKernelVersion(std::forward<SapKernelVersionT>(value));
252 return *this;
253 }
255
257
260 inline const Aws::String& GetHdbVersion() const { return m_hdbVersion; }
261 inline bool HdbVersionHasBeenSet() const { return m_hdbVersionHasBeenSet; }
262 template <typename HdbVersionT = Aws::String>
263 void SetHdbVersion(HdbVersionT&& value) {
264 m_hdbVersionHasBeenSet = true;
265 m_hdbVersion = std::forward<HdbVersionT>(value);
266 }
267 template <typename HdbVersionT = Aws::String>
268 Component& WithHdbVersion(HdbVersionT&& value) {
269 SetHdbVersion(std::forward<HdbVersionT>(value));
270 return *this;
271 }
273
275
278 inline const Resilience& GetResilience() const { return m_resilience; }
279 inline bool ResilienceHasBeenSet() const { return m_resilienceHasBeenSet; }
280 template <typename ResilienceT = Resilience>
281 void SetResilience(ResilienceT&& value) {
282 m_resilienceHasBeenSet = true;
283 m_resilience = std::forward<ResilienceT>(value);
284 }
285 template <typename ResilienceT = Resilience>
286 Component& WithResilience(ResilienceT&& value) {
287 SetResilience(std::forward<ResilienceT>(value));
288 return *this;
289 }
291
293
296 inline const AssociatedHost& GetAssociatedHost() const { return m_associatedHost; }
297 inline bool AssociatedHostHasBeenSet() const { return m_associatedHostHasBeenSet; }
298 template <typename AssociatedHostT = AssociatedHost>
299 void SetAssociatedHost(AssociatedHostT&& value) {
300 m_associatedHostHasBeenSet = true;
301 m_associatedHost = std::forward<AssociatedHostT>(value);
302 }
303 template <typename AssociatedHostT = AssociatedHost>
304 Component& WithAssociatedHost(AssociatedHostT&& value) {
305 SetAssociatedHost(std::forward<AssociatedHostT>(value));
306 return *this;
307 }
309
311
314 inline const Aws::Vector<Aws::String>& GetDatabases() const { return m_databases; }
315 inline bool DatabasesHasBeenSet() const { return m_databasesHasBeenSet; }
316 template <typename DatabasesT = Aws::Vector<Aws::String>>
317 void SetDatabases(DatabasesT&& value) {
318 m_databasesHasBeenSet = true;
319 m_databases = std::forward<DatabasesT>(value);
320 }
321 template <typename DatabasesT = Aws::Vector<Aws::String>>
322 Component& WithDatabases(DatabasesT&& value) {
323 SetDatabases(std::forward<DatabasesT>(value));
324 return *this;
325 }
326 template <typename DatabasesT = Aws::String>
327 Component& AddDatabases(DatabasesT&& value) {
328 m_databasesHasBeenSet = true;
329 m_databases.emplace_back(std::forward<DatabasesT>(value));
330 return *this;
331 }
333
335
338 inline const DatabaseConnection& GetDatabaseConnection() const { return m_databaseConnection; }
339 inline bool DatabaseConnectionHasBeenSet() const { return m_databaseConnectionHasBeenSet; }
340 template <typename DatabaseConnectionT = DatabaseConnection>
341 void SetDatabaseConnection(DatabaseConnectionT&& value) {
342 m_databaseConnectionHasBeenSet = true;
343 m_databaseConnection = std::forward<DatabaseConnectionT>(value);
344 }
345 template <typename DatabaseConnectionT = DatabaseConnection>
346 Component& WithDatabaseConnection(DatabaseConnectionT&& value) {
347 SetDatabaseConnection(std::forward<DatabaseConnectionT>(value));
348 return *this;
349 }
351
353
356 inline const Aws::Utils::DateTime& GetLastUpdated() const { return m_lastUpdated; }
357 inline bool LastUpdatedHasBeenSet() const { return m_lastUpdatedHasBeenSet; }
358 template <typename LastUpdatedT = Aws::Utils::DateTime>
359 void SetLastUpdated(LastUpdatedT&& value) {
360 m_lastUpdatedHasBeenSet = true;
361 m_lastUpdated = std::forward<LastUpdatedT>(value);
362 }
363 template <typename LastUpdatedT = Aws::Utils::DateTime>
364 Component& WithLastUpdated(LastUpdatedT&& value) {
365 SetLastUpdated(std::forward<LastUpdatedT>(value));
366 return *this;
367 }
369
371
374 inline const Aws::String& GetArn() const { return m_arn; }
375 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
376 template <typename ArnT = Aws::String>
377 void SetArn(ArnT&& value) {
378 m_arnHasBeenSet = true;
379 m_arn = std::forward<ArnT>(value);
380 }
381 template <typename ArnT = Aws::String>
382 Component& WithArn(ArnT&& value) {
383 SetArn(std::forward<ArnT>(value));
384 return *this;
385 }
387 private:
388 Aws::String m_componentId;
389
390 Aws::String m_sid;
391
392 Aws::String m_systemNumber;
393
394 Aws::String m_parentComponent;
395
396 Aws::Vector<Aws::String> m_childComponents;
397
398 Aws::String m_applicationId;
399
400 ComponentType m_componentType{ComponentType::NOT_SET};
401
403
404 Aws::String m_sapHostname;
405
406 Aws::String m_sapFeature;
407
408 Aws::String m_sapKernelVersion;
409
410 Aws::String m_hdbVersion;
411
412 Resilience m_resilience;
413
414 AssociatedHost m_associatedHost;
415
416 Aws::Vector<Aws::String> m_databases;
417
418 DatabaseConnection m_databaseConnection;
419
420 Aws::Utils::DateTime m_lastUpdated{};
421
422 Aws::String m_arn;
423 bool m_componentIdHasBeenSet = false;
424 bool m_sidHasBeenSet = false;
425 bool m_systemNumberHasBeenSet = false;
426 bool m_parentComponentHasBeenSet = false;
427 bool m_childComponentsHasBeenSet = false;
428 bool m_applicationIdHasBeenSet = false;
429 bool m_componentTypeHasBeenSet = false;
430 bool m_statusHasBeenSet = false;
431 bool m_sapHostnameHasBeenSet = false;
432 bool m_sapFeatureHasBeenSet = false;
433 bool m_sapKernelVersionHasBeenSet = false;
434 bool m_hdbVersionHasBeenSet = false;
435 bool m_resilienceHasBeenSet = false;
436 bool m_associatedHostHasBeenSet = false;
437 bool m_databasesHasBeenSet = false;
438 bool m_databaseConnectionHasBeenSet = false;
439 bool m_lastUpdatedHasBeenSet = false;
440 bool m_arnHasBeenSet = false;
441};
442
443} // namespace Model
444} // namespace SsmSap
445} // namespace Aws
Component & WithStatus(ComponentStatus value)
Definition Component.h:196
Component & WithComponentType(ComponentType value)
Definition Component.h:169
void SetSapKernelVersion(SapKernelVersionT &&value)
Definition Component.h:245
const AssociatedHost & GetAssociatedHost() const
Definition Component.h:296
bool ParentComponentHasBeenSet() const
Definition Component.h:102
const Aws::Utils::DateTime & GetLastUpdated() const
Definition Component.h:356
bool SystemNumberHasBeenSet() const
Definition Component.h:82
void SetStatus(ComponentStatus value)
Definition Component.h:192
Component & WithSystemNumber(SystemNumberT &&value)
Definition Component.h:89
void SetParentComponent(ParentComponentT &&value)
Definition Component.h:104
const Aws::String & GetApplicationId() const
Definition Component.h:145
Component & WithHdbVersion(HdbVersionT &&value)
Definition Component.h:268
AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const
void SetComponentType(ComponentType value)
Definition Component.h:165
Component & WithArn(ArnT &&value)
Definition Component.h:382
const Aws::String & GetHdbVersion() const
Definition Component.h:260
const Resilience & GetResilience() const
Definition Component.h:278
const Aws::String & GetSapFeature() const
Definition Component.h:224
void SetLastUpdated(LastUpdatedT &&value)
Definition Component.h:359
Component & WithLastUpdated(LastUpdatedT &&value)
Definition Component.h:364
Component & WithSapKernelVersion(SapKernelVersionT &&value)
Definition Component.h:250
Component & WithSapHostname(SapHostnameT &&value)
Definition Component.h:214
const Aws::String & GetArn() const
Definition Component.h:374
const Aws::String & GetComponentId() const
Definition Component.h:45
const Aws::String & GetSid() const
Definition Component.h:63
AWS_SSMSAP_API Component()=default
Component & AddDatabases(DatabasesT &&value)
Definition Component.h:327
bool DatabaseConnectionHasBeenSet() const
Definition Component.h:339
void SetSapFeature(SapFeatureT &&value)
Definition Component.h:227
void SetResilience(ResilienceT &&value)
Definition Component.h:281
bool ComponentTypeHasBeenSet() const
Definition Component.h:164
void SetDatabases(DatabasesT &&value)
Definition Component.h:317
Component & AddChildComponents(ChildComponentsT &&value)
Definition Component.h:134
bool ApplicationIdHasBeenSet() const
Definition Component.h:146
void SetComponentId(ComponentIdT &&value)
Definition Component.h:48
bool AssociatedHostHasBeenSet() const
Definition Component.h:297
const Aws::String & GetSystemNumber() const
Definition Component.h:81
Component & WithDatabases(DatabasesT &&value)
Definition Component.h:322
void SetApplicationId(ApplicationIdT &&value)
Definition Component.h:148
bool ChildComponentsHasBeenSet() const
Definition Component.h:122
void SetChildComponents(ChildComponentsT &&value)
Definition Component.h:124
Component & WithParentComponent(ParentComponentT &&value)
Definition Component.h:109
bool SapHostnameHasBeenSet() const
Definition Component.h:207
void SetSystemNumber(SystemNumberT &&value)
Definition Component.h:84
Component & WithAssociatedHost(AssociatedHostT &&value)
Definition Component.h:304
AWS_SSMSAP_API Component(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetParentComponent() const
Definition Component.h:101
bool ComponentIdHasBeenSet() const
Definition Component.h:46
Component & WithDatabaseConnection(DatabaseConnectionT &&value)
Definition Component.h:346
Component & WithSid(SidT &&value)
Definition Component.h:71
const Aws::Vector< Aws::String > & GetChildComponents() const
Definition Component.h:121
void SetHdbVersion(HdbVersionT &&value)
Definition Component.h:263
const DatabaseConnection & GetDatabaseConnection() const
Definition Component.h:338
bool ResilienceHasBeenSet() const
Definition Component.h:279
Component & WithSapFeature(SapFeatureT &&value)
Definition Component.h:232
bool HdbVersionHasBeenSet() const
Definition Component.h:261
void SetAssociatedHost(AssociatedHostT &&value)
Definition Component.h:299
AWS_SSMSAP_API Component & operator=(Aws::Utils::Json::JsonView jsonValue)
Component & WithApplicationId(ApplicationIdT &&value)
Definition Component.h:153
void SetArn(ArnT &&value)
Definition Component.h:377
bool SapFeatureHasBeenSet() const
Definition Component.h:225
const Aws::String & GetSapKernelVersion() const
Definition Component.h:242
const Aws::Vector< Aws::String > & GetDatabases() const
Definition Component.h:314
void SetSapHostname(SapHostnameT &&value)
Definition Component.h:209
void SetSid(SidT &&value)
Definition Component.h:66
ComponentStatus GetStatus() const
Definition Component.h:190
const Aws::String & GetSapHostname() const
Definition Component.h:206
Component & WithChildComponents(ChildComponentsT &&value)
Definition Component.h:129
bool SapKernelVersionHasBeenSet() const
Definition Component.h:243
Component & WithResilience(ResilienceT &&value)
Definition Component.h:286
bool LastUpdatedHasBeenSet() const
Definition Component.h:357
Component & WithComponentId(ComponentIdT &&value)
Definition Component.h:53
void SetDatabaseConnection(DatabaseConnectionT &&value)
Definition Component.h:341
ComponentType GetComponentType() const
Definition Component.h:163
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue