BlobCopyInfo Class

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

public class BlobCopyInfo

The status of a long running Azure Blob copy operation.

Constructor Summary

Constructor Description
BlobCopyInfo(String copySource, String copyId, CopyStatusType copyStatus, String eTag, OffsetDateTime lastModified, String error)

Creates an instance of BlobCopyInfo.

BlobCopyInfo(String copySource, String copyId, CopyStatusType copyStatus, String eTag, OffsetDateTime lastModified, String error, String versionId)

Creates an instance of BlobCopyInfo.

BlobCopyInfo(String copySource, String copyId, CopyStatusType copyStatus, String eTag, OffsetDateTime lastModified, String error, String versionId, String encryptionScope)

Creates an instance of BlobCopyInfo.

Method Summary

Modifier and Type Method and Description
String getCopyId()

Gets the identifier for the copy operation.

String getCopySourceUrl()

Gets the url of the source blob.

CopyStatusType getCopyStatus()

Gets the status of the copy operation.

String getETag()

If the copy is complete, contains the ETag of the destination blob.

String getEncryptionScope()

Gets the encryption scope of the destination blob.

String getError()

Gets an error description associated with the copy operation.

OffsetDateTime getLastModified()

Gets the date/time that the copy operation to the destination blob completed.

String getVersionId()

Gets the version identifier of the destination blob completed.

Methods inherited from java.lang.Object

Constructor Details

BlobCopyInfo

public BlobCopyInfo(String copySource, String copyId, CopyStatusType copyStatus, String eTag, OffsetDateTime lastModified, String error)

Creates an instance of BlobCopyInfo.

Parameters:

copySource - The url of the source blob. The contents are being copied from this blob.
copyId - The identifier of the copy operation.
copyStatus - The status of the copy operation.
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.
error - An error message for the copy operation. null if there are no errors.

BlobCopyInfo

public BlobCopyInfo(String copySource, String copyId, CopyStatusType copyStatus, String eTag, OffsetDateTime lastModified, String error, String versionId)

Creates an instance of BlobCopyInfo.

Parameters:

copySource - The url of the source blob. The contents are being copied from this blob.
copyId - The identifier of the copy operation.
copyStatus - The status of the copy operation.
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.
error - An error message for the copy operation. null if there are no errors.
versionId - The version identifier of the destination blob.

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:

copySource - The url of the source blob. The contents are being copied from this blob.
copyId - The identifier of the copy operation.
copyStatus - The status of the copy operation.
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.
error - An error message for the copy operation. null if there are no errors.
versionId - The version identifier of the destination blob.
encryptionScope - The encryptionScope that will be applied to the destination blob.

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.

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.

getEncryptionScope

public String getEncryptionScope()

Gets the encryption scope of the destination blob.

Returns:

The encryption scope of the destination blob.

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.

getVersionId

public String getVersionId()

Gets the version identifier of the destination blob completed.

Returns:

The version identifier of the destination blob completed.

Applies to