Package com.azure.storage.blob.models
Class BlobCopyInfo
java.lang.Object
com.azure.storage.blob.models.BlobCopyInfo
The status of a long running Azure Blob copy operation.
-
Constructor Summary
ConstructorDescriptionBlobCopyInfo
(String copySource, String copyId, CopyStatusType copyStatus, String eTag, OffsetDateTime lastModified, String error) Creates an instance ofBlobCopyInfo
.BlobCopyInfo
(String copySource, String copyId, CopyStatusType copyStatus, String eTag, OffsetDateTime lastModified, String error, String versionId) Creates an instance ofBlobCopyInfo
.BlobCopyInfo
(String copySource, String copyId, CopyStatusType copyStatus, String eTag, OffsetDateTime lastModified, String error, String versionId, String encryptionScope) Creates an instance ofBlobCopyInfo
. -
Method Summary
Modifier and TypeMethodDescriptionGets the identifier for the copy operation.Gets the url of the source blob.Gets the status of the copy operation.Gets the encryption scope of the destination blob.getError()
Gets an error description associated with the copy operation.getETag()
If the copy is complete, contains the ETag of the destination blob.Gets the date/time that the copy operation to the destination blob completed.Gets the version identifier of the destination blob completed.
-
Constructor Details
-
BlobCopyInfo
public BlobCopyInfo(String copySource, String copyId, CopyStatusType copyStatus, String eTag, OffsetDateTime lastModified, String error) Creates an instance ofBlobCopyInfo
.- 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
- IfcopyId
,copySource
,eTag
, orcopyStatus
is null.
-
BlobCopyInfo
public BlobCopyInfo(String copySource, String copyId, CopyStatusType copyStatus, String eTag, OffsetDateTime lastModified, String error, String versionId) Creates an instance ofBlobCopyInfo
.- 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
- IfcopyId
,copySource
,eTag
, orcopyStatus
is null.
-
BlobCopyInfo
public BlobCopyInfo(String copySource, String copyId, CopyStatusType copyStatus, String eTag, OffsetDateTime lastModified, String error, String versionId, String encryptionScope) Creates an instance ofBlobCopyInfo
.- 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
- IfcopyId
,copySource
,eTag
, orcopyStatus
is null.
-
-
Method Details
-
getCopyId
Gets the identifier for the copy operation.- Returns:
- The identifier for the copy operation.
-
getCopySourceUrl
Gets the url of the source blob.- Returns:
- The url of the source blob.
-
getCopyStatus
Gets the status of the copy operation.- Returns:
- The status of the copy operation.
-
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
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
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
Gets the version identifier of the destination blob completed.- Returns:
- The version identifier of the destination blob completed.
-
getEncryptionScope
Gets the encryption scope of the destination blob.- Returns:
- The encryption scope of the destination blob.
-