Struct aws_sdk_datasync::operation::create_location_nfs::builders::CreateLocationNfsFluentBuilder
source · pub struct CreateLocationNfsFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateLocationNfs
.
Creates a transfer location for a Network File System (NFS) file server. DataSync can use this location as a source or destination for transferring data.
Before you begin, make sure that you understand how DataSync accesses NFS file servers.
If you're copying data to or from an Snowcone device, you can also use CreateLocationNfs
to create your transfer location. For more information, see Configuring transfers with Snowcone.
Implementations§
source§impl CreateLocationNfsFluentBuilder
impl CreateLocationNfsFluentBuilder
sourcepub fn as_input(&self) -> &CreateLocationNfsInputBuilder
pub fn as_input(&self) -> &CreateLocationNfsInputBuilder
Access the CreateLocationNfs as a reference.
sourcepub async fn send(
self,
) -> Result<CreateLocationNfsOutput, SdkError<CreateLocationNfsError, HttpResponse>>
pub async fn send( self, ) -> Result<CreateLocationNfsOutput, SdkError<CreateLocationNfsError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self,
) -> CustomizableOperation<CreateLocationNfsOutput, CreateLocationNfsError, Self>
pub fn customize( self, ) -> CustomizableOperation<CreateLocationNfsOutput, CreateLocationNfsError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn subdirectory(self, input: impl Into<String>) -> Self
pub fn subdirectory(self, input: impl Into<String>) -> Self
Specifies the export path in your NFS file server that you want DataSync to mount.
This path (or a subdirectory of the path) is where DataSync transfers data to or from. For information on configuring an export for DataSync, see Accessing NFS file servers.
sourcepub fn set_subdirectory(self, input: Option<String>) -> Self
pub fn set_subdirectory(self, input: Option<String>) -> Self
Specifies the export path in your NFS file server that you want DataSync to mount.
This path (or a subdirectory of the path) is where DataSync transfers data to or from. For information on configuring an export for DataSync, see Accessing NFS file servers.
sourcepub fn get_subdirectory(&self) -> &Option<String>
pub fn get_subdirectory(&self) -> &Option<String>
Specifies the export path in your NFS file server that you want DataSync to mount.
This path (or a subdirectory of the path) is where DataSync transfers data to or from. For information on configuring an export for DataSync, see Accessing NFS file servers.
sourcepub fn server_hostname(self, input: impl Into<String>) -> Self
pub fn server_hostname(self, input: impl Into<String>) -> Self
Specifies the Domain Name System (DNS) name or IP version 4 address of the NFS file server that your DataSync agent connects to.
sourcepub fn set_server_hostname(self, input: Option<String>) -> Self
pub fn set_server_hostname(self, input: Option<String>) -> Self
Specifies the Domain Name System (DNS) name or IP version 4 address of the NFS file server that your DataSync agent connects to.
sourcepub fn get_server_hostname(&self) -> &Option<String>
pub fn get_server_hostname(&self) -> &Option<String>
Specifies the Domain Name System (DNS) name or IP version 4 address of the NFS file server that your DataSync agent connects to.
sourcepub fn on_prem_config(self, input: OnPremConfig) -> Self
pub fn on_prem_config(self, input: OnPremConfig) -> Self
Specifies the Amazon Resource Name (ARN) of the DataSync agent that want to connect to your NFS file server.
You can specify more than one agent. For more information, see Using multiple agents for transfers.
sourcepub fn set_on_prem_config(self, input: Option<OnPremConfig>) -> Self
pub fn set_on_prem_config(self, input: Option<OnPremConfig>) -> Self
Specifies the Amazon Resource Name (ARN) of the DataSync agent that want to connect to your NFS file server.
You can specify more than one agent. For more information, see Using multiple agents for transfers.
sourcepub fn get_on_prem_config(&self) -> &Option<OnPremConfig>
pub fn get_on_prem_config(&self) -> &Option<OnPremConfig>
Specifies the Amazon Resource Name (ARN) of the DataSync agent that want to connect to your NFS file server.
You can specify more than one agent. For more information, see Using multiple agents for transfers.
sourcepub fn mount_options(self, input: NfsMountOptions) -> Self
pub fn mount_options(self, input: NfsMountOptions) -> Self
Specifies the options that DataSync can use to mount your NFS file server.
sourcepub fn set_mount_options(self, input: Option<NfsMountOptions>) -> Self
pub fn set_mount_options(self, input: Option<NfsMountOptions>) -> Self
Specifies the options that DataSync can use to mount your NFS file server.
sourcepub fn get_mount_options(&self) -> &Option<NfsMountOptions>
pub fn get_mount_options(&self) -> &Option<NfsMountOptions>
Specifies the options that DataSync can use to mount your NFS file server.
Appends an item to Tags
.
To override the contents of this collection use set_tags
.
Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your location.
Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your location.
Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We recommend creating at least a name tag for your location.
Trait Implementations§
source§impl Clone for CreateLocationNfsFluentBuilder
impl Clone for CreateLocationNfsFluentBuilder
source§fn clone(&self) -> CreateLocationNfsFluentBuilder
fn clone(&self) -> CreateLocationNfsFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for CreateLocationNfsFluentBuilder
impl !RefUnwindSafe for CreateLocationNfsFluentBuilder
impl Send for CreateLocationNfsFluentBuilder
impl Sync for CreateLocationNfsFluentBuilder
impl Unpin for CreateLocationNfsFluentBuilder
impl !UnwindSafe for CreateLocationNfsFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more