#[non_exhaustive]pub struct OpenZfsClientConfigurationBuilder { /* private fields */ }Expand description
A builder for OpenZfsClientConfiguration.
Implementations§
source§impl OpenZfsClientConfigurationBuilder
impl OpenZfsClientConfigurationBuilder
sourcepub fn clients(self, input: impl Into<String>) -> Self
pub fn clients(self, input: impl Into<String>) -> Self
A value that specifies who can mount the file system. You can provide a wildcard character (*), an IP address (0.0.0.0), or a CIDR address (192.0.2.0/24). By default, Amazon FSx uses the wildcard character when specifying the client.
sourcepub fn set_clients(self, input: Option<String>) -> Self
pub fn set_clients(self, input: Option<String>) -> Self
A value that specifies who can mount the file system. You can provide a wildcard character (*), an IP address (0.0.0.0), or a CIDR address (192.0.2.0/24). By default, Amazon FSx uses the wildcard character when specifying the client.
sourcepub fn options(self, input: impl Into<String>) -> Self
pub fn options(self, input: impl Into<String>) -> Self
Appends an item to options.
To override the contents of this collection use set_options.
The options to use when mounting the file system. For a list of options that you can use with Network File System (NFS), see the exports(5) - Linux man page. When choosing your options, consider the following:
-
crossmntis used by default. If you don't specifycrossmntwhen changing the client configuration, you won't be able to see or access snapshots in your file system's snapshot directory. -
syncis used by default. If you instead specifyasync, the system acknowledges writes before writing to disk. If the system crashes before the writes are finished, you lose the unwritten data.
sourcepub fn set_options(self, input: Option<Vec<String>>) -> Self
pub fn set_options(self, input: Option<Vec<String>>) -> Self
The options to use when mounting the file system. For a list of options that you can use with Network File System (NFS), see the exports(5) - Linux man page. When choosing your options, consider the following:
-
crossmntis used by default. If you don't specifycrossmntwhen changing the client configuration, you won't be able to see or access snapshots in your file system's snapshot directory. -
syncis used by default. If you instead specifyasync, the system acknowledges writes before writing to disk. If the system crashes before the writes are finished, you lose the unwritten data.
sourcepub fn build(self) -> OpenZfsClientConfiguration
pub fn build(self) -> OpenZfsClientConfiguration
Consumes the builder and constructs a OpenZfsClientConfiguration.
Trait Implementations§
source§impl Clone for OpenZfsClientConfigurationBuilder
impl Clone for OpenZfsClientConfigurationBuilder
source§fn clone(&self) -> OpenZfsClientConfigurationBuilder
fn clone(&self) -> OpenZfsClientConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for OpenZfsClientConfigurationBuilder
impl Default for OpenZfsClientConfigurationBuilder
source§fn default() -> OpenZfsClientConfigurationBuilder
fn default() -> OpenZfsClientConfigurationBuilder
source§impl PartialEq<OpenZfsClientConfigurationBuilder> for OpenZfsClientConfigurationBuilder
impl PartialEq<OpenZfsClientConfigurationBuilder> for OpenZfsClientConfigurationBuilder
source§fn eq(&self, other: &OpenZfsClientConfigurationBuilder) -> bool
fn eq(&self, other: &OpenZfsClientConfigurationBuilder) -> bool
self and other values to be equal, and is used
by ==.