Class BlobCopyInfo

java.lang.Object
com.azure.storage.blob.models.BlobCopyInfo

public class BlobCopyInfo extends Object
The status of a long running Azure Blob copy operation.
See Also:
  • Constructor Details

    • BlobCopyInfo

      public BlobCopyInfo(String copySource, String copyId, CopyStatusType copyStatus, String eTag, OffsetDateTime lastModified, String error)
      Creates an instance of BlobCopyInfo.
      Parameters:
      copyId - The identifier of the copy operation.
      copySource - The url of the source blob. The contents are being copied from this blob.
      copyStatus - The status of the copy operation.
      error - An error message for the copy operation. null if there are no errors.
      eTag - If the copy is completed, contains the ETag of the destination blob. If the copy is not complete, contains the ETag of the empty blob created.
      lastModified - The date/time that the copy operation to the destination blob completed.
      Throws:
      NullPointerException - If copyId, copySource, eTag, or copyStatus is null.
    • BlobCopyInfo

      public BlobCopyInfo(String copySource, String copyId, CopyStatusType copyStatus, String eTag, OffsetDateTime lastModified, String error, String versionId)
      Creates an instance of BlobCopyInfo.
      Parameters:
      copyId - The identifier of the copy operation.
      copySource - The url of the source blob. The contents are being copied from this blob.
      copyStatus - The status of the copy operation.
      error - An error message for the copy operation. null if there are no errors.
      eTag - If the copy is completed, contains the ETag of the destination blob. If the copy is not complete, contains the ETag of the empty blob created.
      lastModified - The date/time that the copy operation to the destination blob completed.
      versionId - The version identifier of the destination blob.
      Throws:
      NullPointerException - If copyId, copySource, eTag, or copyStatus is null.
    • BlobCopyInfo

      public BlobCopyInfo(String copySource, String copyId, CopyStatusType copyStatus, String eTag, OffsetDateTime lastModified, String error, String versionId, String encryptionScope)
      Creates an instance of BlobCopyInfo.
      Parameters:
      copyId - The identifier of the copy operation.
      copySource - The url of the source blob. The contents are being copied from this blob.
      copyStatus - The status of the copy operation.
      error - An error message for the copy operation. null if there are no errors.
      eTag - If the copy is completed, contains the ETag of the destination blob. If the copy is not complete, contains the ETag of the empty blob created.
      lastModified - The date/time that the copy operation to the destination blob completed.
      versionId - The version identifier of the destination blob.
      encryptionScope - The encryptionScope that will be applied to the destination blob.
      Throws:
      NullPointerException - If copyId, copySource, eTag, or copyStatus is null.
  • Method Details

    • getCopyId

      public String getCopyId()
      Gets the identifier for the copy operation.
      Returns:
      The identifier for the copy operation.
    • getCopySourceUrl

      public String getCopySourceUrl()
      Gets the url of the source blob.
      Returns:
      The url of the source blob.
    • getCopyStatus

      public CopyStatusType getCopyStatus()
      Gets the status of the copy operation.
      Returns:
      The status of the copy operation.
    • getError

      public String getError()
      Gets an error description associated with the copy operation.
      Returns:
      An error description associated with the copy, or 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 blob completed.
      Returns:
      The date/time that the copy operation to the destination blob completed.
    • getETag

      public String getETag()
      If the copy is complete, contains the ETag of the destination blob. If the copy isn't complete, contains the ETag of the empty blob created at the start of the copy. The ETag value will be in quotes.
      Returns:
      The ETag for the copy.
    • getVersionId

      public String getVersionId()
      Gets the version identifier of the destination blob completed.
      Returns:
      The version identifier of the destination blob completed.
    • getEncryptionScope

      public String getEncryptionScope()
      Gets the encryption scope of the destination blob.
      Returns:
      The encryption scope of the destination blob.