Class DataRepositoryTask
- java.lang.Object
-
- software.amazon.awssdk.services.fsx.model.DataRepositoryTask
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<DataRepositoryTask.Builder,DataRepositoryTask>
@Generated("software.amazon.awssdk:codegen") public final class DataRepositoryTask extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DataRepositoryTask.Builder,DataRepositoryTask>
A description of the data repository task.
-
You use import and export data repository tasks to perform bulk transfer operations between an Amazon FSx for Lustre file system and a linked data repository.
-
You use release data repository tasks to release files that have been exported to a linked S3 bucket from your Amazon FSx for Lustre file system.
-
An Amazon File Cache resource uses a task to automatically release files from the cache.
To learn more about data repository tasks, see Data Repository Tasks.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDataRepositoryTask.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DataRepositoryTask.Builderbuilder()LongcapacityToRelease()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.InstantcreationTime()Returns the value of the CreationTime property for this object.InstantendTime()The time the system completed processing the task, populated after the task is complete.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)DataRepositoryTaskFailureDetailsfailureDetails()Failure message describing why the task failed, it is populated only whenLifecycleis set toFAILED.StringfileCacheId()The system-generated, unique ID of the cache.StringfileSystemId()The globally unique ID of the file system.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasPaths()For responses, this returns true if the service returned a value for the Paths property.booleanhasTags()For responses, this returns true if the service returned a value for the Tags property.DataRepositoryTaskLifecyclelifecycle()The lifecycle status of the data repository task, as follows:StringlifecycleAsString()The lifecycle status of the data repository task, as follows:List<String>paths()An array of paths that specify the data for the data repository task to process.ReleaseConfigurationreleaseConfiguration()The configuration that specifies the last accessed time criteria for files that will be released from an Amazon FSx for Lustre file system.CompletionReportreport()Returns the value of the Report property for this object.StringresourceARN()Returns the value of the ResourceARN property for this object.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends DataRepositoryTask.Builder>serializableBuilderClass()InstantstartTime()The time the system began processing the task.DataRepositoryTaskStatusstatus()Provides the status of the number of files that the task has processed successfully and failed to process.List<Tag>tags()Returns the value of the Tags property for this object.StringtaskId()The system-generated, unique 17-digit ID of the data repository task.DataRepositoryTask.BuildertoBuilder()StringtoString()Returns a string representation of this object.DataRepositoryTaskTypetype()The type of data repository task.StringtypeAsString()The type of data repository task.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
taskId
public final String taskId()
The system-generated, unique 17-digit ID of the data repository task.
- Returns:
- The system-generated, unique 17-digit ID of the data repository task.
-
lifecycle
public final DataRepositoryTaskLifecycle 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.If the service returns an enum value that is not available in the current SDK version,
lifecyclewill returnDataRepositoryTaskLifecycle.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlifecycleAsString().- Returns:
- 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. -
- See Also:
DataRepositoryTaskLifecycle
-
-
lifecycleAsString
public final String lifecycleAsString()
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.If the service returns an enum value that is not available in the current SDK version,
lifecyclewill returnDataRepositoryTaskLifecycle.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlifecycleAsString().- Returns:
- 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. -
- See Also:
DataRepositoryTaskLifecycle
-
-
type
public final DataRepositoryTaskType 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.
If the service returns an enum value that is not available in the current SDK version,
typewill returnDataRepositoryTaskType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- 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.
-
- See Also:
DataRepositoryTaskType
-
-
typeAsString
public final String typeAsString()
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.
If the service returns an enum value that is not available in the current SDK version,
typewill returnDataRepositoryTaskType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- 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.
-
- See Also:
DataRepositoryTaskType
-
-
creationTime
public final Instant creationTime()
Returns the value of the CreationTime property for this object.- Returns:
- The value of the CreationTime property for this object.
-
startTime
public final Instant startTime()
The time the system began processing the task.
- Returns:
- The time the system began processing the task.
-
endTime
public final Instant endTime()
The time the system completed processing the task, populated after the task is complete.
- Returns:
- The time the system completed processing the task, populated after the task is complete.
-
resourceARN
public final String resourceARN()
Returns the value of the ResourceARN property for this object.- Returns:
- The value of the ResourceARN property for this object.
-
hasTags
public final boolean hasTags()
For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
tags
public final List<Tag> tags()
Returns the value of the Tags property for this object.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasTags()method.- Returns:
- The value of the Tags property for this object.
-
fileSystemId
public final String fileSystemId()
The globally unique ID of the file system.
- Returns:
- The globally unique ID of the file system.
-
hasPaths
public final boolean hasPaths()
For responses, this returns true if the service returned a value for the Paths property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
paths
public final List<String> 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.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasPaths()method.- Returns:
- 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.
-
failureDetails
public final DataRepositoryTaskFailureDetails failureDetails()
Failure message describing why the task failed, it is populated only when
Lifecycleis set toFAILED.- Returns:
- Failure message describing why the task failed, it is populated only when
Lifecycleis set toFAILED.
-
status
public final DataRepositoryTaskStatus status()
Provides the status of the number of files that the task has processed successfully and failed to process.
- Returns:
- Provides the status of the number of files that the task has processed successfully and failed to process.
-
report
public final CompletionReport report()
Returns the value of the Report property for this object.- Returns:
- The value of the Report property for this object.
-
capacityToRelease
public final 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.
- Returns:
- 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.
-
fileCacheId
public final String fileCacheId()
The system-generated, unique ID of the cache.
- Returns:
- The system-generated, unique ID of the cache.
-
releaseConfiguration
public final 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.
- Returns:
- The configuration that specifies the last accessed time criteria for files that will be released from an Amazon FSx for Lustre file system.
-
toBuilder
public DataRepositoryTask.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DataRepositoryTask.Builder,DataRepositoryTask>
-
builder
public static DataRepositoryTask.Builder builder()
-
serializableBuilderClass
public static Class<? extends DataRepositoryTask.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-