AWS SDK for C++

AWS SDK for C++ Version 1.11.938

Loading...
Searching...
No Matches
UpdateCloudVmClusterRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/odb/OdbRequest.h>
10#include <aws/odb/Odb_EXPORTS.h>
11#include <aws/odb/model/DataCollectionOptions.h>
12#include <aws/odb/model/LicenseModel.h>
13
14#include <utility>
15
16namespace Aws {
17namespace odb {
18namespace Model {
19
23 public:
24 AWS_ODB_API UpdateCloudVmClusterRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateCloudVmCluster"; }
31
32 AWS_ODB_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetCloudVmClusterId() const { return m_cloudVmClusterId; }
41 inline bool CloudVmClusterIdHasBeenSet() const { return m_cloudVmClusterIdHasBeenSet; }
42 template <typename CloudVmClusterIdT = Aws::String>
43 void SetCloudVmClusterId(CloudVmClusterIdT&& value) {
44 m_cloudVmClusterIdHasBeenSet = true;
45 m_cloudVmClusterId = std::forward<CloudVmClusterIdT>(value);
46 }
47 template <typename CloudVmClusterIdT = Aws::String>
49 SetCloudVmClusterId(std::forward<CloudVmClusterIdT>(value));
50 return *this;
51 }
53
55
59 inline int GetCpuCoreCount() const { return m_cpuCoreCount; }
60 inline bool CpuCoreCountHasBeenSet() const { return m_cpuCoreCountHasBeenSet; }
61 inline void SetCpuCoreCount(int value) {
62 m_cpuCoreCountHasBeenSet = true;
63 m_cpuCoreCount = value;
64 }
66 SetCpuCoreCount(value);
67 return *this;
68 }
70
72
76 inline const DataCollectionOptions& GetDataCollectionOptions() const { return m_dataCollectionOptions; }
77 inline bool DataCollectionOptionsHasBeenSet() const { return m_dataCollectionOptionsHasBeenSet; }
78 template <typename DataCollectionOptionsT = DataCollectionOptions>
79 void SetDataCollectionOptions(DataCollectionOptionsT&& value) {
80 m_dataCollectionOptionsHasBeenSet = true;
81 m_dataCollectionOptions = std::forward<DataCollectionOptionsT>(value);
82 }
83 template <typename DataCollectionOptionsT = DataCollectionOptions>
84 UpdateCloudVmClusterRequest& WithDataCollectionOptions(DataCollectionOptionsT&& value) {
85 SetDataCollectionOptions(std::forward<DataCollectionOptionsT>(value));
86 return *this;
87 }
89
91
95 inline double GetDataStorageSizeInTBs() const { return m_dataStorageSizeInTBs; }
96 inline bool DataStorageSizeInTBsHasBeenSet() const { return m_dataStorageSizeInTBsHasBeenSet; }
97 inline void SetDataStorageSizeInTBs(double value) {
98 m_dataStorageSizeInTBsHasBeenSet = true;
99 m_dataStorageSizeInTBs = value;
100 }
103 return *this;
104 }
106
108
112 inline int GetDbNodeStorageSizeInGBs() const { return m_dbNodeStorageSizeInGBs; }
113 inline bool DbNodeStorageSizeInGBsHasBeenSet() const { return m_dbNodeStorageSizeInGBsHasBeenSet; }
114 inline void SetDbNodeStorageSizeInGBs(int value) {
115 m_dbNodeStorageSizeInGBsHasBeenSet = true;
116 m_dbNodeStorageSizeInGBs = value;
117 }
120 return *this;
121 }
123
125
128 inline const Aws::String& GetDisplayName() const { return m_displayName; }
129 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
130 template <typename DisplayNameT = Aws::String>
131 void SetDisplayName(DisplayNameT&& value) {
132 m_displayNameHasBeenSet = true;
133 m_displayName = std::forward<DisplayNameT>(value);
134 }
135 template <typename DisplayNameT = Aws::String>
137 SetDisplayName(std::forward<DisplayNameT>(value));
138 return *this;
139 }
141
143
147 inline const Aws::Vector<Aws::String>& GetSshPublicKeys() const { return m_sshPublicKeys; }
148 inline bool SshPublicKeysHasBeenSet() const { return m_sshPublicKeysHasBeenSet; }
149 template <typename SshPublicKeysT = Aws::Vector<Aws::String>>
150 void SetSshPublicKeys(SshPublicKeysT&& value) {
151 m_sshPublicKeysHasBeenSet = true;
152 m_sshPublicKeys = std::forward<SshPublicKeysT>(value);
153 }
154 template <typename SshPublicKeysT = Aws::Vector<Aws::String>>
156 SetSshPublicKeys(std::forward<SshPublicKeysT>(value));
157 return *this;
158 }
159 template <typename SshPublicKeysT = Aws::String>
161 m_sshPublicKeysHasBeenSet = true;
162 m_sshPublicKeys.emplace_back(std::forward<SshPublicKeysT>(value));
163 return *this;
164 }
166
168
171 inline LicenseModel GetLicenseModel() const { return m_licenseModel; }
172 inline bool LicenseModelHasBeenSet() const { return m_licenseModelHasBeenSet; }
173 inline void SetLicenseModel(LicenseModel value) {
174 m_licenseModelHasBeenSet = true;
175 m_licenseModel = value;
176 }
178 SetLicenseModel(value);
179 return *this;
180 }
182
184
187 inline int GetMemorySizeInGBs() const { return m_memorySizeInGBs; }
188 inline bool MemorySizeInGBsHasBeenSet() const { return m_memorySizeInGBsHasBeenSet; }
189 inline void SetMemorySizeInGBs(int value) {
190 m_memorySizeInGBsHasBeenSet = true;
191 m_memorySizeInGBs = value;
192 }
194 SetMemorySizeInGBs(value);
195 return *this;
196 }
198
200
204 inline int GetStorageSizeInGBs() const { return m_storageSizeInGBs; }
205 inline bool StorageSizeInGBsHasBeenSet() const { return m_storageSizeInGBsHasBeenSet; }
206 inline void SetStorageSizeInGBs(int value) {
207 m_storageSizeInGBsHasBeenSet = true;
208 m_storageSizeInGBs = value;
209 }
211 SetStorageSizeInGBs(value);
212 return *this;
213 }
215 private:
216 Aws::String m_cloudVmClusterId;
217
218 int m_cpuCoreCount{0};
219
220 DataCollectionOptions m_dataCollectionOptions;
221
222 double m_dataStorageSizeInTBs{0.0};
223
224 int m_dbNodeStorageSizeInGBs{0};
225
226 Aws::String m_displayName;
227
228 Aws::Vector<Aws::String> m_sshPublicKeys;
229
230 LicenseModel m_licenseModel{LicenseModel::NOT_SET};
231
232 int m_memorySizeInGBs{0};
233
234 int m_storageSizeInGBs{0};
235 bool m_cloudVmClusterIdHasBeenSet = false;
236 bool m_cpuCoreCountHasBeenSet = false;
237 bool m_dataCollectionOptionsHasBeenSet = false;
238 bool m_dataStorageSizeInTBsHasBeenSet = false;
239 bool m_dbNodeStorageSizeInGBsHasBeenSet = false;
240 bool m_displayNameHasBeenSet = false;
241 bool m_sshPublicKeysHasBeenSet = false;
242 bool m_licenseModelHasBeenSet = false;
243 bool m_memorySizeInGBsHasBeenSet = false;
244 bool m_storageSizeInGBsHasBeenSet = false;
245};
246
247} // namespace Model
248} // namespace odb
249} // namespace Aws
UpdateCloudVmClusterRequest & WithMemorySizeInGBs(int value)
AWS_ODB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateCloudVmClusterRequest & WithDisplayName(DisplayNameT &&value)
UpdateCloudVmClusterRequest & WithStorageSizeInGBs(int value)
UpdateCloudVmClusterRequest & WithCloudVmClusterId(CloudVmClusterIdT &&value)
UpdateCloudVmClusterRequest & WithCpuCoreCount(int value)
UpdateCloudVmClusterRequest & WithSshPublicKeys(SshPublicKeysT &&value)
const DataCollectionOptions & GetDataCollectionOptions() const
UpdateCloudVmClusterRequest & WithDataStorageSizeInTBs(double value)
const Aws::Vector< Aws::String > & GetSshPublicKeys() const
void SetDataCollectionOptions(DataCollectionOptionsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_ODB_API Aws::String SerializePayload() const override
UpdateCloudVmClusterRequest & WithDbNodeStorageSizeInGBs(int value)
AWS_ODB_API UpdateCloudVmClusterRequest()=default
UpdateCloudVmClusterRequest & AddSshPublicKeys(SshPublicKeysT &&value)
UpdateCloudVmClusterRequest & WithDataCollectionOptions(DataCollectionOptionsT &&value)
UpdateCloudVmClusterRequest & WithLicenseModel(LicenseModel value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector