AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OpenZFSVolumeConfiguration.h
1
6#pragma once
7#include <aws/fsx/FSx_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/fsx/model/OpenZFSDataCompressionType.h>
10#include <aws/fsx/model/OpenZFSOriginSnapshotConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/fsx/model/OpenZFSCopyStrategy.h>
13#include <aws/fsx/model/OpenZFSNfsExport.h>
14#include <aws/fsx/model/OpenZFSUserOrGroupQuota.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace FSx
28{
29namespace Model
30{
31
39 {
40 public:
45
46
48
51 inline const Aws::String& GetParentVolumeId() const{ return m_parentVolumeId; }
52 inline bool ParentVolumeIdHasBeenSet() const { return m_parentVolumeIdHasBeenSet; }
53 inline void SetParentVolumeId(const Aws::String& value) { m_parentVolumeIdHasBeenSet = true; m_parentVolumeId = value; }
54 inline void SetParentVolumeId(Aws::String&& value) { m_parentVolumeIdHasBeenSet = true; m_parentVolumeId = std::move(value); }
55 inline void SetParentVolumeId(const char* value) { m_parentVolumeIdHasBeenSet = true; m_parentVolumeId.assign(value); }
56 inline OpenZFSVolumeConfiguration& WithParentVolumeId(const Aws::String& value) { SetParentVolumeId(value); return *this;}
57 inline OpenZFSVolumeConfiguration& WithParentVolumeId(Aws::String&& value) { SetParentVolumeId(std::move(value)); return *this;}
58 inline OpenZFSVolumeConfiguration& WithParentVolumeId(const char* value) { SetParentVolumeId(value); return *this;}
60
62
66 inline const Aws::String& GetVolumePath() const{ return m_volumePath; }
67 inline bool VolumePathHasBeenSet() const { return m_volumePathHasBeenSet; }
68 inline void SetVolumePath(const Aws::String& value) { m_volumePathHasBeenSet = true; m_volumePath = value; }
69 inline void SetVolumePath(Aws::String&& value) { m_volumePathHasBeenSet = true; m_volumePath = std::move(value); }
70 inline void SetVolumePath(const char* value) { m_volumePathHasBeenSet = true; m_volumePath.assign(value); }
71 inline OpenZFSVolumeConfiguration& WithVolumePath(const Aws::String& value) { SetVolumePath(value); return *this;}
72 inline OpenZFSVolumeConfiguration& WithVolumePath(Aws::String&& value) { SetVolumePath(std::move(value)); return *this;}
73 inline OpenZFSVolumeConfiguration& WithVolumePath(const char* value) { SetVolumePath(value); return *this;}
75
77
81 inline int GetStorageCapacityReservationGiB() const{ return m_storageCapacityReservationGiB; }
82 inline bool StorageCapacityReservationGiBHasBeenSet() const { return m_storageCapacityReservationGiBHasBeenSet; }
83 inline void SetStorageCapacityReservationGiB(int value) { m_storageCapacityReservationGiBHasBeenSet = true; m_storageCapacityReservationGiB = value; }
86
88
93 inline int GetStorageCapacityQuotaGiB() const{ return m_storageCapacityQuotaGiB; }
94 inline bool StorageCapacityQuotaGiBHasBeenSet() const { return m_storageCapacityQuotaGiBHasBeenSet; }
95 inline void SetStorageCapacityQuotaGiB(int value) { m_storageCapacityQuotaGiBHasBeenSet = true; m_storageCapacityQuotaGiB = value; }
98
100
106 inline int GetRecordSizeKiB() const{ return m_recordSizeKiB; }
107 inline bool RecordSizeKiBHasBeenSet() const { return m_recordSizeKiBHasBeenSet; }
108 inline void SetRecordSizeKiB(int value) { m_recordSizeKiBHasBeenSet = true; m_recordSizeKiB = value; }
109 inline OpenZFSVolumeConfiguration& WithRecordSizeKiB(int value) { SetRecordSizeKiB(value); return *this;}
111
113
124 inline const OpenZFSDataCompressionType& GetDataCompressionType() const{ return m_dataCompressionType; }
125 inline bool DataCompressionTypeHasBeenSet() const { return m_dataCompressionTypeHasBeenSet; }
126 inline void SetDataCompressionType(const OpenZFSDataCompressionType& value) { m_dataCompressionTypeHasBeenSet = true; m_dataCompressionType = value; }
127 inline void SetDataCompressionType(OpenZFSDataCompressionType&& value) { m_dataCompressionTypeHasBeenSet = true; m_dataCompressionType = std::move(value); }
131
133
142 inline bool GetCopyTagsToSnapshots() const{ return m_copyTagsToSnapshots; }
143 inline bool CopyTagsToSnapshotsHasBeenSet() const { return m_copyTagsToSnapshotsHasBeenSet; }
144 inline void SetCopyTagsToSnapshots(bool value) { m_copyTagsToSnapshotsHasBeenSet = true; m_copyTagsToSnapshots = value; }
147
149
153 inline const OpenZFSOriginSnapshotConfiguration& GetOriginSnapshot() const{ return m_originSnapshot; }
154 inline bool OriginSnapshotHasBeenSet() const { return m_originSnapshotHasBeenSet; }
155 inline void SetOriginSnapshot(const OpenZFSOriginSnapshotConfiguration& value) { m_originSnapshotHasBeenSet = true; m_originSnapshot = value; }
156 inline void SetOriginSnapshot(OpenZFSOriginSnapshotConfiguration&& value) { m_originSnapshotHasBeenSet = true; m_originSnapshot = std::move(value); }
160
162
165 inline bool GetReadOnly() const{ return m_readOnly; }
166 inline bool ReadOnlyHasBeenSet() const { return m_readOnlyHasBeenSet; }
167 inline void SetReadOnly(bool value) { m_readOnlyHasBeenSet = true; m_readOnly = value; }
168 inline OpenZFSVolumeConfiguration& WithReadOnly(bool value) { SetReadOnly(value); return *this;}
170
172
176 inline const Aws::Vector<OpenZFSNfsExport>& GetNfsExports() const{ return m_nfsExports; }
177 inline bool NfsExportsHasBeenSet() const { return m_nfsExportsHasBeenSet; }
178 inline void SetNfsExports(const Aws::Vector<OpenZFSNfsExport>& value) { m_nfsExportsHasBeenSet = true; m_nfsExports = value; }
179 inline void SetNfsExports(Aws::Vector<OpenZFSNfsExport>&& value) { m_nfsExportsHasBeenSet = true; m_nfsExports = std::move(value); }
182 inline OpenZFSVolumeConfiguration& AddNfsExports(const OpenZFSNfsExport& value) { m_nfsExportsHasBeenSet = true; m_nfsExports.push_back(value); return *this; }
183 inline OpenZFSVolumeConfiguration& AddNfsExports(OpenZFSNfsExport&& value) { m_nfsExportsHasBeenSet = true; m_nfsExports.push_back(std::move(value)); return *this; }
185
187
191 inline const Aws::Vector<OpenZFSUserOrGroupQuota>& GetUserAndGroupQuotas() const{ return m_userAndGroupQuotas; }
192 inline bool UserAndGroupQuotasHasBeenSet() const { return m_userAndGroupQuotasHasBeenSet; }
193 inline void SetUserAndGroupQuotas(const Aws::Vector<OpenZFSUserOrGroupQuota>& value) { m_userAndGroupQuotasHasBeenSet = true; m_userAndGroupQuotas = value; }
194 inline void SetUserAndGroupQuotas(Aws::Vector<OpenZFSUserOrGroupQuota>&& value) { m_userAndGroupQuotasHasBeenSet = true; m_userAndGroupQuotas = std::move(value); }
197 inline OpenZFSVolumeConfiguration& AddUserAndGroupQuotas(const OpenZFSUserOrGroupQuota& value) { m_userAndGroupQuotasHasBeenSet = true; m_userAndGroupQuotas.push_back(value); return *this; }
198 inline OpenZFSVolumeConfiguration& AddUserAndGroupQuotas(OpenZFSUserOrGroupQuota&& value) { m_userAndGroupQuotasHasBeenSet = true; m_userAndGroupQuotas.push_back(std::move(value)); return *this; }
200
202
205 inline const Aws::String& GetRestoreToSnapshot() const{ return m_restoreToSnapshot; }
206 inline bool RestoreToSnapshotHasBeenSet() const { return m_restoreToSnapshotHasBeenSet; }
207 inline void SetRestoreToSnapshot(const Aws::String& value) { m_restoreToSnapshotHasBeenSet = true; m_restoreToSnapshot = value; }
208 inline void SetRestoreToSnapshot(Aws::String&& value) { m_restoreToSnapshotHasBeenSet = true; m_restoreToSnapshot = std::move(value); }
209 inline void SetRestoreToSnapshot(const char* value) { m_restoreToSnapshotHasBeenSet = true; m_restoreToSnapshot.assign(value); }
211 inline OpenZFSVolumeConfiguration& WithRestoreToSnapshot(Aws::String&& value) { SetRestoreToSnapshot(std::move(value)); return *this;}
212 inline OpenZFSVolumeConfiguration& WithRestoreToSnapshot(const char* value) { SetRestoreToSnapshot(value); return *this;}
214
216
221 inline bool GetDeleteIntermediateSnaphots() const{ return m_deleteIntermediateSnaphots; }
222 inline bool DeleteIntermediateSnaphotsHasBeenSet() const { return m_deleteIntermediateSnaphotsHasBeenSet; }
223 inline void SetDeleteIntermediateSnaphots(bool value) { m_deleteIntermediateSnaphotsHasBeenSet = true; m_deleteIntermediateSnaphots = value; }
226
228
233 inline bool GetDeleteClonedVolumes() const{ return m_deleteClonedVolumes; }
234 inline bool DeleteClonedVolumesHasBeenSet() const { return m_deleteClonedVolumesHasBeenSet; }
235 inline void SetDeleteClonedVolumes(bool value) { m_deleteClonedVolumesHasBeenSet = true; m_deleteClonedVolumes = value; }
238
240
245 inline bool GetDeleteIntermediateData() const{ return m_deleteIntermediateData; }
246 inline bool DeleteIntermediateDataHasBeenSet() const { return m_deleteIntermediateDataHasBeenSet; }
247 inline void SetDeleteIntermediateData(bool value) { m_deleteIntermediateDataHasBeenSet = true; m_deleteIntermediateData = value; }
250
252
253 inline const Aws::String& GetSourceSnapshotARN() const{ return m_sourceSnapshotARN; }
254 inline bool SourceSnapshotARNHasBeenSet() const { return m_sourceSnapshotARNHasBeenSet; }
255 inline void SetSourceSnapshotARN(const Aws::String& value) { m_sourceSnapshotARNHasBeenSet = true; m_sourceSnapshotARN = value; }
256 inline void SetSourceSnapshotARN(Aws::String&& value) { m_sourceSnapshotARNHasBeenSet = true; m_sourceSnapshotARN = std::move(value); }
257 inline void SetSourceSnapshotARN(const char* value) { m_sourceSnapshotARNHasBeenSet = true; m_sourceSnapshotARN.assign(value); }
259 inline OpenZFSVolumeConfiguration& WithSourceSnapshotARN(Aws::String&& value) { SetSourceSnapshotARN(std::move(value)); return *this;}
260 inline OpenZFSVolumeConfiguration& WithSourceSnapshotARN(const char* value) { SetSourceSnapshotARN(value); return *this;}
262
264
268 inline const Aws::String& GetDestinationSnapshot() const{ return m_destinationSnapshot; }
269 inline bool DestinationSnapshotHasBeenSet() const { return m_destinationSnapshotHasBeenSet; }
270 inline void SetDestinationSnapshot(const Aws::String& value) { m_destinationSnapshotHasBeenSet = true; m_destinationSnapshot = value; }
271 inline void SetDestinationSnapshot(Aws::String&& value) { m_destinationSnapshotHasBeenSet = true; m_destinationSnapshot = std::move(value); }
272 inline void SetDestinationSnapshot(const char* value) { m_destinationSnapshotHasBeenSet = true; m_destinationSnapshot.assign(value); }
275 inline OpenZFSVolumeConfiguration& WithDestinationSnapshot(const char* value) { SetDestinationSnapshot(value); return *this;}
277
279
294 inline const OpenZFSCopyStrategy& GetCopyStrategy() const{ return m_copyStrategy; }
295 inline bool CopyStrategyHasBeenSet() const { return m_copyStrategyHasBeenSet; }
296 inline void SetCopyStrategy(const OpenZFSCopyStrategy& value) { m_copyStrategyHasBeenSet = true; m_copyStrategy = value; }
297 inline void SetCopyStrategy(OpenZFSCopyStrategy&& value) { m_copyStrategyHasBeenSet = true; m_copyStrategy = std::move(value); }
299 inline OpenZFSVolumeConfiguration& WithCopyStrategy(OpenZFSCopyStrategy&& value) { SetCopyStrategy(std::move(value)); return *this;}
301 private:
302
303 Aws::String m_parentVolumeId;
304 bool m_parentVolumeIdHasBeenSet = false;
305
306 Aws::String m_volumePath;
307 bool m_volumePathHasBeenSet = false;
308
309 int m_storageCapacityReservationGiB;
310 bool m_storageCapacityReservationGiBHasBeenSet = false;
311
312 int m_storageCapacityQuotaGiB;
313 bool m_storageCapacityQuotaGiBHasBeenSet = false;
314
315 int m_recordSizeKiB;
316 bool m_recordSizeKiBHasBeenSet = false;
317
318 OpenZFSDataCompressionType m_dataCompressionType;
319 bool m_dataCompressionTypeHasBeenSet = false;
320
321 bool m_copyTagsToSnapshots;
322 bool m_copyTagsToSnapshotsHasBeenSet = false;
323
324 OpenZFSOriginSnapshotConfiguration m_originSnapshot;
325 bool m_originSnapshotHasBeenSet = false;
326
327 bool m_readOnly;
328 bool m_readOnlyHasBeenSet = false;
329
331 bool m_nfsExportsHasBeenSet = false;
332
333 Aws::Vector<OpenZFSUserOrGroupQuota> m_userAndGroupQuotas;
334 bool m_userAndGroupQuotasHasBeenSet = false;
335
336 Aws::String m_restoreToSnapshot;
337 bool m_restoreToSnapshotHasBeenSet = false;
338
339 bool m_deleteIntermediateSnaphots;
340 bool m_deleteIntermediateSnaphotsHasBeenSet = false;
341
342 bool m_deleteClonedVolumes;
343 bool m_deleteClonedVolumesHasBeenSet = false;
344
345 bool m_deleteIntermediateData;
346 bool m_deleteIntermediateDataHasBeenSet = false;
347
348 Aws::String m_sourceSnapshotARN;
349 bool m_sourceSnapshotARNHasBeenSet = false;
350
351 Aws::String m_destinationSnapshot;
352 bool m_destinationSnapshotHasBeenSet = false;
353
354 OpenZFSCopyStrategy m_copyStrategy;
355 bool m_copyStrategyHasBeenSet = false;
356 };
357
358} // namespace Model
359} // namespace FSx
360} // namespace Aws
OpenZFSVolumeConfiguration & WithRecordSizeKiB(int value)
AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_FSX_API OpenZFSVolumeConfiguration(Aws::Utils::Json::JsonView jsonValue)
OpenZFSVolumeConfiguration & WithDestinationSnapshot(Aws::String &&value)
OpenZFSVolumeConfiguration & WithDeleteIntermediateSnaphots(bool value)
void SetCopyStrategy(const OpenZFSCopyStrategy &value)
OpenZFSVolumeConfiguration & WithDeleteClonedVolumes(bool value)
OpenZFSVolumeConfiguration & WithOriginSnapshot(const OpenZFSOriginSnapshotConfiguration &value)
void SetNfsExports(const Aws::Vector< OpenZFSNfsExport > &value)
void SetUserAndGroupQuotas(const Aws::Vector< OpenZFSUserOrGroupQuota > &value)
OpenZFSVolumeConfiguration & AddNfsExports(const OpenZFSNfsExport &value)
void SetOriginSnapshot(const OpenZFSOriginSnapshotConfiguration &value)
const Aws::Vector< OpenZFSNfsExport > & GetNfsExports() const
const Aws::Vector< OpenZFSUserOrGroupQuota > & GetUserAndGroupQuotas() const
OpenZFSVolumeConfiguration & WithDestinationSnapshot(const Aws::String &value)
OpenZFSVolumeConfiguration & WithDataCompressionType(const OpenZFSDataCompressionType &value)
OpenZFSVolumeConfiguration & WithParentVolumeId(Aws::String &&value)
void SetDataCompressionType(const OpenZFSDataCompressionType &value)
void SetUserAndGroupQuotas(Aws::Vector< OpenZFSUserOrGroupQuota > &&value)
OpenZFSVolumeConfiguration & WithVolumePath(const Aws::String &value)
OpenZFSVolumeConfiguration & WithSourceSnapshotARN(const Aws::String &value)
OpenZFSVolumeConfiguration & WithCopyTagsToSnapshots(bool value)
OpenZFSVolumeConfiguration & WithVolumePath(const char *value)
OpenZFSVolumeConfiguration & WithRestoreToSnapshot(const char *value)
void SetOriginSnapshot(OpenZFSOriginSnapshotConfiguration &&value)
OpenZFSVolumeConfiguration & WithOriginSnapshot(OpenZFSOriginSnapshotConfiguration &&value)
OpenZFSVolumeConfiguration & WithCopyStrategy(OpenZFSCopyStrategy &&value)
const OpenZFSCopyStrategy & GetCopyStrategy() const
OpenZFSVolumeConfiguration & WithReadOnly(bool value)
OpenZFSVolumeConfiguration & WithRestoreToSnapshot(Aws::String &&value)
OpenZFSVolumeConfiguration & WithDeleteIntermediateData(bool value)
OpenZFSVolumeConfiguration & WithDataCompressionType(OpenZFSDataCompressionType &&value)
OpenZFSVolumeConfiguration & WithVolumePath(Aws::String &&value)
OpenZFSVolumeConfiguration & WithDestinationSnapshot(const char *value)
const OpenZFSDataCompressionType & GetDataCompressionType() const
OpenZFSVolumeConfiguration & WithRestoreToSnapshot(const Aws::String &value)
OpenZFSVolumeConfiguration & WithStorageCapacityQuotaGiB(int value)
const OpenZFSOriginSnapshotConfiguration & GetOriginSnapshot() const
OpenZFSVolumeConfiguration & WithNfsExports(Aws::Vector< OpenZFSNfsExport > &&value)
OpenZFSVolumeConfiguration & WithSourceSnapshotARN(Aws::String &&value)
OpenZFSVolumeConfiguration & WithSourceSnapshotARN(const char *value)
OpenZFSVolumeConfiguration & AddUserAndGroupQuotas(OpenZFSUserOrGroupQuota &&value)
OpenZFSVolumeConfiguration & WithParentVolumeId(const Aws::String &value)
void SetNfsExports(Aws::Vector< OpenZFSNfsExport > &&value)
OpenZFSVolumeConfiguration & AddUserAndGroupQuotas(const OpenZFSUserOrGroupQuota &value)
OpenZFSVolumeConfiguration & WithParentVolumeId(const char *value)
AWS_FSX_API OpenZFSVolumeConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
OpenZFSVolumeConfiguration & AddNfsExports(OpenZFSNfsExport &&value)
void SetDataCompressionType(OpenZFSDataCompressionType &&value)
OpenZFSVolumeConfiguration & WithUserAndGroupQuotas(Aws::Vector< OpenZFSUserOrGroupQuota > &&value)
OpenZFSVolumeConfiguration & WithStorageCapacityReservationGiB(int value)
OpenZFSVolumeConfiguration & WithUserAndGroupQuotas(const Aws::Vector< OpenZFSUserOrGroupQuota > &value)
OpenZFSVolumeConfiguration & WithCopyStrategy(const OpenZFSCopyStrategy &value)
OpenZFSVolumeConfiguration & WithNfsExports(const Aws::Vector< OpenZFSNfsExport > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue