Interface DataRepositoryTask.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<DataRepositoryTask.Builder,,DataRepositoryTask> SdkBuilder<DataRepositoryTask.Builder,,DataRepositoryTask> SdkPojo
- Enclosing class:
DataRepositoryTask
-
Method Summary
Modifier and TypeMethodDescriptioncapacityToRelease(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.creationTime(Instant creationTime) Sets the value of the CreationTime property for this object.The time the system completed processing the task, populated after the task is complete.default DataRepositoryTask.BuilderfailureDetails(Consumer<DataRepositoryTaskFailureDetails.Builder> failureDetails) Failure message describing why the task failed, it is populated only whenLifecycleis set toFAILED.failureDetails(DataRepositoryTaskFailureDetails failureDetails) Failure message describing why the task failed, it is populated only whenLifecycleis set toFAILED.fileCacheId(String fileCacheId) The system-generated, unique ID of the cache.fileSystemId(String fileSystemId) The globally unique ID of the file system.The lifecycle status of the data repository task, as follows:lifecycle(DataRepositoryTaskLifecycle lifecycle) The lifecycle status of the data repository task, as follows:An array of paths that specify the data for the data repository task to process.paths(Collection<String> paths) An array of paths that specify the data for the data repository task to process.default DataRepositoryTask.BuilderreleaseConfiguration(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.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 DataRepositoryTask.Builderreport(Consumer<CompletionReport.Builder> report) Sets the value of the Report property for this object.report(CompletionReport report) Sets the value of the Report property for this object.resourceARN(String resourceARN) Sets the value of the ResourceARN property for this object.The time the system began processing the task.default DataRepositoryTask.BuilderProvides the status of the number of files that the task has processed successfully and failed to process.status(DataRepositoryTaskStatus status) Provides the status of the number of files that the task has processed successfully and failed to process.tags(Collection<Tag> tags) Sets the value of the Tags property for this object.tags(Consumer<Tag.Builder>... tags) Sets the value of the Tags property for this object.Sets the value of the Tags property for this object.The system-generated, unique 17-digit ID of the data repository task.The type of data repository task.type(DataRepositoryTaskType type) The type of data repository task.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
taskId
The system-generated, unique 17-digit ID of the data repository task.
- Parameters:
taskId- The system-generated, unique 17-digit ID of the data repository task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lifecycle
The lifecycle status of the data repository task, as follows:
-
PENDING- The task has not started. -
EXECUTING- The task is in process. -
FAILED- The task was not able to be completed. For example, there may be files the task failed to process. The DataRepositoryTaskFailureDetails property provides more information about task failures. -
SUCCEEDED- The task has completed successfully. -
CANCELED- The task was canceled and it did not complete. -
CANCELING- The task is in process of being canceled.
You cannot delete an FSx for Lustre file system if there are data repository tasks for the file system in the
PENDINGorEXECUTINGstates. Please retry when the data repository task is finished (with a status ofCANCELED,SUCCEEDED, orFAILED). You can use the DescribeDataRepositoryTask action to monitor the task status. Contact the FSx team if you need to delete your file system immediately.- Parameters:
lifecycle- The lifecycle status of the data repository task, as follows:-
PENDING- The task has not started. -
EXECUTING- The task is in process. -
FAILED- The task was not able to be completed. For example, there may be files the task failed to process. The DataRepositoryTaskFailureDetails property provides more information about task failures. -
SUCCEEDED- The task has completed successfully. -
CANCELED- The task was canceled and it did not complete. -
CANCELING- The task is in process of being canceled.
You cannot delete an FSx for Lustre file system if there are data repository tasks for the file system in the
PENDINGorEXECUTINGstates. Please retry when the data repository task is finished (with a status ofCANCELED,SUCCEEDED, orFAILED). You can use the DescribeDataRepositoryTask action to monitor the task status. Contact the FSx team if you need to delete your file system immediately.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
lifecycle
The lifecycle status of the data repository task, as follows:
-
PENDING- The task has not started. -
EXECUTING- The task is in process. -
FAILED- The task was not able to be completed. For example, there may be files the task failed to process. The DataRepositoryTaskFailureDetails property provides more information about task failures. -
SUCCEEDED- The task has completed successfully. -
CANCELED- The task was canceled and it did not complete. -
CANCELING- The task is in process of being canceled.
You cannot delete an FSx for Lustre file system if there are data repository tasks for the file system in the
PENDINGorEXECUTINGstates. Please retry when the data repository task is finished (with a status ofCANCELED,SUCCEEDED, orFAILED). You can use the DescribeDataRepositoryTask action to monitor the task status. Contact the FSx team if you need to delete your file system immediately.- Parameters:
lifecycle- The lifecycle status of the data repository task, as follows:-
PENDING- The task has not started. -
EXECUTING- The task is in process. -
FAILED- The task was not able to be completed. For example, there may be files the task failed to process. The DataRepositoryTaskFailureDetails property provides more information about task failures. -
SUCCEEDED- The task has completed successfully. -
CANCELED- The task was canceled and it did not complete. -
CANCELING- The task is in process of being canceled.
You cannot delete an FSx for Lustre file system if there are data repository tasks for the file system in the
PENDINGorEXECUTINGstates. Please retry when the data repository task is finished (with a status ofCANCELED,SUCCEEDED, orFAILED). You can use the DescribeDataRepositoryTask action to monitor the task status. Contact the FSx team if you need to delete your file system immediately.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
type
The type of data repository task.
-
EXPORT_TO_REPOSITORYtasks export from your Amazon FSx for Lustre file system to a linked data repository. -
IMPORT_METADATA_FROM_REPOSITORYtasks import metadata changes from a linked S3 bucket to your Amazon FSx for Lustre file system. -
RELEASE_DATA_FROM_FILESYSTEMtasks 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_DATAtasks automatically release files from an Amazon File Cache resource.
- Parameters:
type- The type of data repository task.-
EXPORT_TO_REPOSITORYtasks export from your Amazon FSx for Lustre file system to a linked data repository. -
IMPORT_METADATA_FROM_REPOSITORYtasks import metadata changes from a linked S3 bucket to your Amazon FSx for Lustre file system. -
RELEASE_DATA_FROM_FILESYSTEMtasks 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_DATAtasks 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:
-
-
type
The type of data repository task.
-
EXPORT_TO_REPOSITORYtasks export from your Amazon FSx for Lustre file system to a linked data repository. -
IMPORT_METADATA_FROM_REPOSITORYtasks import metadata changes from a linked S3 bucket to your Amazon FSx for Lustre file system. -
RELEASE_DATA_FROM_FILESYSTEMtasks 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_DATAtasks automatically release files from an Amazon File Cache resource.
- Parameters:
type- The type of data repository task.-
EXPORT_TO_REPOSITORYtasks export from your Amazon FSx for Lustre file system to a linked data repository. -
IMPORT_METADATA_FROM_REPOSITORYtasks import metadata changes from a linked S3 bucket to your Amazon FSx for Lustre file system. -
RELEASE_DATA_FROM_FILESYSTEMtasks 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_DATAtasks 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:
-
-
creationTime
Sets the value of the CreationTime property for this object.- Parameters:
creationTime- The new value for the CreationTime property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startTime
The time the system began processing the task.
- Parameters:
startTime- The time the system began processing the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endTime
The time the system completed processing the task, populated after the task is complete.
- Parameters:
endTime- The time the system completed processing the task, populated after the task is complete.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceARN
Sets the value of the ResourceARN property for this object.- Parameters:
resourceARN- The new value for the ResourceARN property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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
Sets the value of the Tags property for this object. This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- 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:
-
fileSystemId
The globally unique ID of the file system.
- Parameters:
fileSystemId- The globally unique ID of the file system.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
paths
An array of paths that specify the data for the data repository task to process. For example, in an EXPORT_TO_REPOSITORY task, the paths specify which data to export to the linked data repository.
(Default) If
Pathsis not specified, Amazon FSx uses the file system root directory.- Parameters:
paths- An array of paths that specify the data for the data repository task to process. For example, in an EXPORT_TO_REPOSITORY task, the paths specify which data to export to the linked data repository.(Default) If
Pathsis not specified, Amazon FSx uses the file system root directory.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
paths
An array of paths that specify the data for the data repository task to process. For example, in an EXPORT_TO_REPOSITORY task, the paths specify which data to export to the linked data repository.
(Default) If
Pathsis not specified, Amazon FSx uses the file system root directory.- Parameters:
paths- An array of paths that specify the data for the data repository task to process. For example, in an EXPORT_TO_REPOSITORY task, the paths specify which data to export to the linked data repository.(Default) If
Pathsis not specified, Amazon FSx uses the file system root directory.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureDetails
Failure message describing why the task failed, it is populated only when
Lifecycleis set toFAILED.- Parameters:
failureDetails- Failure message describing why the task failed, it is populated only whenLifecycleis set toFAILED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failureDetails
default DataRepositoryTask.Builder failureDetails(Consumer<DataRepositoryTaskFailureDetails.Builder> failureDetails) Failure message describing why the task failed, it is populated only when
This is a convenience method that creates an instance of theLifecycleis set toFAILED.DataRepositoryTaskFailureDetails.Builderavoiding the need to create one manually viaDataRepositoryTaskFailureDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofailureDetails(DataRepositoryTaskFailureDetails).- Parameters:
failureDetails- a consumer that will call methods onDataRepositoryTaskFailureDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
Provides the status of the number of files that the task has processed successfully and failed to process.
- Parameters:
status- Provides the status of the number of files that the task has processed successfully and failed to process.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
Provides the status of the number of files that the task has processed successfully and failed to process.
This is a convenience method that creates an instance of theDataRepositoryTaskStatus.Builderavoiding the need to create one manually viaDataRepositoryTaskStatus.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostatus(DataRepositoryTaskStatus).- Parameters:
status- a consumer that will call methods onDataRepositoryTaskStatus.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
report
Sets the value of the Report property for this object.- Parameters:
report- The new value for the Report property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
report
Sets the value of the Report property for this object. This is a convenience method that creates an instance of theCompletionReport.Builderavoiding the need to create one manually viaCompletionReport.builder().When the
Consumercompletes,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:
-
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 Cache AUTO_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.
-
fileCacheId
The system-generated, unique ID of the cache.
- Parameters:
fileCacheId- The system-generated, unique ID of the cache.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 DataRepositoryTask.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.Builderavoiding the need to create one manually viaReleaseConfiguration.builder().When the
Consumercompletes,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:
-