aws_sdk_fsx/operation/create_file_system_from_backup/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::create_file_system_from_backup::_create_file_system_from_backup_output::CreateFileSystemFromBackupOutputBuilder;
3
4pub use crate::operation::create_file_system_from_backup::_create_file_system_from_backup_input::CreateFileSystemFromBackupInputBuilder;
5
6impl crate::operation::create_file_system_from_backup::builders::CreateFileSystemFromBackupInputBuilder {
7    /// Sends a request with this input using the given client.
8    pub async fn send_with(
9        self,
10        client: &crate::Client,
11    ) -> ::std::result::Result<
12        crate::operation::create_file_system_from_backup::CreateFileSystemFromBackupOutput,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::create_file_system_from_backup::CreateFileSystemFromBackupError,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.create_file_system_from_backup();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23/// Fluent builder constructing a request to `CreateFileSystemFromBackup`.
24///
25/// <p>Creates a new Amazon FSx for Lustre, Amazon FSx for Windows File Server, or Amazon FSx for OpenZFS file system from an existing Amazon FSx backup.</p>
26/// <p>If a file system with the specified client request token exists and the parameters match, this operation returns the description of the file system. If a file system with the specified client request token exists but the parameters don't match, this call returns <code>IncompatibleParameterError</code>. If a file system with the specified client request token doesn't exist, this operation does the following:</p>
27/// <ul>
28/// <li>
29/// <p>Creates a new Amazon FSx file system from backup with an assigned ID, and an initial lifecycle state of <code>CREATING</code>.</p></li>
30/// <li>
31/// <p>Returns the description of the file system.</p></li>
32/// </ul>
33/// <p>Parameters like the Active Directory, default share name, automatic backup, and backup settings default to the parameters of the file system that was backed up, unless overridden. You can explicitly supply other settings.</p>
34/// <p>By using the idempotent operation, you can retry a <code>CreateFileSystemFromBackup</code> call without the risk of creating an extra file system. This approach can be useful when an initial call fails in a way that makes it unclear whether a file system was created. Examples are if a transport level timeout occurred, or your connection was reset. If you use the same client request token and the initial call created a file system, the client receives a success message as long as the parameters are the same.</p><note>
35/// <p>The <code>CreateFileSystemFromBackup</code> call returns while the file system's lifecycle state is still <code>CREATING</code>. You can check the file-system creation status by calling the <a href="https://docs.aws.amazon.com/fsx/latest/APIReference/API_DescribeFileSystems.html"> DescribeFileSystems</a> operation, which returns the file system state along with other information.</p>
36/// </note>
37#[derive(::std::clone::Clone, ::std::fmt::Debug)]
38pub struct CreateFileSystemFromBackupFluentBuilder {
39    handle: ::std::sync::Arc<crate::client::Handle>,
40    inner: crate::operation::create_file_system_from_backup::builders::CreateFileSystemFromBackupInputBuilder,
41    config_override: ::std::option::Option<crate::config::Builder>,
42}
43impl
44    crate::client::customize::internal::CustomizableSend<
45        crate::operation::create_file_system_from_backup::CreateFileSystemFromBackupOutput,
46        crate::operation::create_file_system_from_backup::CreateFileSystemFromBackupError,
47    > for CreateFileSystemFromBackupFluentBuilder
48{
49    fn send(
50        self,
51        config_override: crate::config::Builder,
52    ) -> crate::client::customize::internal::BoxFuture<
53        crate::client::customize::internal::SendResult<
54            crate::operation::create_file_system_from_backup::CreateFileSystemFromBackupOutput,
55            crate::operation::create_file_system_from_backup::CreateFileSystemFromBackupError,
56        >,
57    > {
58        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
59    }
60}
61impl CreateFileSystemFromBackupFluentBuilder {
62    /// Creates a new `CreateFileSystemFromBackupFluentBuilder`.
63    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
64        Self {
65            handle,
66            inner: ::std::default::Default::default(),
67            config_override: ::std::option::Option::None,
68        }
69    }
70    /// Access the CreateFileSystemFromBackup as a reference.
71    pub fn as_input(&self) -> &crate::operation::create_file_system_from_backup::builders::CreateFileSystemFromBackupInputBuilder {
72        &self.inner
73    }
74    /// Sends the request and returns the response.
75    ///
76    /// If an error occurs, an `SdkError` will be returned with additional details that
77    /// can be matched against.
78    ///
79    /// By default, any retryable failures will be retried twice. Retry behavior
80    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
81    /// set when configuring the client.
82    pub async fn send(
83        self,
84    ) -> ::std::result::Result<
85        crate::operation::create_file_system_from_backup::CreateFileSystemFromBackupOutput,
86        ::aws_smithy_runtime_api::client::result::SdkError<
87            crate::operation::create_file_system_from_backup::CreateFileSystemFromBackupError,
88            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
89        >,
90    > {
91        let input = self
92            .inner
93            .build()
94            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
95        let runtime_plugins = crate::operation::create_file_system_from_backup::CreateFileSystemFromBackup::operation_runtime_plugins(
96            self.handle.runtime_plugins.clone(),
97            &self.handle.conf,
98            self.config_override,
99        );
100        crate::operation::create_file_system_from_backup::CreateFileSystemFromBackup::orchestrate(&runtime_plugins, input).await
101    }
102
103    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
104    pub fn customize(
105        self,
106    ) -> crate::client::customize::CustomizableOperation<
107        crate::operation::create_file_system_from_backup::CreateFileSystemFromBackupOutput,
108        crate::operation::create_file_system_from_backup::CreateFileSystemFromBackupError,
109        Self,
110    > {
111        crate::client::customize::CustomizableOperation::new(self)
112    }
113    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
114        self.set_config_override(::std::option::Option::Some(config_override.into()));
115        self
116    }
117
118    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
119        self.config_override = config_override;
120        self
121    }
122    /// <p>The ID of the source backup. Specifies the backup that you are copying.</p>
123    pub fn backup_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
124        self.inner = self.inner.backup_id(input.into());
125        self
126    }
127    /// <p>The ID of the source backup. Specifies the backup that you are copying.</p>
128    pub fn set_backup_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
129        self.inner = self.inner.set_backup_id(input);
130        self
131    }
132    /// <p>The ID of the source backup. Specifies the backup that you are copying.</p>
133    pub fn get_backup_id(&self) -> &::std::option::Option<::std::string::String> {
134        self.inner.get_backup_id()
135    }
136    /// <p>A string of up to 63 ASCII characters that Amazon FSx uses to ensure idempotent creation. This string is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.</p>
137    pub fn client_request_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
138        self.inner = self.inner.client_request_token(input.into());
139        self
140    }
141    /// <p>A string of up to 63 ASCII characters that Amazon FSx uses to ensure idempotent creation. This string is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.</p>
142    pub fn set_client_request_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
143        self.inner = self.inner.set_client_request_token(input);
144        self
145    }
146    /// <p>A string of up to 63 ASCII characters that Amazon FSx uses to ensure idempotent creation. This string is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.</p>
147    pub fn get_client_request_token(&self) -> &::std::option::Option<::std::string::String> {
148        self.inner.get_client_request_token()
149    }
150    ///
151    /// Appends an item to `SubnetIds`.
152    ///
153    /// To override the contents of this collection use [`set_subnet_ids`](Self::set_subnet_ids).
154    ///
155    /// <p>Specifies the IDs of the subnets that the file system will be accessible from. For Windows <code>MULTI_AZ_1</code> file system deployment types, provide exactly two subnet IDs, one for the preferred file server and one for the standby file server. You specify one of these subnets as the preferred subnet using the <code>WindowsConfiguration &gt; PreferredSubnetID</code> property.</p>
156    /// <p>Windows <code>SINGLE_AZ_1</code> and <code>SINGLE_AZ_2</code> file system deployment types, Lustre file systems, and OpenZFS file systems provide exactly one subnet ID. The file server is launched in that subnet's Availability Zone.</p>
157    pub fn subnet_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
158        self.inner = self.inner.subnet_ids(input.into());
159        self
160    }
161    /// <p>Specifies the IDs of the subnets that the file system will be accessible from. For Windows <code>MULTI_AZ_1</code> file system deployment types, provide exactly two subnet IDs, one for the preferred file server and one for the standby file server. You specify one of these subnets as the preferred subnet using the <code>WindowsConfiguration &gt; PreferredSubnetID</code> property.</p>
162    /// <p>Windows <code>SINGLE_AZ_1</code> and <code>SINGLE_AZ_2</code> file system deployment types, Lustre file systems, and OpenZFS file systems provide exactly one subnet ID. The file server is launched in that subnet's Availability Zone.</p>
163    pub fn set_subnet_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
164        self.inner = self.inner.set_subnet_ids(input);
165        self
166    }
167    /// <p>Specifies the IDs of the subnets that the file system will be accessible from. For Windows <code>MULTI_AZ_1</code> file system deployment types, provide exactly two subnet IDs, one for the preferred file server and one for the standby file server. You specify one of these subnets as the preferred subnet using the <code>WindowsConfiguration &gt; PreferredSubnetID</code> property.</p>
168    /// <p>Windows <code>SINGLE_AZ_1</code> and <code>SINGLE_AZ_2</code> file system deployment types, Lustre file systems, and OpenZFS file systems provide exactly one subnet ID. The file server is launched in that subnet's Availability Zone.</p>
169    pub fn get_subnet_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
170        self.inner.get_subnet_ids()
171    }
172    ///
173    /// Appends an item to `SecurityGroupIds`.
174    ///
175    /// To override the contents of this collection use [`set_security_group_ids`](Self::set_security_group_ids).
176    ///
177    /// <p>A list of IDs for the security groups that apply to the specified network interfaces created for file system access. These security groups apply to all network interfaces. This value isn't returned in later <code>DescribeFileSystem</code> requests.</p>
178    pub fn security_group_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
179        self.inner = self.inner.security_group_ids(input.into());
180        self
181    }
182    /// <p>A list of IDs for the security groups that apply to the specified network interfaces created for file system access. These security groups apply to all network interfaces. This value isn't returned in later <code>DescribeFileSystem</code> requests.</p>
183    pub fn set_security_group_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
184        self.inner = self.inner.set_security_group_ids(input);
185        self
186    }
187    /// <p>A list of IDs for the security groups that apply to the specified network interfaces created for file system access. These security groups apply to all network interfaces. This value isn't returned in later <code>DescribeFileSystem</code> requests.</p>
188    pub fn get_security_group_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
189        self.inner.get_security_group_ids()
190    }
191    ///
192    /// Appends an item to `Tags`.
193    ///
194    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
195    ///
196    /// <p>The tags to be applied to the file system at file system creation. The key value of the <code>Name</code> tag appears in the console as the file system name.</p>
197    pub fn tags(mut self, input: crate::types::Tag) -> Self {
198        self.inner = self.inner.tags(input);
199        self
200    }
201    /// <p>The tags to be applied to the file system at file system creation. The key value of the <code>Name</code> tag appears in the console as the file system name.</p>
202    pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
203        self.inner = self.inner.set_tags(input);
204        self
205    }
206    /// <p>The tags to be applied to the file system at file system creation. The key value of the <code>Name</code> tag appears in the console as the file system name.</p>
207    pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
208        self.inner.get_tags()
209    }
210    /// <p>The configuration for this Microsoft Windows file system.</p>
211    pub fn windows_configuration(mut self, input: crate::types::CreateFileSystemWindowsConfiguration) -> Self {
212        self.inner = self.inner.windows_configuration(input);
213        self
214    }
215    /// <p>The configuration for this Microsoft Windows file system.</p>
216    pub fn set_windows_configuration(mut self, input: ::std::option::Option<crate::types::CreateFileSystemWindowsConfiguration>) -> Self {
217        self.inner = self.inner.set_windows_configuration(input);
218        self
219    }
220    /// <p>The configuration for this Microsoft Windows file system.</p>
221    pub fn get_windows_configuration(&self) -> &::std::option::Option<crate::types::CreateFileSystemWindowsConfiguration> {
222        self.inner.get_windows_configuration()
223    }
224    /// <p>The Lustre configuration for the file system being created.</p><note>
225    /// <p>The following parameters are not supported for file systems with a data repository association created with .</p>
226    /// <ul>
227    /// <li>
228    /// <p><code>AutoImportPolicy</code></p></li>
229    /// <li>
230    /// <p><code>ExportPath</code></p></li>
231    /// <li>
232    /// <p><code>ImportedFileChunkSize</code></p></li>
233    /// <li>
234    /// <p><code>ImportPath</code></p></li>
235    /// </ul>
236    /// </note>
237    pub fn lustre_configuration(mut self, input: crate::types::CreateFileSystemLustreConfiguration) -> Self {
238        self.inner = self.inner.lustre_configuration(input);
239        self
240    }
241    /// <p>The Lustre configuration for the file system being created.</p><note>
242    /// <p>The following parameters are not supported for file systems with a data repository association created with .</p>
243    /// <ul>
244    /// <li>
245    /// <p><code>AutoImportPolicy</code></p></li>
246    /// <li>
247    /// <p><code>ExportPath</code></p></li>
248    /// <li>
249    /// <p><code>ImportedFileChunkSize</code></p></li>
250    /// <li>
251    /// <p><code>ImportPath</code></p></li>
252    /// </ul>
253    /// </note>
254    pub fn set_lustre_configuration(mut self, input: ::std::option::Option<crate::types::CreateFileSystemLustreConfiguration>) -> Self {
255        self.inner = self.inner.set_lustre_configuration(input);
256        self
257    }
258    /// <p>The Lustre configuration for the file system being created.</p><note>
259    /// <p>The following parameters are not supported for file systems with a data repository association created with .</p>
260    /// <ul>
261    /// <li>
262    /// <p><code>AutoImportPolicy</code></p></li>
263    /// <li>
264    /// <p><code>ExportPath</code></p></li>
265    /// <li>
266    /// <p><code>ImportedFileChunkSize</code></p></li>
267    /// <li>
268    /// <p><code>ImportPath</code></p></li>
269    /// </ul>
270    /// </note>
271    pub fn get_lustre_configuration(&self) -> &::std::option::Option<crate::types::CreateFileSystemLustreConfiguration> {
272        self.inner.get_lustre_configuration()
273    }
274    /// <p>Sets the storage type for the Windows or OpenZFS file system that you're creating from a backup. Valid values are <code>SSD</code> and <code>HDD</code>.</p>
275    /// <ul>
276    /// <li>
277    /// <p>Set to <code>SSD</code> to use solid state drive storage. SSD is supported on all Windows and OpenZFS deployment types.</p></li>
278    /// <li>
279    /// <p>Set to <code>HDD</code> to use hard disk drive storage. HDD is supported on <code>SINGLE_AZ_2</code> and <code>MULTI_AZ_1</code> FSx for Windows File Server file system deployment types.</p></li>
280    /// </ul>
281    /// <p>The default value is <code>SSD</code>.</p><note>
282    /// <p>HDD and SSD storage types have different minimum storage capacity requirements. A restored file system's storage capacity is tied to the file system that was backed up. You can create a file system that uses HDD storage from a backup of a file system that used SSD storage if the original SSD file system had a storage capacity of at least 2000 GiB.</p>
283    /// </note>
284    pub fn storage_type(mut self, input: crate::types::StorageType) -> Self {
285        self.inner = self.inner.storage_type(input);
286        self
287    }
288    /// <p>Sets the storage type for the Windows or OpenZFS file system that you're creating from a backup. Valid values are <code>SSD</code> and <code>HDD</code>.</p>
289    /// <ul>
290    /// <li>
291    /// <p>Set to <code>SSD</code> to use solid state drive storage. SSD is supported on all Windows and OpenZFS deployment types.</p></li>
292    /// <li>
293    /// <p>Set to <code>HDD</code> to use hard disk drive storage. HDD is supported on <code>SINGLE_AZ_2</code> and <code>MULTI_AZ_1</code> FSx for Windows File Server file system deployment types.</p></li>
294    /// </ul>
295    /// <p>The default value is <code>SSD</code>.</p><note>
296    /// <p>HDD and SSD storage types have different minimum storage capacity requirements. A restored file system's storage capacity is tied to the file system that was backed up. You can create a file system that uses HDD storage from a backup of a file system that used SSD storage if the original SSD file system had a storage capacity of at least 2000 GiB.</p>
297    /// </note>
298    pub fn set_storage_type(mut self, input: ::std::option::Option<crate::types::StorageType>) -> Self {
299        self.inner = self.inner.set_storage_type(input);
300        self
301    }
302    /// <p>Sets the storage type for the Windows or OpenZFS file system that you're creating from a backup. Valid values are <code>SSD</code> and <code>HDD</code>.</p>
303    /// <ul>
304    /// <li>
305    /// <p>Set to <code>SSD</code> to use solid state drive storage. SSD is supported on all Windows and OpenZFS deployment types.</p></li>
306    /// <li>
307    /// <p>Set to <code>HDD</code> to use hard disk drive storage. HDD is supported on <code>SINGLE_AZ_2</code> and <code>MULTI_AZ_1</code> FSx for Windows File Server file system deployment types.</p></li>
308    /// </ul>
309    /// <p>The default value is <code>SSD</code>.</p><note>
310    /// <p>HDD and SSD storage types have different minimum storage capacity requirements. A restored file system's storage capacity is tied to the file system that was backed up. You can create a file system that uses HDD storage from a backup of a file system that used SSD storage if the original SSD file system had a storage capacity of at least 2000 GiB.</p>
311    /// </note>
312    pub fn get_storage_type(&self) -> &::std::option::Option<crate::types::StorageType> {
313        self.inner.get_storage_type()
314    }
315    /// <p>Specifies the ID of the Key Management Service (KMS) key to use for encrypting data on Amazon FSx file systems, as follows:</p>
316    /// <ul>
317    /// <li>
318    /// <p>Amazon FSx for Lustre <code>PERSISTENT_1</code> and <code>PERSISTENT_2</code> deployment types only.</p>
319    /// <p><code>SCRATCH_1</code> and <code>SCRATCH_2</code> types are encrypted using the Amazon FSx service KMS key for your account.</p></li>
320    /// <li>
321    /// <p>Amazon FSx for NetApp ONTAP</p></li>
322    /// <li>
323    /// <p>Amazon FSx for OpenZFS</p></li>
324    /// <li>
325    /// <p>Amazon FSx for Windows File Server</p></li>
326    /// </ul>
327    /// <p>If a <code>KmsKeyId</code> isn't specified, the Amazon FSx-managed KMS key for your account is used. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/APIReference/API_Encrypt.html">Encrypt</a> in the <i>Key Management Service API Reference</i>.</p>
328    pub fn kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
329        self.inner = self.inner.kms_key_id(input.into());
330        self
331    }
332    /// <p>Specifies the ID of the Key Management Service (KMS) key to use for encrypting data on Amazon FSx file systems, as follows:</p>
333    /// <ul>
334    /// <li>
335    /// <p>Amazon FSx for Lustre <code>PERSISTENT_1</code> and <code>PERSISTENT_2</code> deployment types only.</p>
336    /// <p><code>SCRATCH_1</code> and <code>SCRATCH_2</code> types are encrypted using the Amazon FSx service KMS key for your account.</p></li>
337    /// <li>
338    /// <p>Amazon FSx for NetApp ONTAP</p></li>
339    /// <li>
340    /// <p>Amazon FSx for OpenZFS</p></li>
341    /// <li>
342    /// <p>Amazon FSx for Windows File Server</p></li>
343    /// </ul>
344    /// <p>If a <code>KmsKeyId</code> isn't specified, the Amazon FSx-managed KMS key for your account is used. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/APIReference/API_Encrypt.html">Encrypt</a> in the <i>Key Management Service API Reference</i>.</p>
345    pub fn set_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
346        self.inner = self.inner.set_kms_key_id(input);
347        self
348    }
349    /// <p>Specifies the ID of the Key Management Service (KMS) key to use for encrypting data on Amazon FSx file systems, as follows:</p>
350    /// <ul>
351    /// <li>
352    /// <p>Amazon FSx for Lustre <code>PERSISTENT_1</code> and <code>PERSISTENT_2</code> deployment types only.</p>
353    /// <p><code>SCRATCH_1</code> and <code>SCRATCH_2</code> types are encrypted using the Amazon FSx service KMS key for your account.</p></li>
354    /// <li>
355    /// <p>Amazon FSx for NetApp ONTAP</p></li>
356    /// <li>
357    /// <p>Amazon FSx for OpenZFS</p></li>
358    /// <li>
359    /// <p>Amazon FSx for Windows File Server</p></li>
360    /// </ul>
361    /// <p>If a <code>KmsKeyId</code> isn't specified, the Amazon FSx-managed KMS key for your account is used. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/APIReference/API_Encrypt.html">Encrypt</a> in the <i>Key Management Service API Reference</i>.</p>
362    pub fn get_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
363        self.inner.get_kms_key_id()
364    }
365    /// <p>Sets the version for the Amazon FSx for Lustre file system that you're creating from a backup. Valid values are <code>2.10</code>, <code>2.12</code>, and <code>2.15</code>.</p>
366    /// <p>You can enter a Lustre version that is newer than the backup's <code>FileSystemTypeVersion</code> setting. If you don't enter a newer Lustre version, it defaults to the backup's setting.</p>
367    pub fn file_system_type_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
368        self.inner = self.inner.file_system_type_version(input.into());
369        self
370    }
371    /// <p>Sets the version for the Amazon FSx for Lustre file system that you're creating from a backup. Valid values are <code>2.10</code>, <code>2.12</code>, and <code>2.15</code>.</p>
372    /// <p>You can enter a Lustre version that is newer than the backup's <code>FileSystemTypeVersion</code> setting. If you don't enter a newer Lustre version, it defaults to the backup's setting.</p>
373    pub fn set_file_system_type_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
374        self.inner = self.inner.set_file_system_type_version(input);
375        self
376    }
377    /// <p>Sets the version for the Amazon FSx for Lustre file system that you're creating from a backup. Valid values are <code>2.10</code>, <code>2.12</code>, and <code>2.15</code>.</p>
378    /// <p>You can enter a Lustre version that is newer than the backup's <code>FileSystemTypeVersion</code> setting. If you don't enter a newer Lustre version, it defaults to the backup's setting.</p>
379    pub fn get_file_system_type_version(&self) -> &::std::option::Option<::std::string::String> {
380        self.inner.get_file_system_type_version()
381    }
382    /// <p>The OpenZFS configuration for the file system that's being created.</p>
383    pub fn open_zfs_configuration(mut self, input: crate::types::CreateFileSystemOpenZfsConfiguration) -> Self {
384        self.inner = self.inner.open_zfs_configuration(input);
385        self
386    }
387    /// <p>The OpenZFS configuration for the file system that's being created.</p>
388    pub fn set_open_zfs_configuration(mut self, input: ::std::option::Option<crate::types::CreateFileSystemOpenZfsConfiguration>) -> Self {
389        self.inner = self.inner.set_open_zfs_configuration(input);
390        self
391    }
392    /// <p>The OpenZFS configuration for the file system that's being created.</p>
393    pub fn get_open_zfs_configuration(&self) -> &::std::option::Option<crate::types::CreateFileSystemOpenZfsConfiguration> {
394        self.inner.get_open_zfs_configuration()
395    }
396    /// <p>Sets the storage capacity of the OpenZFS file system that you're creating from a backup, in gibibytes (GiB). Valid values are from 64 GiB up to 524,288 GiB (512 TiB). However, the value that you specify must be equal to or greater than the backup's storage capacity value. If you don't use the <code>StorageCapacity</code> parameter, the default is the backup's <code>StorageCapacity</code> value.</p>
397    /// <p>If used to create a file system other than OpenZFS, you must provide a value that matches the backup's <code>StorageCapacity</code> value. If you provide any other value, Amazon FSx responds with an HTTP status code 400 Bad Request.</p>
398    pub fn storage_capacity(mut self, input: i32) -> Self {
399        self.inner = self.inner.storage_capacity(input);
400        self
401    }
402    /// <p>Sets the storage capacity of the OpenZFS file system that you're creating from a backup, in gibibytes (GiB). Valid values are from 64 GiB up to 524,288 GiB (512 TiB). However, the value that you specify must be equal to or greater than the backup's storage capacity value. If you don't use the <code>StorageCapacity</code> parameter, the default is the backup's <code>StorageCapacity</code> value.</p>
403    /// <p>If used to create a file system other than OpenZFS, you must provide a value that matches the backup's <code>StorageCapacity</code> value. If you provide any other value, Amazon FSx responds with an HTTP status code 400 Bad Request.</p>
404    pub fn set_storage_capacity(mut self, input: ::std::option::Option<i32>) -> Self {
405        self.inner = self.inner.set_storage_capacity(input);
406        self
407    }
408    /// <p>Sets the storage capacity of the OpenZFS file system that you're creating from a backup, in gibibytes (GiB). Valid values are from 64 GiB up to 524,288 GiB (512 TiB). However, the value that you specify must be equal to or greater than the backup's storage capacity value. If you don't use the <code>StorageCapacity</code> parameter, the default is the backup's <code>StorageCapacity</code> value.</p>
409    /// <p>If used to create a file system other than OpenZFS, you must provide a value that matches the backup's <code>StorageCapacity</code> value. If you provide any other value, Amazon FSx responds with an HTTP status code 400 Bad Request.</p>
410    pub fn get_storage_capacity(&self) -> &::std::option::Option<i32> {
411        self.inner.get_storage_capacity()
412    }
413}