Interface CreateDataRepositoryTaskRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateDataRepositoryTaskRequest.Builder,CreateDataRepositoryTaskRequest>
,FSxRequest.Builder
,SdkBuilder<CreateDataRepositoryTaskRequest.Builder,CreateDataRepositoryTaskRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- CreateDataRepositoryTaskRequest
public static interface CreateDataRepositoryTaskRequest.Builder extends FSxRequest.Builder, SdkPojo, CopyableBuilder<CreateDataRepositoryTaskRequest.Builder,CreateDataRepositoryTaskRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateDataRepositoryTaskRequest.Builder
capacityToRelease(Long capacityToRelease)
Specifies the amount of data to release, in GiB, by an Amazon File CacheAUTO_RELEASE_DATA
task that automatically releases files from the cache.CreateDataRepositoryTaskRequest.Builder
clientRequestToken(String clientRequestToken)
Sets the value of the ClientRequestToken property for this object.CreateDataRepositoryTaskRequest.Builder
fileSystemId(String fileSystemId)
Sets the value of the FileSystemId property for this object.CreateDataRepositoryTaskRequest.Builder
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
CreateDataRepositoryTaskRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
CreateDataRepositoryTaskRequest.Builder
paths(String... paths)
A list of paths for the data repository task to use when the task is processed.CreateDataRepositoryTaskRequest.Builder
paths(Collection<String> paths)
A list of paths for the data repository task to use when the task is processed.default CreateDataRepositoryTaskRequest.Builder
releaseConfiguration(Consumer<ReleaseConfiguration.Builder> releaseConfiguration)
The configuration that specifies the last accessed time criteria for files that will be released from an Amazon FSx for Lustre file system.CreateDataRepositoryTaskRequest.Builder
releaseConfiguration(ReleaseConfiguration releaseConfiguration)
The configuration that specifies the last accessed time criteria for files that will be released from an Amazon FSx for Lustre file system.default CreateDataRepositoryTaskRequest.Builder
report(Consumer<CompletionReport.Builder> report)
Defines whether or not Amazon FSx provides a CompletionReport once the task has completed.CreateDataRepositoryTaskRequest.Builder
report(CompletionReport report)
Defines whether or not Amazon FSx provides a CompletionReport once the task has completed.CreateDataRepositoryTaskRequest.Builder
tags(Collection<Tag> tags)
Sets the value of the Tags property for this object.CreateDataRepositoryTaskRequest.Builder
tags(Consumer<Tag.Builder>... tags)
Sets the value of the Tags property for this object.CreateDataRepositoryTaskRequest.Builder
tags(Tag... tags)
Sets the value of the Tags property for this object.CreateDataRepositoryTaskRequest.Builder
type(String type)
Specifies the type of data repository task to create.CreateDataRepositoryTaskRequest.Builder
type(DataRepositoryTaskType type)
Specifies the type of data repository task to create.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.fsx.model.FSxRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
type
CreateDataRepositoryTaskRequest.Builder type(String type)
Specifies the type of data repository task to create.
-
EXPORT_TO_REPOSITORY
tasks export from your Amazon FSx for Lustre file system to a linked data repository. -
IMPORT_METADATA_FROM_REPOSITORY
tasks import metadata changes from a linked S3 bucket to your Amazon FSx for Lustre file system. -
RELEASE_DATA_FROM_FILESYSTEM
tasks release files in your Amazon FSx for Lustre file system that have been exported to a linked S3 bucket and that meet your specified release criteria. -
AUTO_RELEASE_DATA
tasks automatically release files from an Amazon File Cache resource.
- Parameters:
type
- Specifies the type of data repository task to create.-
EXPORT_TO_REPOSITORY
tasks export from your Amazon FSx for Lustre file system to a linked data repository. -
IMPORT_METADATA_FROM_REPOSITORY
tasks import metadata changes from a linked S3 bucket to your Amazon FSx for Lustre file system. -
RELEASE_DATA_FROM_FILESYSTEM
tasks release files in your Amazon FSx for Lustre file system that have been exported to a linked S3 bucket and that meet your specified release criteria. -
AUTO_RELEASE_DATA
tasks automatically release files from an Amazon File Cache resource.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
DataRepositoryTaskType
,DataRepositoryTaskType
-
-
type
CreateDataRepositoryTaskRequest.Builder type(DataRepositoryTaskType type)
Specifies the type of data repository task to create.
-
EXPORT_TO_REPOSITORY
tasks export from your Amazon FSx for Lustre file system to a linked data repository. -
IMPORT_METADATA_FROM_REPOSITORY
tasks import metadata changes from a linked S3 bucket to your Amazon FSx for Lustre file system. -
RELEASE_DATA_FROM_FILESYSTEM
tasks release files in your Amazon FSx for Lustre file system that have been exported to a linked S3 bucket and that meet your specified release criteria. -
AUTO_RELEASE_DATA
tasks automatically release files from an Amazon File Cache resource.
- Parameters:
type
- Specifies the type of data repository task to create.-
EXPORT_TO_REPOSITORY
tasks export from your Amazon FSx for Lustre file system to a linked data repository. -
IMPORT_METADATA_FROM_REPOSITORY
tasks import metadata changes from a linked S3 bucket to your Amazon FSx for Lustre file system. -
RELEASE_DATA_FROM_FILESYSTEM
tasks release files in your Amazon FSx for Lustre file system that have been exported to a linked S3 bucket and that meet your specified release criteria. -
AUTO_RELEASE_DATA
tasks automatically release files from an Amazon File Cache resource.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
DataRepositoryTaskType
,DataRepositoryTaskType
-
-
paths
CreateDataRepositoryTaskRequest.Builder paths(Collection<String> 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. If you don't provide paths, the default behavior is to export all files to S3 (for export tasks), import all files from S3 (for import tasks), or release all exported files that meet the last accessed time criteria (for release tasks).
-
For export tasks, the list contains paths on the FSx for Lustre 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/fsx
and/mnt/fsx/path1
is 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 FSx for Lustre file system. The path can be an S3 bucket or prefix in the format
s3://myBucket/myPrefix
(wheremyPrefix
is optional). -
For release tasks, the list contains directory or file paths on the FSx for Lustre file system from which to release exported files. If a directory is specified, files within the directory are released. If a file path is specified, only that file is released. To release all exported files in the file system, specify a forward slash (/) as the path.
A file must also meet the last accessed time criteria specified in for the file to be released.
- Parameters:
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. If you don't provide paths, the default behavior is to export all files to S3 (for export tasks), import all files from S3 (for import tasks), or release all exported files that meet the last accessed time criteria (for release tasks).-
For export tasks, the list contains paths on the FSx for Lustre 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/fsx
and/mnt/fsx/path1
is 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 FSx for Lustre file system. The path can be an S3 bucket or prefix in the format
s3://myBucket/myPrefix
(wheremyPrefix
is optional). -
For release tasks, the list contains directory or file paths on the FSx for Lustre file system from which to release exported files. If a directory is specified, files within the directory are released. If a file path is specified, only that file is released. To release all exported files in the file system, specify a forward slash (/) as the path.
A file must also meet the last accessed time criteria specified in for the file to be released.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
paths
CreateDataRepositoryTaskRequest.Builder paths(String... 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. If you don't provide paths, the default behavior is to export all files to S3 (for export tasks), import all files from S3 (for import tasks), or release all exported files that meet the last accessed time criteria (for release tasks).
-
For export tasks, the list contains paths on the FSx for Lustre 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/fsx
and/mnt/fsx/path1
is 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 FSx for Lustre file system. The path can be an S3 bucket or prefix in the format
s3://myBucket/myPrefix
(wheremyPrefix
is optional). -
For release tasks, the list contains directory or file paths on the FSx for Lustre file system from which to release exported files. If a directory is specified, files within the directory are released. If a file path is specified, only that file is released. To release all exported files in the file system, specify a forward slash (/) as the path.
A file must also meet the last accessed time criteria specified in for the file to be released.
- Parameters:
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. If you don't provide paths, the default behavior is to export all files to S3 (for export tasks), import all files from S3 (for import tasks), or release all exported files that meet the last accessed time criteria (for release tasks).-
For export tasks, the list contains paths on the FSx for Lustre 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/fsx
and/mnt/fsx/path1
is 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 FSx for Lustre file system. The path can be an S3 bucket or prefix in the format
s3://myBucket/myPrefix
(wheremyPrefix
is optional). -
For release tasks, the list contains directory or file paths on the FSx for Lustre file system from which to release exported files. If a directory is specified, files within the directory are released. If a file path is specified, only that file is released. To release all exported files in the file system, specify a forward slash (/) as the path.
A file must also meet the last accessed time criteria specified in for the file to be released.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
fileSystemId
CreateDataRepositoryTaskRequest.Builder fileSystemId(String fileSystemId)
Sets the value of the FileSystemId property for this object.- Parameters:
fileSystemId
- The new value for the FileSystemId property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
report
CreateDataRepositoryTaskRequest.Builder report(CompletionReport report)
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.- Parameters:
report
- 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 theScope
parameter. For more information, see Working with Task Completion Reports.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
report
default CreateDataRepositoryTaskRequest.Builder report(Consumer<CompletionReport.Builder> report)
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
This is a convenience method that creates an instance of theScope
parameter. For more information, see Working with Task Completion Reports.CompletionReport.Builder
avoiding the need to create one manually viaCompletionReport.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toreport(CompletionReport)
.- Parameters:
report
- a consumer that will call methods onCompletionReport.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
report(CompletionReport)
-
clientRequestToken
CreateDataRepositoryTaskRequest.Builder clientRequestToken(String clientRequestToken)
Sets the value of the ClientRequestToken property for this object.- Parameters:
clientRequestToken
- The new value for the ClientRequestToken property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateDataRepositoryTaskRequest.Builder tags(Collection<Tag> tags)
Sets the value of the Tags property for this object.- Parameters:
tags
- The new value for the Tags property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateDataRepositoryTaskRequest.Builder tags(Tag... tags)
Sets the value of the Tags property for this object.- Parameters:
tags
- The new value for the Tags property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateDataRepositoryTaskRequest.Builder tags(Consumer<Tag.Builder>... tags)
Sets the value of the Tags property for this object. This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#tags(List
.) - Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection
)
-
capacityToRelease
CreateDataRepositoryTaskRequest.Builder capacityToRelease(Long capacityToRelease)
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.- Parameters:
capacityToRelease
- Specifies the amount of data to release, in GiB, by an Amazon File CacheAUTO_RELEASE_DATA
task that automatically releases files from the cache.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
releaseConfiguration
CreateDataRepositoryTaskRequest.Builder releaseConfiguration(ReleaseConfiguration releaseConfiguration)
The configuration that specifies the last accessed time criteria for files that will be released from an Amazon FSx for Lustre file system.
- Parameters:
releaseConfiguration
- The configuration that specifies the last accessed time criteria for files that will be released from an Amazon FSx for Lustre file system.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
releaseConfiguration
default CreateDataRepositoryTaskRequest.Builder releaseConfiguration(Consumer<ReleaseConfiguration.Builder> releaseConfiguration)
The configuration that specifies the last accessed time criteria for files that will be released from an Amazon FSx for Lustre file system.
This is a convenience method that creates an instance of theReleaseConfiguration.Builder
avoiding the need to create one manually viaReleaseConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toreleaseConfiguration(ReleaseConfiguration)
.- Parameters:
releaseConfiguration
- a consumer that will call methods onReleaseConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
releaseConfiguration(ReleaseConfiguration)
-
overrideConfiguration
CreateDataRepositoryTaskRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
CreateDataRepositoryTaskRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-