AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateOntapVolumeConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/fsx/FSx_EXPORTS.h>
9#include <aws/fsx/model/CreateAggregateConfiguration.h>
10#include <aws/fsx/model/CreateSnaplockConfiguration.h>
11#include <aws/fsx/model/InputOntapVolumeType.h>
12#include <aws/fsx/model/SecurityStyle.h>
13#include <aws/fsx/model/TieringPolicy.h>
14#include <aws/fsx/model/VolumeStyle.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace FSx {
26namespace Model {
27
35 public:
36 AWS_FSX_API CreateOntapVolumeConfiguration() = default;
40
42
47 inline const Aws::String& GetJunctionPath() const { return m_junctionPath; }
48 inline bool JunctionPathHasBeenSet() const { return m_junctionPathHasBeenSet; }
49 template <typename JunctionPathT = Aws::String>
50 void SetJunctionPath(JunctionPathT&& value) {
51 m_junctionPathHasBeenSet = true;
52 m_junctionPath = std::forward<JunctionPathT>(value);
53 }
54 template <typename JunctionPathT = Aws::String>
56 SetJunctionPath(std::forward<JunctionPathT>(value));
57 return *this;
58 }
60
62
80 inline SecurityStyle GetSecurityStyle() const { return m_securityStyle; }
81 inline bool SecurityStyleHasBeenSet() const { return m_securityStyleHasBeenSet; }
82 inline void SetSecurityStyle(SecurityStyle value) {
83 m_securityStyleHasBeenSet = true;
84 m_securityStyle = value;
85 }
87 SetSecurityStyle(value);
88 return *this;
89 }
91
93
100 inline bool GetStorageEfficiencyEnabled() const { return m_storageEfficiencyEnabled; }
101 inline bool StorageEfficiencyEnabledHasBeenSet() const { return m_storageEfficiencyEnabledHasBeenSet; }
102 inline void SetStorageEfficiencyEnabled(bool value) {
103 m_storageEfficiencyEnabledHasBeenSet = true;
104 m_storageEfficiencyEnabled = value;
105 }
108 return *this;
109 }
111
113
116 inline const Aws::String& GetStorageVirtualMachineId() const { return m_storageVirtualMachineId; }
117 inline bool StorageVirtualMachineIdHasBeenSet() const { return m_storageVirtualMachineIdHasBeenSet; }
118 template <typename StorageVirtualMachineIdT = Aws::String>
119 void SetStorageVirtualMachineId(StorageVirtualMachineIdT&& value) {
120 m_storageVirtualMachineIdHasBeenSet = true;
121 m_storageVirtualMachineId = std::forward<StorageVirtualMachineIdT>(value);
122 }
123 template <typename StorageVirtualMachineIdT = Aws::String>
125 SetStorageVirtualMachineId(std::forward<StorageVirtualMachineIdT>(value));
126 return *this;
127 }
129
131
132 inline const TieringPolicy& GetTieringPolicy() const { return m_tieringPolicy; }
133 inline bool TieringPolicyHasBeenSet() const { return m_tieringPolicyHasBeenSet; }
134 template <typename TieringPolicyT = TieringPolicy>
135 void SetTieringPolicy(TieringPolicyT&& value) {
136 m_tieringPolicyHasBeenSet = true;
137 m_tieringPolicy = std::forward<TieringPolicyT>(value);
138 }
139 template <typename TieringPolicyT = TieringPolicy>
141 SetTieringPolicy(std::forward<TieringPolicyT>(value));
142 return *this;
143 }
145
147
157 inline InputOntapVolumeType GetOntapVolumeType() const { return m_ontapVolumeType; }
158 inline bool OntapVolumeTypeHasBeenSet() const { return m_ontapVolumeTypeHasBeenSet; }
160 m_ontapVolumeTypeHasBeenSet = true;
161 m_ontapVolumeType = value;
162 }
164 SetOntapVolumeType(value);
165 return *this;
166 }
168
170
186 inline const Aws::String& GetSnapshotPolicy() const { return m_snapshotPolicy; }
187 inline bool SnapshotPolicyHasBeenSet() const { return m_snapshotPolicyHasBeenSet; }
188 template <typename SnapshotPolicyT = Aws::String>
189 void SetSnapshotPolicy(SnapshotPolicyT&& value) {
190 m_snapshotPolicyHasBeenSet = true;
191 m_snapshotPolicy = std::forward<SnapshotPolicyT>(value);
192 }
193 template <typename SnapshotPolicyT = Aws::String>
195 SetSnapshotPolicy(std::forward<SnapshotPolicyT>(value));
196 return *this;
197 }
199
201
210 inline bool GetCopyTagsToBackups() const { return m_copyTagsToBackups; }
211 inline bool CopyTagsToBackupsHasBeenSet() const { return m_copyTagsToBackupsHasBeenSet; }
212 inline void SetCopyTagsToBackups(bool value) {
213 m_copyTagsToBackupsHasBeenSet = true;
214 m_copyTagsToBackups = value;
215 }
218 return *this;
219 }
221
223
226 inline const CreateSnaplockConfiguration& GetSnaplockConfiguration() const { return m_snaplockConfiguration; }
227 inline bool SnaplockConfigurationHasBeenSet() const { return m_snaplockConfigurationHasBeenSet; }
228 template <typename SnaplockConfigurationT = CreateSnaplockConfiguration>
229 void SetSnaplockConfiguration(SnaplockConfigurationT&& value) {
230 m_snaplockConfigurationHasBeenSet = true;
231 m_snaplockConfiguration = std::forward<SnaplockConfigurationT>(value);
232 }
233 template <typename SnaplockConfigurationT = CreateSnaplockConfiguration>
235 SetSnaplockConfiguration(std::forward<SnaplockConfigurationT>(value));
236 return *this;
237 }
239
241
248 inline VolumeStyle GetVolumeStyle() const { return m_volumeStyle; }
249 inline bool VolumeStyleHasBeenSet() const { return m_volumeStyleHasBeenSet; }
250 inline void SetVolumeStyle(VolumeStyle value) {
251 m_volumeStyleHasBeenSet = true;
252 m_volumeStyle = value;
253 }
255 SetVolumeStyle(value);
256 return *this;
257 }
259
261
265 inline const CreateAggregateConfiguration& GetAggregateConfiguration() const { return m_aggregateConfiguration; }
266 inline bool AggregateConfigurationHasBeenSet() const { return m_aggregateConfigurationHasBeenSet; }
267 template <typename AggregateConfigurationT = CreateAggregateConfiguration>
268 void SetAggregateConfiguration(AggregateConfigurationT&& value) {
269 m_aggregateConfigurationHasBeenSet = true;
270 m_aggregateConfiguration = std::forward<AggregateConfigurationT>(value);
271 }
272 template <typename AggregateConfigurationT = CreateAggregateConfiguration>
274 SetAggregateConfiguration(std::forward<AggregateConfigurationT>(value));
275 return *this;
276 }
278
280
283 inline long long GetSizeInBytes() const { return m_sizeInBytes; }
284 inline bool SizeInBytesHasBeenSet() const { return m_sizeInBytesHasBeenSet; }
285 inline void SetSizeInBytes(long long value) {
286 m_sizeInBytesHasBeenSet = true;
287 m_sizeInBytes = value;
288 }
290 SetSizeInBytes(value);
291 return *this;
292 }
294 private:
295 Aws::String m_junctionPath;
296
297 SecurityStyle m_securityStyle{SecurityStyle::NOT_SET};
298
299 bool m_storageEfficiencyEnabled{false};
300
301 Aws::String m_storageVirtualMachineId;
302
303 TieringPolicy m_tieringPolicy;
304
306
307 Aws::String m_snapshotPolicy;
308
309 bool m_copyTagsToBackups{false};
310
311 CreateSnaplockConfiguration m_snaplockConfiguration;
312
313 VolumeStyle m_volumeStyle{VolumeStyle::NOT_SET};
314
315 CreateAggregateConfiguration m_aggregateConfiguration;
316
317 long long m_sizeInBytes{0};
318 bool m_junctionPathHasBeenSet = false;
319 bool m_securityStyleHasBeenSet = false;
320 bool m_storageEfficiencyEnabledHasBeenSet = false;
321 bool m_storageVirtualMachineIdHasBeenSet = false;
322 bool m_tieringPolicyHasBeenSet = false;
323 bool m_ontapVolumeTypeHasBeenSet = false;
324 bool m_snapshotPolicyHasBeenSet = false;
325 bool m_copyTagsToBackupsHasBeenSet = false;
326 bool m_snaplockConfigurationHasBeenSet = false;
327 bool m_volumeStyleHasBeenSet = false;
328 bool m_aggregateConfigurationHasBeenSet = false;
329 bool m_sizeInBytesHasBeenSet = false;
330};
331
332} // namespace Model
333} // namespace FSx
334} // namespace Aws
CreateOntapVolumeConfiguration & WithJunctionPath(JunctionPathT &&value)
CreateOntapVolumeConfiguration & WithAggregateConfiguration(AggregateConfigurationT &&value)
const CreateSnaplockConfiguration & GetSnaplockConfiguration() const
CreateOntapVolumeConfiguration & WithSnaplockConfiguration(SnaplockConfigurationT &&value)
CreateOntapVolumeConfiguration & WithVolumeStyle(VolumeStyle value)
CreateOntapVolumeConfiguration & WithSizeInBytes(long long value)
CreateOntapVolumeConfiguration & WithStorageVirtualMachineId(StorageVirtualMachineIdT &&value)
CreateOntapVolumeConfiguration & WithStorageEfficiencyEnabled(bool value)
AWS_FSX_API CreateOntapVolumeConfiguration(Aws::Utils::Json::JsonView jsonValue)
void SetStorageVirtualMachineId(StorageVirtualMachineIdT &&value)
const CreateAggregateConfiguration & GetAggregateConfiguration() const
CreateOntapVolumeConfiguration & WithSnapshotPolicy(SnapshotPolicyT &&value)
CreateOntapVolumeConfiguration & WithSecurityStyle(SecurityStyle value)
CreateOntapVolumeConfiguration & WithOntapVolumeType(InputOntapVolumeType value)
CreateOntapVolumeConfiguration & WithTieringPolicy(TieringPolicyT &&value)
AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_FSX_API CreateOntapVolumeConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
CreateOntapVolumeConfiguration & WithCopyTagsToBackups(bool value)
void SetAggregateConfiguration(AggregateConfigurationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue