ShareFileCopyInfo Class
- java.
lang. Object - com.
azure. storage. file. share. models. ShareFileCopyInfo
- com.
public final class ShareFileCopyInfo
Contains copy information about a File in the storage File service.
Constructor Summary
Constructor | Description |
---|---|
ShareFileCopyInfo(String copySource, String copyId, CopyStatusType copyStatus, String eTag, OffsetDateTime lastModified, String error) |
Creates an instance of copy information about a specific File. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getCopyId()
Gets the string identifier for this copy operation. |
String |
getCopySourceUrl()
Gets the source file used in the last attempted copy file operation. |
Copy |
getCopyStatus()
Gets the status of the copy operation. |
String |
getETag()
If the copy is completed, contains the ETag of the destination file. |
String |
getError()
Gets an error description associated with the copy operation. |
Offset |
getLastModified()
Gets the date/time that the copy operation to the destination file completed. |
Methods inherited from java.lang.Object
Constructor Details
ShareFileCopyInfo
public ShareFileCopyInfo(String copySource, String copyId, CopyStatusType copyStatus, String eTag, OffsetDateTime lastModified, String error)
Creates an instance of copy information about a specific File.
Parameters:
- success: the copy completed successfully.
- pending: the copy is still in progress.
null
if there are no errors.
Method Details
getCopyId
public String getCopyId()
Gets the string identifier for this copy operation.
Returns:
getCopySourceUrl
public String getCopySourceUrl()
Gets the source file used in the last attempted copy file operation.
Returns:
getCopyStatus
getETag
public String getETag()
If the copy is completed, contains the ETag of the destination file. If the copy is not complete, contains the ETag of the empty file created at the start of the copy.
Returns:
getError
public String getError()
Gets an error description associated with the copy operation.
Returns:
null
if there is no error associated with this
copy operation.getLastModified
public OffsetDateTime getLastModified()
Gets the date/time that the copy operation to the destination file completed.
Returns:
Applies to
Azure SDK for Java