Struct aws_sdk_fsx::operation::create_data_repository_task::builders::CreateDataRepositoryTaskInputBuilder
source · #[non_exhaustive]pub struct CreateDataRepositoryTaskInputBuilder { /* private fields */ }Expand description
A builder for CreateDataRepositoryTaskInput.
Implementations§
source§impl CreateDataRepositoryTaskInputBuilder
impl CreateDataRepositoryTaskInputBuilder
sourcepub fn type(self, input: DataRepositoryTaskType) -> Self
pub fn type(self, input: DataRepositoryTaskType) -> Self
Specifies the type of data repository task to create.
sourcepub fn set_type(self, input: Option<DataRepositoryTaskType>) -> Self
pub fn set_type(self, input: Option<DataRepositoryTaskType>) -> Self
Specifies the type of data repository task to create.
sourcepub fn get_type(&self) -> &Option<DataRepositoryTaskType>
pub fn get_type(&self) -> &Option<DataRepositoryTaskType>
Specifies the type of data repository task to create.
sourcepub fn paths(self, input: impl Into<String>) -> Self
pub fn paths(self, input: impl Into<String>) -> Self
Appends an item to paths.
To override the contents of this collection use set_paths.
A list of paths for the data repository task to use when the task is processed. If a path that you provide isn't valid, the task fails.
-
For export tasks, the list contains paths on the Amazon FSx file system from which the files are exported to the Amazon S3 bucket. The default path is the file system root directory. The paths you provide need to be relative to the mount point of the file system. If the mount point is
/mnt/fsxand/mnt/fsx/path1is a directory or file on the file system you want to export, then the path to provide ispath1. -
For import tasks, the list contains paths in the Amazon S3 bucket from which POSIX metadata changes are imported to the Amazon FSx file system. The path can be an S3 bucket or prefix in the format
s3://myBucket/myPrefix(wheremyPrefixis optional).
sourcepub fn set_paths(self, input: Option<Vec<String>>) -> Self
pub fn set_paths(self, input: Option<Vec<String>>) -> Self
A list of paths for the data repository task to use when the task is processed. If a path that you provide isn't valid, the task fails.
-
For export tasks, the list contains paths on the Amazon FSx file system from which the files are exported to the Amazon S3 bucket. The default path is the file system root directory. The paths you provide need to be relative to the mount point of the file system. If the mount point is
/mnt/fsxand/mnt/fsx/path1is a directory or file on the file system you want to export, then the path to provide ispath1. -
For import tasks, the list contains paths in the Amazon S3 bucket from which POSIX metadata changes are imported to the Amazon FSx file system. The path can be an S3 bucket or prefix in the format
s3://myBucket/myPrefix(wheremyPrefixis optional).
sourcepub fn get_paths(&self) -> &Option<Vec<String>>
pub fn get_paths(&self) -> &Option<Vec<String>>
A list of paths for the data repository task to use when the task is processed. If a path that you provide isn't valid, the task fails.
-
For export tasks, the list contains paths on the Amazon FSx file system from which the files are exported to the Amazon S3 bucket. The default path is the file system root directory. The paths you provide need to be relative to the mount point of the file system. If the mount point is
/mnt/fsxand/mnt/fsx/path1is a directory or file on the file system you want to export, then the path to provide ispath1. -
For import tasks, the list contains paths in the Amazon S3 bucket from which POSIX metadata changes are imported to the Amazon FSx file system. The path can be an S3 bucket or prefix in the format
s3://myBucket/myPrefix(wheremyPrefixis optional).
sourcepub fn file_system_id(self, input: impl Into<String>) -> Self
pub fn file_system_id(self, input: impl Into<String>) -> Self
The globally unique ID of the file system, assigned by Amazon FSx.
sourcepub fn set_file_system_id(self, input: Option<String>) -> Self
pub fn set_file_system_id(self, input: Option<String>) -> Self
The globally unique ID of the file system, assigned by Amazon FSx.
sourcepub fn get_file_system_id(&self) -> &Option<String>
pub fn get_file_system_id(&self) -> &Option<String>
The globally unique ID of the file system, assigned by Amazon FSx.
sourcepub fn report(self, input: CompletionReport) -> Self
pub fn report(self, input: CompletionReport) -> Self
Defines whether or not Amazon FSx provides a CompletionReport once the task has completed. A CompletionReport provides a detailed report on the files that Amazon FSx processed that meet the criteria specified by the Scope parameter. For more information, see Working with Task Completion Reports.
sourcepub fn set_report(self, input: Option<CompletionReport>) -> Self
pub fn set_report(self, input: Option<CompletionReport>) -> Self
Defines whether or not Amazon FSx provides a CompletionReport once the task has completed. A CompletionReport provides a detailed report on the files that Amazon FSx processed that meet the criteria specified by the Scope parameter. For more information, see Working with Task Completion Reports.
sourcepub fn get_report(&self) -> &Option<CompletionReport>
pub fn get_report(&self) -> &Option<CompletionReport>
Defines whether or not Amazon FSx provides a CompletionReport once the task has completed. A CompletionReport provides a detailed report on the files that Amazon FSx processed that meet the criteria specified by the Scope parameter. For more information, see Working with Task Completion Reports.
sourcepub fn client_request_token(self, input: impl Into<String>) -> Self
pub fn client_request_token(self, input: impl Into<String>) -> Self
(Optional) An idempotency token for resource creation, in a string of up to 63 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
sourcepub fn set_client_request_token(self, input: Option<String>) -> Self
pub fn set_client_request_token(self, input: Option<String>) -> Self
(Optional) An idempotency token for resource creation, in a string of up to 63 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
sourcepub fn get_client_request_token(&self) -> &Option<String>
pub fn get_client_request_token(&self) -> &Option<String>
(Optional) An idempotency token for resource creation, in a string of up to 63 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
Appends an item to tags.
To override the contents of this collection use set_tags.
A list of Tag values, with a maximum of 50 elements.
A list of Tag values, with a maximum of 50 elements.
A list of Tag values, with a maximum of 50 elements.
sourcepub fn capacity_to_release(self, input: i64) -> Self
pub fn capacity_to_release(self, input: i64) -> Self
Specifies the amount of data to release, in GiB, by an Amazon File Cache AUTO_RELEASE_DATA task that automatically releases files from the cache.
sourcepub fn set_capacity_to_release(self, input: Option<i64>) -> Self
pub fn set_capacity_to_release(self, input: Option<i64>) -> Self
Specifies the amount of data to release, in GiB, by an Amazon File Cache AUTO_RELEASE_DATA task that automatically releases files from the cache.
sourcepub fn get_capacity_to_release(&self) -> &Option<i64>
pub fn get_capacity_to_release(&self) -> &Option<i64>
Specifies the amount of data to release, in GiB, by an Amazon File Cache AUTO_RELEASE_DATA task that automatically releases files from the cache.
sourcepub fn build(self) -> Result<CreateDataRepositoryTaskInput, BuildError>
pub fn build(self) -> Result<CreateDataRepositoryTaskInput, BuildError>
Consumes the builder and constructs a CreateDataRepositoryTaskInput.
source§impl CreateDataRepositoryTaskInputBuilder
impl CreateDataRepositoryTaskInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateDataRepositoryTaskOutput, SdkError<CreateDataRepositoryTaskError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateDataRepositoryTaskOutput, SdkError<CreateDataRepositoryTaskError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateDataRepositoryTaskInputBuilder
impl Clone for CreateDataRepositoryTaskInputBuilder
source§fn clone(&self) -> CreateDataRepositoryTaskInputBuilder
fn clone(&self) -> CreateDataRepositoryTaskInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for CreateDataRepositoryTaskInputBuilder
impl Default for CreateDataRepositoryTaskInputBuilder
source§fn default() -> CreateDataRepositoryTaskInputBuilder
fn default() -> CreateDataRepositoryTaskInputBuilder
source§impl PartialEq<CreateDataRepositoryTaskInputBuilder> for CreateDataRepositoryTaskInputBuilder
impl PartialEq<CreateDataRepositoryTaskInputBuilder> for CreateDataRepositoryTaskInputBuilder
source§fn eq(&self, other: &CreateDataRepositoryTaskInputBuilder) -> bool
fn eq(&self, other: &CreateDataRepositoryTaskInputBuilder) -> bool
self and other values to be equal, and is used
by ==.