AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateCloudVmClusterRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/odb/OdbRequest.h>
12#include <aws/odb/Odb_EXPORTS.h>
13#include <aws/odb/model/DataCollectionOptions.h>
14#include <aws/odb/model/LicenseModel.h>
15
16#include <utility>
17
18namespace Aws {
19namespace odb {
20namespace Model {
21
25 public:
26 AWS_ODB_API CreateCloudVmClusterRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateCloudVmCluster"; }
33
34 AWS_ODB_API Aws::String SerializePayload() const override;
35
37
39
42 inline const Aws::String& GetCloudExadataInfrastructureId() const { return m_cloudExadataInfrastructureId; }
43 inline bool CloudExadataInfrastructureIdHasBeenSet() const { return m_cloudExadataInfrastructureIdHasBeenSet; }
44 template <typename CloudExadataInfrastructureIdT = Aws::String>
45 void SetCloudExadataInfrastructureId(CloudExadataInfrastructureIdT&& value) {
46 m_cloudExadataInfrastructureIdHasBeenSet = true;
47 m_cloudExadataInfrastructureId = std::forward<CloudExadataInfrastructureIdT>(value);
48 }
49 template <typename CloudExadataInfrastructureIdT = Aws::String>
50 CreateCloudVmClusterRequest& WithCloudExadataInfrastructureId(CloudExadataInfrastructureIdT&& value) {
51 SetCloudExadataInfrastructureId(std::forward<CloudExadataInfrastructureIdT>(value));
52 return *this;
53 }
55
57
60 inline int GetCpuCoreCount() const { return m_cpuCoreCount; }
61 inline bool CpuCoreCountHasBeenSet() const { return m_cpuCoreCountHasBeenSet; }
62 inline void SetCpuCoreCount(int value) {
63 m_cpuCoreCountHasBeenSet = true;
64 m_cpuCoreCount = value;
65 }
67 SetCpuCoreCount(value);
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDisplayName() const { return m_displayName; }
77 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
78 template <typename DisplayNameT = Aws::String>
79 void SetDisplayName(DisplayNameT&& value) {
80 m_displayNameHasBeenSet = true;
81 m_displayName = std::forward<DisplayNameT>(value);
82 }
83 template <typename DisplayNameT = Aws::String>
85 SetDisplayName(std::forward<DisplayNameT>(value));
86 return *this;
87 }
89
91
96 inline const Aws::String& GetGiVersion() const { return m_giVersion; }
97 inline bool GiVersionHasBeenSet() const { return m_giVersionHasBeenSet; }
98 template <typename GiVersionT = Aws::String>
99 void SetGiVersion(GiVersionT&& value) {
100 m_giVersionHasBeenSet = true;
101 m_giVersion = std::forward<GiVersionT>(value);
102 }
103 template <typename GiVersionT = Aws::String>
105 SetGiVersion(std::forward<GiVersionT>(value));
106 return *this;
107 }
109
111
118 inline const Aws::String& GetHostname() const { return m_hostname; }
119 inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; }
120 template <typename HostnameT = Aws::String>
121 void SetHostname(HostnameT&& value) {
122 m_hostnameHasBeenSet = true;
123 m_hostname = std::forward<HostnameT>(value);
124 }
125 template <typename HostnameT = Aws::String>
127 SetHostname(std::forward<HostnameT>(value));
128 return *this;
129 }
131
133
137 inline const Aws::Vector<Aws::String>& GetSshPublicKeys() const { return m_sshPublicKeys; }
138 inline bool SshPublicKeysHasBeenSet() const { return m_sshPublicKeysHasBeenSet; }
139 template <typename SshPublicKeysT = Aws::Vector<Aws::String>>
140 void SetSshPublicKeys(SshPublicKeysT&& value) {
141 m_sshPublicKeysHasBeenSet = true;
142 m_sshPublicKeys = std::forward<SshPublicKeysT>(value);
143 }
144 template <typename SshPublicKeysT = Aws::Vector<Aws::String>>
146 SetSshPublicKeys(std::forward<SshPublicKeysT>(value));
147 return *this;
148 }
149 template <typename SshPublicKeysT = Aws::String>
151 m_sshPublicKeysHasBeenSet = true;
152 m_sshPublicKeys.emplace_back(std::forward<SshPublicKeysT>(value));
153 return *this;
154 }
156
158
161 inline const Aws::String& GetOdbNetworkId() const { return m_odbNetworkId; }
162 inline bool OdbNetworkIdHasBeenSet() const { return m_odbNetworkIdHasBeenSet; }
163 template <typename OdbNetworkIdT = Aws::String>
164 void SetOdbNetworkId(OdbNetworkIdT&& value) {
165 m_odbNetworkIdHasBeenSet = true;
166 m_odbNetworkId = std::forward<OdbNetworkIdT>(value);
167 }
168 template <typename OdbNetworkIdT = Aws::String>
170 SetOdbNetworkId(std::forward<OdbNetworkIdT>(value));
171 return *this;
172 }
174
176
180 inline const Aws::String& GetClusterName() const { return m_clusterName; }
181 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
182 template <typename ClusterNameT = Aws::String>
183 void SetClusterName(ClusterNameT&& value) {
184 m_clusterNameHasBeenSet = true;
185 m_clusterName = std::forward<ClusterNameT>(value);
186 }
187 template <typename ClusterNameT = Aws::String>
189 SetClusterName(std::forward<ClusterNameT>(value));
190 return *this;
191 }
193
195
199 inline const DataCollectionOptions& GetDataCollectionOptions() const { return m_dataCollectionOptions; }
200 inline bool DataCollectionOptionsHasBeenSet() const { return m_dataCollectionOptionsHasBeenSet; }
201 template <typename DataCollectionOptionsT = DataCollectionOptions>
202 void SetDataCollectionOptions(DataCollectionOptionsT&& value) {
203 m_dataCollectionOptionsHasBeenSet = true;
204 m_dataCollectionOptions = std::forward<DataCollectionOptionsT>(value);
205 }
206 template <typename DataCollectionOptionsT = DataCollectionOptions>
208 SetDataCollectionOptions(std::forward<DataCollectionOptionsT>(value));
209 return *this;
210 }
212
214
218 inline double GetDataStorageSizeInTBs() const { return m_dataStorageSizeInTBs; }
219 inline bool DataStorageSizeInTBsHasBeenSet() const { return m_dataStorageSizeInTBsHasBeenSet; }
220 inline void SetDataStorageSizeInTBs(double value) {
221 m_dataStorageSizeInTBsHasBeenSet = true;
222 m_dataStorageSizeInTBs = value;
223 }
226 return *this;
227 }
229
231
235 inline int GetDbNodeStorageSizeInGBs() const { return m_dbNodeStorageSizeInGBs; }
236 inline bool DbNodeStorageSizeInGBsHasBeenSet() const { return m_dbNodeStorageSizeInGBsHasBeenSet; }
237 inline void SetDbNodeStorageSizeInGBs(int value) {
238 m_dbNodeStorageSizeInGBsHasBeenSet = true;
239 m_dbNodeStorageSizeInGBs = value;
240 }
243 return *this;
244 }
246
248
251 inline const Aws::Vector<Aws::String>& GetDbServers() const { return m_dbServers; }
252 inline bool DbServersHasBeenSet() const { return m_dbServersHasBeenSet; }
253 template <typename DbServersT = Aws::Vector<Aws::String>>
254 void SetDbServers(DbServersT&& value) {
255 m_dbServersHasBeenSet = true;
256 m_dbServers = std::forward<DbServersT>(value);
257 }
258 template <typename DbServersT = Aws::Vector<Aws::String>>
260 SetDbServers(std::forward<DbServersT>(value));
261 return *this;
262 }
263 template <typename DbServersT = Aws::String>
265 m_dbServersHasBeenSet = true;
266 m_dbServers.emplace_back(std::forward<DbServersT>(value));
267 return *this;
268 }
270
272
275 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
276 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
277 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
278 void SetTags(TagsT&& value) {
279 m_tagsHasBeenSet = true;
280 m_tags = std::forward<TagsT>(value);
281 }
282 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
284 SetTags(std::forward<TagsT>(value));
285 return *this;
286 }
287 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
288 CreateCloudVmClusterRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
289 m_tagsHasBeenSet = true;
290 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
291 return *this;
292 }
294
296
300 inline bool GetIsLocalBackupEnabled() const { return m_isLocalBackupEnabled; }
301 inline bool IsLocalBackupEnabledHasBeenSet() const { return m_isLocalBackupEnabledHasBeenSet; }
302 inline void SetIsLocalBackupEnabled(bool value) {
303 m_isLocalBackupEnabledHasBeenSet = true;
304 m_isLocalBackupEnabled = value;
305 }
308 return *this;
309 }
311
313
316 inline bool GetIsSparseDiskgroupEnabled() const { return m_isSparseDiskgroupEnabled; }
317 inline bool IsSparseDiskgroupEnabledHasBeenSet() const { return m_isSparseDiskgroupEnabledHasBeenSet; }
318 inline void SetIsSparseDiskgroupEnabled(bool value) {
319 m_isSparseDiskgroupEnabledHasBeenSet = true;
320 m_isSparseDiskgroupEnabled = value;
321 }
324 return *this;
325 }
327
329
333 inline LicenseModel GetLicenseModel() const { return m_licenseModel; }
334 inline bool LicenseModelHasBeenSet() const { return m_licenseModelHasBeenSet; }
335 inline void SetLicenseModel(LicenseModel value) {
336 m_licenseModelHasBeenSet = true;
337 m_licenseModel = value;
338 }
340 SetLicenseModel(value);
341 return *this;
342 }
344
346
349 inline int GetMemorySizeInGBs() const { return m_memorySizeInGBs; }
350 inline bool MemorySizeInGBsHasBeenSet() const { return m_memorySizeInGBsHasBeenSet; }
351 inline void SetMemorySizeInGBs(int value) {
352 m_memorySizeInGBsHasBeenSet = true;
353 m_memorySizeInGBs = value;
354 }
356 SetMemorySizeInGBs(value);
357 return *this;
358 }
360
362
365 inline const Aws::String& GetSystemVersion() const { return m_systemVersion; }
366 inline bool SystemVersionHasBeenSet() const { return m_systemVersionHasBeenSet; }
367 template <typename SystemVersionT = Aws::String>
368 void SetSystemVersion(SystemVersionT&& value) {
369 m_systemVersionHasBeenSet = true;
370 m_systemVersion = std::forward<SystemVersionT>(value);
371 }
372 template <typename SystemVersionT = Aws::String>
374 SetSystemVersion(std::forward<SystemVersionT>(value));
375 return *this;
376 }
378
380
384 inline const Aws::String& GetTimeZone() const { return m_timeZone; }
385 inline bool TimeZoneHasBeenSet() const { return m_timeZoneHasBeenSet; }
386 template <typename TimeZoneT = Aws::String>
387 void SetTimeZone(TimeZoneT&& value) {
388 m_timeZoneHasBeenSet = true;
389 m_timeZone = std::forward<TimeZoneT>(value);
390 }
391 template <typename TimeZoneT = Aws::String>
393 SetTimeZone(std::forward<TimeZoneT>(value));
394 return *this;
395 }
397
399
406 inline const Aws::String& GetClientToken() const { return m_clientToken; }
407 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
408 template <typename ClientTokenT = Aws::String>
409 void SetClientToken(ClientTokenT&& value) {
410 m_clientTokenHasBeenSet = true;
411 m_clientToken = std::forward<ClientTokenT>(value);
412 }
413 template <typename ClientTokenT = Aws::String>
415 SetClientToken(std::forward<ClientTokenT>(value));
416 return *this;
417 }
419
421
428 inline int GetScanListenerPortTcp() const { return m_scanListenerPortTcp; }
429 inline bool ScanListenerPortTcpHasBeenSet() const { return m_scanListenerPortTcpHasBeenSet; }
430 inline void SetScanListenerPortTcp(int value) {
431 m_scanListenerPortTcpHasBeenSet = true;
432 m_scanListenerPortTcp = value;
433 }
436 return *this;
437 }
439 private:
440 Aws::String m_cloudExadataInfrastructureId;
441
442 int m_cpuCoreCount{0};
443
444 Aws::String m_displayName;
445
446 Aws::String m_giVersion;
447
448 Aws::String m_hostname;
449
450 Aws::Vector<Aws::String> m_sshPublicKeys;
451
452 Aws::String m_odbNetworkId;
453
454 Aws::String m_clusterName;
455
456 DataCollectionOptions m_dataCollectionOptions;
457
458 double m_dataStorageSizeInTBs{0.0};
459
460 int m_dbNodeStorageSizeInGBs{0};
461
462 Aws::Vector<Aws::String> m_dbServers;
463
465
466 bool m_isLocalBackupEnabled{false};
467
468 bool m_isSparseDiskgroupEnabled{false};
469
470 LicenseModel m_licenseModel{LicenseModel::NOT_SET};
471
472 int m_memorySizeInGBs{0};
473
474 Aws::String m_systemVersion;
475
476 Aws::String m_timeZone;
477
479
480 int m_scanListenerPortTcp{0};
481 bool m_cloudExadataInfrastructureIdHasBeenSet = false;
482 bool m_cpuCoreCountHasBeenSet = false;
483 bool m_displayNameHasBeenSet = false;
484 bool m_giVersionHasBeenSet = false;
485 bool m_hostnameHasBeenSet = false;
486 bool m_sshPublicKeysHasBeenSet = false;
487 bool m_odbNetworkIdHasBeenSet = false;
488 bool m_clusterNameHasBeenSet = false;
489 bool m_dataCollectionOptionsHasBeenSet = false;
490 bool m_dataStorageSizeInTBsHasBeenSet = false;
491 bool m_dbNodeStorageSizeInGBsHasBeenSet = false;
492 bool m_dbServersHasBeenSet = false;
493 bool m_tagsHasBeenSet = false;
494 bool m_isLocalBackupEnabledHasBeenSet = false;
495 bool m_isSparseDiskgroupEnabledHasBeenSet = false;
496 bool m_licenseModelHasBeenSet = false;
497 bool m_memorySizeInGBsHasBeenSet = false;
498 bool m_systemVersionHasBeenSet = false;
499 bool m_timeZoneHasBeenSet = false;
500 bool m_clientTokenHasBeenSet = true;
501 bool m_scanListenerPortTcpHasBeenSet = false;
502};
503
504} // namespace Model
505} // namespace odb
506} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
const Aws::Vector< Aws::String > & GetSshPublicKeys() const
CreateCloudVmClusterRequest & WithLicenseModel(LicenseModel value)
void SetCloudExadataInfrastructureId(CloudExadataInfrastructureIdT &&value)
CreateCloudVmClusterRequest & WithClientToken(ClientTokenT &&value)
CreateCloudVmClusterRequest & AddSshPublicKeys(SshPublicKeysT &&value)
CreateCloudVmClusterRequest & AddDbServers(DbServersT &&value)
void SetDataCollectionOptions(DataCollectionOptionsT &&value)
CreateCloudVmClusterRequest & WithScanListenerPortTcp(int value)
CreateCloudVmClusterRequest & WithOdbNetworkId(OdbNetworkIdT &&value)
CreateCloudVmClusterRequest & WithDbNodeStorageSizeInGBs(int value)
CreateCloudVmClusterRequest & WithIsSparseDiskgroupEnabled(bool value)
CreateCloudVmClusterRequest & WithIsLocalBackupEnabled(bool value)
CreateCloudVmClusterRequest & WithHostname(HostnameT &&value)
CreateCloudVmClusterRequest & WithDataStorageSizeInTBs(double value)
CreateCloudVmClusterRequest & WithDisplayName(DisplayNameT &&value)
CreateCloudVmClusterRequest & WithCpuCoreCount(int value)
AWS_ODB_API CreateCloudVmClusterRequest()=default
CreateCloudVmClusterRequest & WithTimeZone(TimeZoneT &&value)
AWS_ODB_API Aws::String SerializePayload() const override
CreateCloudVmClusterRequest & WithDbServers(DbServersT &&value)
CreateCloudVmClusterRequest & WithSystemVersion(SystemVersionT &&value)
CreateCloudVmClusterRequest & WithSshPublicKeys(SshPublicKeysT &&value)
CreateCloudVmClusterRequest & WithDataCollectionOptions(DataCollectionOptionsT &&value)
CreateCloudVmClusterRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
virtual const char * GetServiceRequestName() const override
CreateCloudVmClusterRequest & WithTags(TagsT &&value)
CreateCloudVmClusterRequest & WithMemorySizeInGBs(int value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::Vector< Aws::String > & GetDbServers() const
CreateCloudVmClusterRequest & WithClusterName(ClusterNameT &&value)
const DataCollectionOptions & GetDataCollectionOptions() const
AWS_ODB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateCloudVmClusterRequest & WithCloudExadataInfrastructureId(CloudExadataInfrastructureIdT &&value)
CreateCloudVmClusterRequest & WithGiVersion(GiVersionT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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
std::vector< T, Aws::Allocator< T > > Vector