AWS SDK for C++

AWS SDK for C++ Version 1.11.938

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/FileSystemConfigurationDetails.h>
15#include <aws/odb/model/LicenseModel.h>
16#include <aws/odb/model/VmStorageType.h>
17
18#include <utility>
19
20namespace Aws {
21namespace odb {
22namespace Model {
23
27 public:
28 AWS_ODB_API CreateCloudVmClusterRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateCloudVmCluster"; }
35
36 AWS_ODB_API Aws::String SerializePayload() const override;
37
39
41
44 inline const Aws::String& GetCloudExadataInfrastructureId() const { return m_cloudExadataInfrastructureId; }
45 inline bool CloudExadataInfrastructureIdHasBeenSet() const { return m_cloudExadataInfrastructureIdHasBeenSet; }
46 template <typename CloudExadataInfrastructureIdT = Aws::String>
47 void SetCloudExadataInfrastructureId(CloudExadataInfrastructureIdT&& value) {
48 m_cloudExadataInfrastructureIdHasBeenSet = true;
49 m_cloudExadataInfrastructureId = std::forward<CloudExadataInfrastructureIdT>(value);
50 }
51 template <typename CloudExadataInfrastructureIdT = Aws::String>
52 CreateCloudVmClusterRequest& WithCloudExadataInfrastructureId(CloudExadataInfrastructureIdT&& value) {
53 SetCloudExadataInfrastructureId(std::forward<CloudExadataInfrastructureIdT>(value));
54 return *this;
55 }
57
59
64 inline const Aws::String& GetExascaleDbStorageVaultId() const { return m_exascaleDbStorageVaultId; }
65 inline bool ExascaleDbStorageVaultIdHasBeenSet() const { return m_exascaleDbStorageVaultIdHasBeenSet; }
66 template <typename ExascaleDbStorageVaultIdT = Aws::String>
67 void SetExascaleDbStorageVaultId(ExascaleDbStorageVaultIdT&& value) {
68 m_exascaleDbStorageVaultIdHasBeenSet = true;
69 m_exascaleDbStorageVaultId = std::forward<ExascaleDbStorageVaultIdT>(value);
70 }
71 template <typename ExascaleDbStorageVaultIdT = Aws::String>
72 CreateCloudVmClusterRequest& WithExascaleDbStorageVaultId(ExascaleDbStorageVaultIdT&& value) {
73 SetExascaleDbStorageVaultId(std::forward<ExascaleDbStorageVaultIdT>(value));
74 return *this;
75 }
77
79
85 inline VmStorageType GetVmFileSystemStorageType() const { return m_vmFileSystemStorageType; }
86 inline bool VmFileSystemStorageTypeHasBeenSet() const { return m_vmFileSystemStorageTypeHasBeenSet; }
88 m_vmFileSystemStorageTypeHasBeenSet = true;
89 m_vmFileSystemStorageType = value;
90 }
96
98
103 inline VmStorageType GetVmBackupStorageType() const { return m_vmBackupStorageType; }
104 inline bool VmBackupStorageTypeHasBeenSet() const { return m_vmBackupStorageTypeHasBeenSet; }
106 m_vmBackupStorageTypeHasBeenSet = true;
107 m_vmBackupStorageType = value;
108 }
114
116
121 return m_fileSystemConfigurationDetails;
122 }
123 inline bool FileSystemConfigurationDetailsHasBeenSet() const { return m_fileSystemConfigurationDetailsHasBeenSet; }
124 template <typename FileSystemConfigurationDetailsT = Aws::Vector<FileSystemConfigurationDetails>>
125 void SetFileSystemConfigurationDetails(FileSystemConfigurationDetailsT&& value) {
126 m_fileSystemConfigurationDetailsHasBeenSet = true;
127 m_fileSystemConfigurationDetails = std::forward<FileSystemConfigurationDetailsT>(value);
128 }
129 template <typename FileSystemConfigurationDetailsT = Aws::Vector<FileSystemConfigurationDetails>>
130 CreateCloudVmClusterRequest& WithFileSystemConfigurationDetails(FileSystemConfigurationDetailsT&& value) {
131 SetFileSystemConfigurationDetails(std::forward<FileSystemConfigurationDetailsT>(value));
132 return *this;
133 }
134 template <typename FileSystemConfigurationDetailsT = FileSystemConfigurationDetails>
135 CreateCloudVmClusterRequest& AddFileSystemConfigurationDetails(FileSystemConfigurationDetailsT&& value) {
136 m_fileSystemConfigurationDetailsHasBeenSet = true;
137 m_fileSystemConfigurationDetails.emplace_back(std::forward<FileSystemConfigurationDetailsT>(value));
138 return *this;
139 }
141
143
146 inline int GetCpuCoreCount() const { return m_cpuCoreCount; }
147 inline bool CpuCoreCountHasBeenSet() const { return m_cpuCoreCountHasBeenSet; }
148 inline void SetCpuCoreCount(int value) {
149 m_cpuCoreCountHasBeenSet = true;
150 m_cpuCoreCount = value;
151 }
153 SetCpuCoreCount(value);
154 return *this;
155 }
157
159
162 inline const Aws::String& GetDisplayName() const { return m_displayName; }
163 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
164 template <typename DisplayNameT = Aws::String>
165 void SetDisplayName(DisplayNameT&& value) {
166 m_displayNameHasBeenSet = true;
167 m_displayName = std::forward<DisplayNameT>(value);
168 }
169 template <typename DisplayNameT = Aws::String>
171 SetDisplayName(std::forward<DisplayNameT>(value));
172 return *this;
173 }
175
177
182 inline const Aws::String& GetGiVersion() const { return m_giVersion; }
183 inline bool GiVersionHasBeenSet() const { return m_giVersionHasBeenSet; }
184 template <typename GiVersionT = Aws::String>
185 void SetGiVersion(GiVersionT&& value) {
186 m_giVersionHasBeenSet = true;
187 m_giVersion = std::forward<GiVersionT>(value);
188 }
189 template <typename GiVersionT = Aws::String>
191 SetGiVersion(std::forward<GiVersionT>(value));
192 return *this;
193 }
195
197
204 inline const Aws::String& GetHostname() const { return m_hostname; }
205 inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; }
206 template <typename HostnameT = Aws::String>
207 void SetHostname(HostnameT&& value) {
208 m_hostnameHasBeenSet = true;
209 m_hostname = std::forward<HostnameT>(value);
210 }
211 template <typename HostnameT = Aws::String>
213 SetHostname(std::forward<HostnameT>(value));
214 return *this;
215 }
217
219
223 inline const Aws::Vector<Aws::String>& GetSshPublicKeys() const { return m_sshPublicKeys; }
224 inline bool SshPublicKeysHasBeenSet() const { return m_sshPublicKeysHasBeenSet; }
225 template <typename SshPublicKeysT = Aws::Vector<Aws::String>>
226 void SetSshPublicKeys(SshPublicKeysT&& value) {
227 m_sshPublicKeysHasBeenSet = true;
228 m_sshPublicKeys = std::forward<SshPublicKeysT>(value);
229 }
230 template <typename SshPublicKeysT = Aws::Vector<Aws::String>>
232 SetSshPublicKeys(std::forward<SshPublicKeysT>(value));
233 return *this;
234 }
235 template <typename SshPublicKeysT = Aws::String>
237 m_sshPublicKeysHasBeenSet = true;
238 m_sshPublicKeys.emplace_back(std::forward<SshPublicKeysT>(value));
239 return *this;
240 }
242
244
247 inline const Aws::String& GetOdbNetworkId() const { return m_odbNetworkId; }
248 inline bool OdbNetworkIdHasBeenSet() const { return m_odbNetworkIdHasBeenSet; }
249 template <typename OdbNetworkIdT = Aws::String>
250 void SetOdbNetworkId(OdbNetworkIdT&& value) {
251 m_odbNetworkIdHasBeenSet = true;
252 m_odbNetworkId = std::forward<OdbNetworkIdT>(value);
253 }
254 template <typename OdbNetworkIdT = Aws::String>
256 SetOdbNetworkId(std::forward<OdbNetworkIdT>(value));
257 return *this;
258 }
260
262
266 inline const Aws::String& GetClusterName() const { return m_clusterName; }
267 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
268 template <typename ClusterNameT = Aws::String>
269 void SetClusterName(ClusterNameT&& value) {
270 m_clusterNameHasBeenSet = true;
271 m_clusterName = std::forward<ClusterNameT>(value);
272 }
273 template <typename ClusterNameT = Aws::String>
275 SetClusterName(std::forward<ClusterNameT>(value));
276 return *this;
277 }
279
281
285 inline const DataCollectionOptions& GetDataCollectionOptions() const { return m_dataCollectionOptions; }
286 inline bool DataCollectionOptionsHasBeenSet() const { return m_dataCollectionOptionsHasBeenSet; }
287 template <typename DataCollectionOptionsT = DataCollectionOptions>
288 void SetDataCollectionOptions(DataCollectionOptionsT&& value) {
289 m_dataCollectionOptionsHasBeenSet = true;
290 m_dataCollectionOptions = std::forward<DataCollectionOptionsT>(value);
291 }
292 template <typename DataCollectionOptionsT = DataCollectionOptions>
294 SetDataCollectionOptions(std::forward<DataCollectionOptionsT>(value));
295 return *this;
296 }
298
300
304 inline double GetDataStorageSizeInTBs() const { return m_dataStorageSizeInTBs; }
305 inline bool DataStorageSizeInTBsHasBeenSet() const { return m_dataStorageSizeInTBsHasBeenSet; }
306 inline void SetDataStorageSizeInTBs(double value) {
307 m_dataStorageSizeInTBsHasBeenSet = true;
308 m_dataStorageSizeInTBs = value;
309 }
312 return *this;
313 }
315
317
321 inline int GetDbNodeStorageSizeInGBs() const { return m_dbNodeStorageSizeInGBs; }
322 inline bool DbNodeStorageSizeInGBsHasBeenSet() const { return m_dbNodeStorageSizeInGBsHasBeenSet; }
323 inline void SetDbNodeStorageSizeInGBs(int value) {
324 m_dbNodeStorageSizeInGBsHasBeenSet = true;
325 m_dbNodeStorageSizeInGBs = value;
326 }
329 return *this;
330 }
332
334
337 inline const Aws::Vector<Aws::String>& GetDbServers() const { return m_dbServers; }
338 inline bool DbServersHasBeenSet() const { return m_dbServersHasBeenSet; }
339 template <typename DbServersT = Aws::Vector<Aws::String>>
340 void SetDbServers(DbServersT&& value) {
341 m_dbServersHasBeenSet = true;
342 m_dbServers = std::forward<DbServersT>(value);
343 }
344 template <typename DbServersT = Aws::Vector<Aws::String>>
346 SetDbServers(std::forward<DbServersT>(value));
347 return *this;
348 }
349 template <typename DbServersT = Aws::String>
351 m_dbServersHasBeenSet = true;
352 m_dbServers.emplace_back(std::forward<DbServersT>(value));
353 return *this;
354 }
356
358
361 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
362 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
363 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
364 void SetTags(TagsT&& value) {
365 m_tagsHasBeenSet = true;
366 m_tags = std::forward<TagsT>(value);
367 }
368 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
370 SetTags(std::forward<TagsT>(value));
371 return *this;
372 }
373 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
374 CreateCloudVmClusterRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
375 m_tagsHasBeenSet = true;
376 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
377 return *this;
378 }
380
382
386 inline bool GetIsLocalBackupEnabled() const { return m_isLocalBackupEnabled; }
387 inline bool IsLocalBackupEnabledHasBeenSet() const { return m_isLocalBackupEnabledHasBeenSet; }
388 inline void SetIsLocalBackupEnabled(bool value) {
389 m_isLocalBackupEnabledHasBeenSet = true;
390 m_isLocalBackupEnabled = value;
391 }
394 return *this;
395 }
397
399
402 inline bool GetIsSparseDiskgroupEnabled() const { return m_isSparseDiskgroupEnabled; }
403 inline bool IsSparseDiskgroupEnabledHasBeenSet() const { return m_isSparseDiskgroupEnabledHasBeenSet; }
404 inline void SetIsSparseDiskgroupEnabled(bool value) {
405 m_isSparseDiskgroupEnabledHasBeenSet = true;
406 m_isSparseDiskgroupEnabled = value;
407 }
410 return *this;
411 }
413
415
419 inline LicenseModel GetLicenseModel() const { return m_licenseModel; }
420 inline bool LicenseModelHasBeenSet() const { return m_licenseModelHasBeenSet; }
421 inline void SetLicenseModel(LicenseModel value) {
422 m_licenseModelHasBeenSet = true;
423 m_licenseModel = value;
424 }
426 SetLicenseModel(value);
427 return *this;
428 }
430
432
435 inline int GetMemorySizeInGBs() const { return m_memorySizeInGBs; }
436 inline bool MemorySizeInGBsHasBeenSet() const { return m_memorySizeInGBsHasBeenSet; }
437 inline void SetMemorySizeInGBs(int value) {
438 m_memorySizeInGBsHasBeenSet = true;
439 m_memorySizeInGBs = value;
440 }
442 SetMemorySizeInGBs(value);
443 return *this;
444 }
446
448
451 inline const Aws::String& GetSystemVersion() const { return m_systemVersion; }
452 inline bool SystemVersionHasBeenSet() const { return m_systemVersionHasBeenSet; }
453 template <typename SystemVersionT = Aws::String>
454 void SetSystemVersion(SystemVersionT&& value) {
455 m_systemVersionHasBeenSet = true;
456 m_systemVersion = std::forward<SystemVersionT>(value);
457 }
458 template <typename SystemVersionT = Aws::String>
460 SetSystemVersion(std::forward<SystemVersionT>(value));
461 return *this;
462 }
464
466
470 inline const Aws::String& GetTimeZone() const { return m_timeZone; }
471 inline bool TimeZoneHasBeenSet() const { return m_timeZoneHasBeenSet; }
472 template <typename TimeZoneT = Aws::String>
473 void SetTimeZone(TimeZoneT&& value) {
474 m_timeZoneHasBeenSet = true;
475 m_timeZone = std::forward<TimeZoneT>(value);
476 }
477 template <typename TimeZoneT = Aws::String>
479 SetTimeZone(std::forward<TimeZoneT>(value));
480 return *this;
481 }
483
485
492 inline const Aws::String& GetClientToken() const { return m_clientToken; }
493 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
494 template <typename ClientTokenT = Aws::String>
495 void SetClientToken(ClientTokenT&& value) {
496 m_clientTokenHasBeenSet = true;
497 m_clientToken = std::forward<ClientTokenT>(value);
498 }
499 template <typename ClientTokenT = Aws::String>
501 SetClientToken(std::forward<ClientTokenT>(value));
502 return *this;
503 }
505
507
514 inline int GetScanListenerPortTcp() const { return m_scanListenerPortTcp; }
515 inline bool ScanListenerPortTcpHasBeenSet() const { return m_scanListenerPortTcpHasBeenSet; }
516 inline void SetScanListenerPortTcp(int value) {
517 m_scanListenerPortTcpHasBeenSet = true;
518 m_scanListenerPortTcp = value;
519 }
522 return *this;
523 }
525 private:
526 Aws::String m_cloudExadataInfrastructureId;
527
528 Aws::String m_exascaleDbStorageVaultId;
529
530 VmStorageType m_vmFileSystemStorageType{VmStorageType::NOT_SET};
531
532 VmStorageType m_vmBackupStorageType{VmStorageType::NOT_SET};
533
534 Aws::Vector<FileSystemConfigurationDetails> m_fileSystemConfigurationDetails;
535
536 int m_cpuCoreCount{0};
537
538 Aws::String m_displayName;
539
540 Aws::String m_giVersion;
541
542 Aws::String m_hostname;
543
544 Aws::Vector<Aws::String> m_sshPublicKeys;
545
546 Aws::String m_odbNetworkId;
547
548 Aws::String m_clusterName;
549
550 DataCollectionOptions m_dataCollectionOptions;
551
552 double m_dataStorageSizeInTBs{0.0};
553
554 int m_dbNodeStorageSizeInGBs{0};
555
556 Aws::Vector<Aws::String> m_dbServers;
557
559
560 bool m_isLocalBackupEnabled{false};
561
562 bool m_isSparseDiskgroupEnabled{false};
563
564 LicenseModel m_licenseModel{LicenseModel::NOT_SET};
565
566 int m_memorySizeInGBs{0};
567
568 Aws::String m_systemVersion;
569
570 Aws::String m_timeZone;
571
573
574 int m_scanListenerPortTcp{0};
575 bool m_cloudExadataInfrastructureIdHasBeenSet = false;
576 bool m_exascaleDbStorageVaultIdHasBeenSet = false;
577 bool m_vmFileSystemStorageTypeHasBeenSet = false;
578 bool m_vmBackupStorageTypeHasBeenSet = false;
579 bool m_fileSystemConfigurationDetailsHasBeenSet = false;
580 bool m_cpuCoreCountHasBeenSet = false;
581 bool m_displayNameHasBeenSet = false;
582 bool m_giVersionHasBeenSet = false;
583 bool m_hostnameHasBeenSet = false;
584 bool m_sshPublicKeysHasBeenSet = false;
585 bool m_odbNetworkIdHasBeenSet = false;
586 bool m_clusterNameHasBeenSet = false;
587 bool m_dataCollectionOptionsHasBeenSet = false;
588 bool m_dataStorageSizeInTBsHasBeenSet = false;
589 bool m_dbNodeStorageSizeInGBsHasBeenSet = false;
590 bool m_dbServersHasBeenSet = false;
591 bool m_tagsHasBeenSet = false;
592 bool m_isLocalBackupEnabledHasBeenSet = false;
593 bool m_isSparseDiskgroupEnabledHasBeenSet = false;
594 bool m_licenseModelHasBeenSet = false;
595 bool m_memorySizeInGBsHasBeenSet = false;
596 bool m_systemVersionHasBeenSet = false;
597 bool m_timeZoneHasBeenSet = false;
598 bool m_clientTokenHasBeenSet = true;
599 bool m_scanListenerPortTcpHasBeenSet = false;
600};
601
602} // namespace Model
603} // namespace odb
604} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
CreateCloudVmClusterRequest & WithFileSystemConfigurationDetails(FileSystemConfigurationDetailsT &&value)
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)
void SetExascaleDbStorageVaultId(ExascaleDbStorageVaultIdT &&value)
CreateCloudVmClusterRequest & AddFileSystemConfigurationDetails(FileSystemConfigurationDetailsT &&value)
CreateCloudVmClusterRequest & WithScanListenerPortTcp(int value)
CreateCloudVmClusterRequest & WithOdbNetworkId(OdbNetworkIdT &&value)
CreateCloudVmClusterRequest & WithDbNodeStorageSizeInGBs(int value)
CreateCloudVmClusterRequest & WithVmBackupStorageType(VmStorageType value)
CreateCloudVmClusterRequest & WithIsSparseDiskgroupEnabled(bool value)
CreateCloudVmClusterRequest & WithExascaleDbStorageVaultId(ExascaleDbStorageVaultIdT &&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
void SetFileSystemConfigurationDetails(FileSystemConfigurationDetailsT &&value)
const Aws::Vector< FileSystemConfigurationDetails > & GetFileSystemConfigurationDetails() const
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 & WithVmFileSystemStorageType(VmStorageType value)
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