AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Component.h
1
6#pragma once
7#include <aws/ssm-sap/SsmSap_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ssm-sap/model/ComponentType.h>
11#include <aws/ssm-sap/model/ComponentStatus.h>
12#include <aws/ssm-sap/model/Resilience.h>
13#include <aws/ssm-sap/model/AssociatedHost.h>
14#include <aws/ssm-sap/model/DatabaseConnection.h>
15#include <aws/core/utils/DateTime.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace SsmSap
29{
30namespace Model
31{
32
39 {
40 public:
41 AWS_SSMSAP_API Component() = default;
42 AWS_SSMSAP_API Component(Aws::Utils::Json::JsonView jsonValue);
44 AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetComponentId() const { return m_componentId; }
52 inline bool ComponentIdHasBeenSet() const { return m_componentIdHasBeenSet; }
53 template<typename ComponentIdT = Aws::String>
54 void SetComponentId(ComponentIdT&& value) { m_componentIdHasBeenSet = true; m_componentId = std::forward<ComponentIdT>(value); }
55 template<typename ComponentIdT = Aws::String>
56 Component& WithComponentId(ComponentIdT&& value) { SetComponentId(std::forward<ComponentIdT>(value)); return *this;}
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) { m_sidHasBeenSet = true; m_sid = std::forward<SidT>(value); }
67 template<typename SidT = Aws::String>
68 Component& WithSid(SidT&& value) { SetSid(std::forward<SidT>(value)); return *this;}
70
72
75 inline const Aws::String& GetSystemNumber() const { return m_systemNumber; }
76 inline bool SystemNumberHasBeenSet() const { return m_systemNumberHasBeenSet; }
77 template<typename SystemNumberT = Aws::String>
78 void SetSystemNumber(SystemNumberT&& value) { m_systemNumberHasBeenSet = true; m_systemNumber = std::forward<SystemNumberT>(value); }
79 template<typename SystemNumberT = Aws::String>
80 Component& WithSystemNumber(SystemNumberT&& value) { SetSystemNumber(std::forward<SystemNumberT>(value)); return *this;}
82
84
89 inline const Aws::String& GetParentComponent() const { return m_parentComponent; }
90 inline bool ParentComponentHasBeenSet() const { return m_parentComponentHasBeenSet; }
91 template<typename ParentComponentT = Aws::String>
92 void SetParentComponent(ParentComponentT&& value) { m_parentComponentHasBeenSet = true; m_parentComponent = std::forward<ParentComponentT>(value); }
93 template<typename ParentComponentT = Aws::String>
94 Component& WithParentComponent(ParentComponentT&& value) { SetParentComponent(std::forward<ParentComponentT>(value)); return *this;}
96
98
103 inline const Aws::Vector<Aws::String>& GetChildComponents() const { return m_childComponents; }
104 inline bool ChildComponentsHasBeenSet() const { return m_childComponentsHasBeenSet; }
105 template<typename ChildComponentsT = Aws::Vector<Aws::String>>
106 void SetChildComponents(ChildComponentsT&& value) { m_childComponentsHasBeenSet = true; m_childComponents = std::forward<ChildComponentsT>(value); }
107 template<typename ChildComponentsT = Aws::Vector<Aws::String>>
108 Component& WithChildComponents(ChildComponentsT&& value) { SetChildComponents(std::forward<ChildComponentsT>(value)); return *this;}
109 template<typename ChildComponentsT = Aws::String>
110 Component& AddChildComponents(ChildComponentsT&& value) { m_childComponentsHasBeenSet = true; m_childComponents.emplace_back(std::forward<ChildComponentsT>(value)); return *this; }
112
114
117 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
118 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
119 template<typename ApplicationIdT = Aws::String>
120 void SetApplicationId(ApplicationIdT&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::forward<ApplicationIdT>(value); }
121 template<typename ApplicationIdT = Aws::String>
122 Component& WithApplicationId(ApplicationIdT&& value) { SetApplicationId(std::forward<ApplicationIdT>(value)); return *this;}
124
126
129 inline ComponentType GetComponentType() const { return m_componentType; }
130 inline bool ComponentTypeHasBeenSet() const { return m_componentTypeHasBeenSet; }
131 inline void SetComponentType(ComponentType value) { m_componentTypeHasBeenSet = true; m_componentType = value; }
132 inline Component& WithComponentType(ComponentType value) { SetComponentType(value); return *this;}
134
136
150 inline ComponentStatus GetStatus() const { return m_status; }
151 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
152 inline void SetStatus(ComponentStatus value) { m_statusHasBeenSet = true; m_status = value; }
153 inline Component& WithStatus(ComponentStatus value) { SetStatus(value); return *this;}
155
157
160 inline const Aws::String& GetSapHostname() const { return m_sapHostname; }
161 inline bool SapHostnameHasBeenSet() const { return m_sapHostnameHasBeenSet; }
162 template<typename SapHostnameT = Aws::String>
163 void SetSapHostname(SapHostnameT&& value) { m_sapHostnameHasBeenSet = true; m_sapHostname = std::forward<SapHostnameT>(value); }
164 template<typename SapHostnameT = Aws::String>
165 Component& WithSapHostname(SapHostnameT&& value) { SetSapHostname(std::forward<SapHostnameT>(value)); return *this;}
167
169
172 inline const Aws::String& GetSapFeature() const { return m_sapFeature; }
173 inline bool SapFeatureHasBeenSet() const { return m_sapFeatureHasBeenSet; }
174 template<typename SapFeatureT = Aws::String>
175 void SetSapFeature(SapFeatureT&& value) { m_sapFeatureHasBeenSet = true; m_sapFeature = std::forward<SapFeatureT>(value); }
176 template<typename SapFeatureT = Aws::String>
177 Component& WithSapFeature(SapFeatureT&& value) { SetSapFeature(std::forward<SapFeatureT>(value)); return *this;}
179
181
184 inline const Aws::String& GetSapKernelVersion() const { return m_sapKernelVersion; }
185 inline bool SapKernelVersionHasBeenSet() const { return m_sapKernelVersionHasBeenSet; }
186 template<typename SapKernelVersionT = Aws::String>
187 void SetSapKernelVersion(SapKernelVersionT&& value) { m_sapKernelVersionHasBeenSet = true; m_sapKernelVersion = std::forward<SapKernelVersionT>(value); }
188 template<typename SapKernelVersionT = Aws::String>
189 Component& WithSapKernelVersion(SapKernelVersionT&& value) { SetSapKernelVersion(std::forward<SapKernelVersionT>(value)); return *this;}
191
193
196 inline const Aws::String& GetHdbVersion() const { return m_hdbVersion; }
197 inline bool HdbVersionHasBeenSet() const { return m_hdbVersionHasBeenSet; }
198 template<typename HdbVersionT = Aws::String>
199 void SetHdbVersion(HdbVersionT&& value) { m_hdbVersionHasBeenSet = true; m_hdbVersion = std::forward<HdbVersionT>(value); }
200 template<typename HdbVersionT = Aws::String>
201 Component& WithHdbVersion(HdbVersionT&& value) { SetHdbVersion(std::forward<HdbVersionT>(value)); return *this;}
203
205
208 inline const Resilience& GetResilience() const { return m_resilience; }
209 inline bool ResilienceHasBeenSet() const { return m_resilienceHasBeenSet; }
210 template<typename ResilienceT = Resilience>
211 void SetResilience(ResilienceT&& value) { m_resilienceHasBeenSet = true; m_resilience = std::forward<ResilienceT>(value); }
212 template<typename ResilienceT = Resilience>
213 Component& WithResilience(ResilienceT&& value) { SetResilience(std::forward<ResilienceT>(value)); return *this;}
215
217
220 inline const AssociatedHost& GetAssociatedHost() const { return m_associatedHost; }
221 inline bool AssociatedHostHasBeenSet() const { return m_associatedHostHasBeenSet; }
222 template<typename AssociatedHostT = AssociatedHost>
223 void SetAssociatedHost(AssociatedHostT&& value) { m_associatedHostHasBeenSet = true; m_associatedHost = std::forward<AssociatedHostT>(value); }
224 template<typename AssociatedHostT = AssociatedHost>
225 Component& WithAssociatedHost(AssociatedHostT&& value) { SetAssociatedHost(std::forward<AssociatedHostT>(value)); return *this;}
227
229
232 inline const Aws::Vector<Aws::String>& GetDatabases() const { return m_databases; }
233 inline bool DatabasesHasBeenSet() const { return m_databasesHasBeenSet; }
234 template<typename DatabasesT = Aws::Vector<Aws::String>>
235 void SetDatabases(DatabasesT&& value) { m_databasesHasBeenSet = true; m_databases = std::forward<DatabasesT>(value); }
236 template<typename DatabasesT = Aws::Vector<Aws::String>>
237 Component& WithDatabases(DatabasesT&& value) { SetDatabases(std::forward<DatabasesT>(value)); return *this;}
238 template<typename DatabasesT = Aws::String>
239 Component& AddDatabases(DatabasesT&& value) { m_databasesHasBeenSet = true; m_databases.emplace_back(std::forward<DatabasesT>(value)); return *this; }
241
243
246 inline const DatabaseConnection& GetDatabaseConnection() const { return m_databaseConnection; }
247 inline bool DatabaseConnectionHasBeenSet() const { return m_databaseConnectionHasBeenSet; }
248 template<typename DatabaseConnectionT = DatabaseConnection>
249 void SetDatabaseConnection(DatabaseConnectionT&& value) { m_databaseConnectionHasBeenSet = true; m_databaseConnection = std::forward<DatabaseConnectionT>(value); }
250 template<typename DatabaseConnectionT = DatabaseConnection>
251 Component& WithDatabaseConnection(DatabaseConnectionT&& value) { SetDatabaseConnection(std::forward<DatabaseConnectionT>(value)); return *this;}
253
255
258 inline const Aws::Utils::DateTime& GetLastUpdated() const { return m_lastUpdated; }
259 inline bool LastUpdatedHasBeenSet() const { return m_lastUpdatedHasBeenSet; }
260 template<typename LastUpdatedT = Aws::Utils::DateTime>
261 void SetLastUpdated(LastUpdatedT&& value) { m_lastUpdatedHasBeenSet = true; m_lastUpdated = std::forward<LastUpdatedT>(value); }
262 template<typename LastUpdatedT = Aws::Utils::DateTime>
263 Component& WithLastUpdated(LastUpdatedT&& value) { SetLastUpdated(std::forward<LastUpdatedT>(value)); return *this;}
265
267
270 inline const Aws::String& GetArn() const { return m_arn; }
271 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
272 template<typename ArnT = Aws::String>
273 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
274 template<typename ArnT = Aws::String>
275 Component& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
277 private:
278
279 Aws::String m_componentId;
280 bool m_componentIdHasBeenSet = false;
281
282 Aws::String m_sid;
283 bool m_sidHasBeenSet = false;
284
285 Aws::String m_systemNumber;
286 bool m_systemNumberHasBeenSet = false;
287
288 Aws::String m_parentComponent;
289 bool m_parentComponentHasBeenSet = false;
290
291 Aws::Vector<Aws::String> m_childComponents;
292 bool m_childComponentsHasBeenSet = false;
293
294 Aws::String m_applicationId;
295 bool m_applicationIdHasBeenSet = false;
296
297 ComponentType m_componentType{ComponentType::NOT_SET};
298 bool m_componentTypeHasBeenSet = false;
299
301 bool m_statusHasBeenSet = false;
302
303 Aws::String m_sapHostname;
304 bool m_sapHostnameHasBeenSet = false;
305
306 Aws::String m_sapFeature;
307 bool m_sapFeatureHasBeenSet = false;
308
309 Aws::String m_sapKernelVersion;
310 bool m_sapKernelVersionHasBeenSet = false;
311
312 Aws::String m_hdbVersion;
313 bool m_hdbVersionHasBeenSet = false;
314
315 Resilience m_resilience;
316 bool m_resilienceHasBeenSet = false;
317
318 AssociatedHost m_associatedHost;
319 bool m_associatedHostHasBeenSet = false;
320
321 Aws::Vector<Aws::String> m_databases;
322 bool m_databasesHasBeenSet = false;
323
324 DatabaseConnection m_databaseConnection;
325 bool m_databaseConnectionHasBeenSet = false;
326
327 Aws::Utils::DateTime m_lastUpdated{};
328 bool m_lastUpdatedHasBeenSet = false;
329
330 Aws::String m_arn;
331 bool m_arnHasBeenSet = false;
332 };
333
334} // namespace Model
335} // namespace SsmSap
336} // namespace Aws
Component & WithStatus(ComponentStatus value)
Definition Component.h:153
Component & WithComponentType(ComponentType value)
Definition Component.h:132
void SetSapKernelVersion(SapKernelVersionT &&value)
Definition Component.h:187
const AssociatedHost & GetAssociatedHost() const
Definition Component.h:220
bool ParentComponentHasBeenSet() const
Definition Component.h:90
const Aws::Utils::DateTime & GetLastUpdated() const
Definition Component.h:258
bool SystemNumberHasBeenSet() const
Definition Component.h:76
void SetStatus(ComponentStatus value)
Definition Component.h:152
Component & WithSystemNumber(SystemNumberT &&value)
Definition Component.h:80
void SetParentComponent(ParentComponentT &&value)
Definition Component.h:92
const Aws::String & GetApplicationId() const
Definition Component.h:117
Component & WithHdbVersion(HdbVersionT &&value)
Definition Component.h:201
AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const
void SetComponentType(ComponentType value)
Definition Component.h:131
Component & WithArn(ArnT &&value)
Definition Component.h:275
const Aws::String & GetHdbVersion() const
Definition Component.h:196
const Resilience & GetResilience() const
Definition Component.h:208
const Aws::String & GetSapFeature() const
Definition Component.h:172
void SetLastUpdated(LastUpdatedT &&value)
Definition Component.h:261
Component & WithLastUpdated(LastUpdatedT &&value)
Definition Component.h:263
Component & WithSapKernelVersion(SapKernelVersionT &&value)
Definition Component.h:189
Component & WithSapHostname(SapHostnameT &&value)
Definition Component.h:165
const Aws::String & GetArn() const
Definition Component.h:270
const Aws::String & GetComponentId() const
Definition Component.h:51
const Aws::String & GetSid() const
Definition Component.h:63
AWS_SSMSAP_API Component()=default
Component & AddDatabases(DatabasesT &&value)
Definition Component.h:239
bool DatabaseConnectionHasBeenSet() const
Definition Component.h:247
void SetSapFeature(SapFeatureT &&value)
Definition Component.h:175
void SetResilience(ResilienceT &&value)
Definition Component.h:211
bool ComponentTypeHasBeenSet() const
Definition Component.h:130
void SetDatabases(DatabasesT &&value)
Definition Component.h:235
Component & AddChildComponents(ChildComponentsT &&value)
Definition Component.h:110
bool ApplicationIdHasBeenSet() const
Definition Component.h:118
void SetComponentId(ComponentIdT &&value)
Definition Component.h:54
bool AssociatedHostHasBeenSet() const
Definition Component.h:221
const Aws::String & GetSystemNumber() const
Definition Component.h:75
Component & WithDatabases(DatabasesT &&value)
Definition Component.h:237
void SetApplicationId(ApplicationIdT &&value)
Definition Component.h:120
bool ChildComponentsHasBeenSet() const
Definition Component.h:104
void SetChildComponents(ChildComponentsT &&value)
Definition Component.h:106
Component & WithParentComponent(ParentComponentT &&value)
Definition Component.h:94
bool SapHostnameHasBeenSet() const
Definition Component.h:161
void SetSystemNumber(SystemNumberT &&value)
Definition Component.h:78
Component & WithAssociatedHost(AssociatedHostT &&value)
Definition Component.h:225
AWS_SSMSAP_API Component(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetParentComponent() const
Definition Component.h:89
bool ComponentIdHasBeenSet() const
Definition Component.h:52
Component & WithDatabaseConnection(DatabaseConnectionT &&value)
Definition Component.h:251
Component & WithSid(SidT &&value)
Definition Component.h:68
const Aws::Vector< Aws::String > & GetChildComponents() const
Definition Component.h:103
void SetHdbVersion(HdbVersionT &&value)
Definition Component.h:199
const DatabaseConnection & GetDatabaseConnection() const
Definition Component.h:246
bool ResilienceHasBeenSet() const
Definition Component.h:209
Component & WithSapFeature(SapFeatureT &&value)
Definition Component.h:177
bool HdbVersionHasBeenSet() const
Definition Component.h:197
void SetAssociatedHost(AssociatedHostT &&value)
Definition Component.h:223
AWS_SSMSAP_API Component & operator=(Aws::Utils::Json::JsonView jsonValue)
Component & WithApplicationId(ApplicationIdT &&value)
Definition Component.h:122
void SetArn(ArnT &&value)
Definition Component.h:273
bool SapFeatureHasBeenSet() const
Definition Component.h:173
const Aws::String & GetSapKernelVersion() const
Definition Component.h:184
const Aws::Vector< Aws::String > & GetDatabases() const
Definition Component.h:232
void SetSapHostname(SapHostnameT &&value)
Definition Component.h:163
void SetSid(SidT &&value)
Definition Component.h:66
ComponentStatus GetStatus() const
Definition Component.h:150
const Aws::String & GetSapHostname() const
Definition Component.h:160
Component & WithChildComponents(ChildComponentsT &&value)
Definition Component.h:108
bool SapKernelVersionHasBeenSet() const
Definition Component.h:185
Component & WithResilience(ResilienceT &&value)
Definition Component.h:213
bool LastUpdatedHasBeenSet() const
Definition Component.h:259
Component & WithComponentId(ComponentIdT &&value)
Definition Component.h:56
void SetDatabaseConnection(DatabaseConnectionT &&value)
Definition Component.h:249
ComponentType GetComponentType() const
Definition Component.h:129
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue