Package com.azure.storage.blob.models
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.
-
-
Constructor Summary
Constructors Constructor Description BlobCopyInfo(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
All Methods Instance Methods Concrete Methods Modifier and Type Method 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
getEncryptionScope()
Gets the encryption scope of the destination blob.String
getError()
Gets an error description associated with the copy operation.String
getETag()
If the copy is complete, contains the ETag of the destination blob.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.
-
-
-
Constructor Detail
-
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 Detail
-
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.
-
-