Struct aws_sdk_transfer::operation::start_file_transfer::builders::StartFileTransferFluentBuilder
source · pub struct StartFileTransferFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to StartFileTransfer
.
Begins a file transfer between local Amazon Web Services storage and a remote AS2 or SFTP server.
-
For an AS2 connector, you specify the
ConnectorId
and one or moreSendFilePaths
to identify the files you want to transfer. -
For an SFTP connector, the file transfer can be either outbound or inbound. In both cases, you specify the
ConnectorId
. Depending on the direction of the transfer, you also specify the following items:-
If you are transferring file from a partner's SFTP server to Amazon Web Services storage, you specify one or more
RetreiveFilePaths
to identify the files you want to transfer, and aLocalDirectoryPath
to specify the destination folder. -
If you are transferring file to a partner's SFTP server from Amazon Web Services storage, you specify one or more
SendFilePaths
to identify the files you want to transfer, and aRemoteDirectoryPath
to specify the destination folder.
-
Implementations§
source§impl StartFileTransferFluentBuilder
impl StartFileTransferFluentBuilder
sourcepub fn as_input(&self) -> &StartFileTransferInputBuilder
pub fn as_input(&self) -> &StartFileTransferInputBuilder
Access the StartFileTransfer as a reference.
sourcepub async fn send(
self
) -> Result<StartFileTransferOutput, SdkError<StartFileTransferError, HttpResponse>>
pub async fn send( self ) -> Result<StartFileTransferOutput, SdkError<StartFileTransferError, 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<StartFileTransferOutput, StartFileTransferError, Self>
pub fn customize( self ) -> CustomizableOperation<StartFileTransferOutput, StartFileTransferError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn connector_id(self, input: impl Into<String>) -> Self
pub fn connector_id(self, input: impl Into<String>) -> Self
The unique identifier for the connector.
sourcepub fn set_connector_id(self, input: Option<String>) -> Self
pub fn set_connector_id(self, input: Option<String>) -> Self
The unique identifier for the connector.
sourcepub fn get_connector_id(&self) -> &Option<String>
pub fn get_connector_id(&self) -> &Option<String>
The unique identifier for the connector.
sourcepub fn send_file_paths(self, input: impl Into<String>) -> Self
pub fn send_file_paths(self, input: impl Into<String>) -> Self
Appends an item to SendFilePaths
.
To override the contents of this collection use set_send_file_paths
.
One or more source paths for the Amazon S3 storage. Each string represents a source file path for one outbound file transfer. For example, DOC-EXAMPLE-BUCKET/myfile.txt
.
Replace DOC-EXAMPLE-BUCKET
with one of your actual buckets.
sourcepub fn set_send_file_paths(self, input: Option<Vec<String>>) -> Self
pub fn set_send_file_paths(self, input: Option<Vec<String>>) -> Self
One or more source paths for the Amazon S3 storage. Each string represents a source file path for one outbound file transfer. For example, DOC-EXAMPLE-BUCKET/myfile.txt
.
Replace DOC-EXAMPLE-BUCKET
with one of your actual buckets.
sourcepub fn get_send_file_paths(&self) -> &Option<Vec<String>>
pub fn get_send_file_paths(&self) -> &Option<Vec<String>>
One or more source paths for the Amazon S3 storage. Each string represents a source file path for one outbound file transfer. For example, DOC-EXAMPLE-BUCKET/myfile.txt
.
Replace DOC-EXAMPLE-BUCKET
with one of your actual buckets.
sourcepub fn retrieve_file_paths(self, input: impl Into<String>) -> Self
pub fn retrieve_file_paths(self, input: impl Into<String>) -> Self
Appends an item to RetrieveFilePaths
.
To override the contents of this collection use set_retrieve_file_paths
.
One or more source paths for the partner's SFTP server. Each string represents a source file path for one inbound file transfer.
sourcepub fn set_retrieve_file_paths(self, input: Option<Vec<String>>) -> Self
pub fn set_retrieve_file_paths(self, input: Option<Vec<String>>) -> Self
One or more source paths for the partner's SFTP server. Each string represents a source file path for one inbound file transfer.
sourcepub fn get_retrieve_file_paths(&self) -> &Option<Vec<String>>
pub fn get_retrieve_file_paths(&self) -> &Option<Vec<String>>
One or more source paths for the partner's SFTP server. Each string represents a source file path for one inbound file transfer.
sourcepub fn local_directory_path(self, input: impl Into<String>) -> Self
pub fn local_directory_path(self, input: impl Into<String>) -> Self
For an inbound transfer, the LocaDirectoryPath
specifies the destination for one or more files that are transferred from the partner's SFTP server.
sourcepub fn set_local_directory_path(self, input: Option<String>) -> Self
pub fn set_local_directory_path(self, input: Option<String>) -> Self
For an inbound transfer, the LocaDirectoryPath
specifies the destination for one or more files that are transferred from the partner's SFTP server.
sourcepub fn get_local_directory_path(&self) -> &Option<String>
pub fn get_local_directory_path(&self) -> &Option<String>
For an inbound transfer, the LocaDirectoryPath
specifies the destination for one or more files that are transferred from the partner's SFTP server.
sourcepub fn remote_directory_path(self, input: impl Into<String>) -> Self
pub fn remote_directory_path(self, input: impl Into<String>) -> Self
For an outbound transfer, the RemoteDirectoryPath
specifies the destination for one or more files that are transferred to the partner's SFTP server. If you don't specify a RemoteDirectoryPath
, the destination for transferred files is the SFTP user's home directory.
sourcepub fn set_remote_directory_path(self, input: Option<String>) -> Self
pub fn set_remote_directory_path(self, input: Option<String>) -> Self
For an outbound transfer, the RemoteDirectoryPath
specifies the destination for one or more files that are transferred to the partner's SFTP server. If you don't specify a RemoteDirectoryPath
, the destination for transferred files is the SFTP user's home directory.
sourcepub fn get_remote_directory_path(&self) -> &Option<String>
pub fn get_remote_directory_path(&self) -> &Option<String>
For an outbound transfer, the RemoteDirectoryPath
specifies the destination for one or more files that are transferred to the partner's SFTP server. If you don't specify a RemoteDirectoryPath
, the destination for transferred files is the SFTP user's home directory.
Trait Implementations§
source§impl Clone for StartFileTransferFluentBuilder
impl Clone for StartFileTransferFluentBuilder
source§fn clone(&self) -> StartFileTransferFluentBuilder
fn clone(&self) -> StartFileTransferFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more