CloudBlockBlob.startCopy Method

Definition

Overloads

startCopy(final CloudBlockBlob sourceBlob)

Requests the service to start copying a block blob's contents, properties, and metadata to a new block blob.

startCopy(final CloudBlockBlob sourceBlob, final AccessCondition sourceAccessCondition, final AccessCondition destinationAccessCondition, BlobRequestOptions options, OperationContext opContext)

Requests the service to start copying a block blob's contents, properties, and metadata to a new block blob, using the specified access conditions, lease ID, request options, and operation context.

startCopy(final CloudFile sourceFile)

Requests the service to start copying a file's contents, properties, and metadata to a new block blob.

startCopy(final CloudFile sourceFile, final AccessCondition sourceAccessCondition, final AccessCondition destinationAccessCondition, BlobRequestOptions options, OperationContext opContext)

Requests the service to start copying a file's contents, properties, and metadata to a new block blob, using the specified access conditions, lease ID, request options, and operation context.

startCopy(final CloudBlockBlob sourceBlob)

Requests the service to start copying a block blob's contents, properties, and metadata to a new block blob.

public final String startCopy(final CloudBlockBlob sourceBlob)
Parameters
sourceBlob
final CloudBlockBlob

A CloudBlockBlob object that represents the source blob to copy.

Returns
final String

A String which represents the copy ID associated with the copy operation.

Exceptions

If a storage service error occurred.

URISyntaxException

If a storage service error occurred.

startCopy(final CloudBlockBlob sourceBlob, final AccessCondition sourceAccessCondition, final AccessCondition destinationAccessCondition, BlobRequestOptions options, OperationContext opContext)

Requests the service to start copying a block blob's contents, properties, and metadata to a new block blob, using the specified access conditions, lease ID, request options, and operation context.

public final String startCopy(final CloudBlockBlob sourceBlob, final AccessCondition sourceAccessCondition, final AccessCondition destinationAccessCondition, BlobRequestOptions options, OperationContext opContext)
Parameters
sourceBlob
final CloudBlockBlob

A CloudBlockBlob object that represents the source blob to copy.

sourceAccessCondition
final AccessCondition

An AccessCondition object that represents the access conditions for the source blob.

destinationAccessCondition
final AccessCondition

An AccessCondition object that represents the access conditions for the destination blob.

options
BlobRequestOptions

A BlobRequestOptions object that specifies any additional options for the request. Specifying null will use the default request options from the associated service client ( CloudBlobClient).

opContext
OperationContext

An OperationContext object that represents the context for the current operation. This object is used to track requests to the storage service, and to provide additional runtime information about the operation.

Returns
final String

A String which represents the copy ID associated with the copy operation.

Exceptions

If a storage service error occurred.

URISyntaxException

If a storage service error occurred.

startCopy(final CloudFile sourceFile)

Requests the service to start copying a file's contents, properties, and metadata to a new block blob.

public final String startCopy(final CloudFile sourceFile)
Parameters
sourceFile
final CloudFile

A CloudFile object that represents the source file to copy.

Returns
final String

A String which represents the copy ID associated with the copy operation.

Exceptions

If a storage service error occurred.

URISyntaxException

If a storage service error occurred.

startCopy(final CloudFile sourceFile, final AccessCondition sourceAccessCondition, final AccessCondition destinationAccessCondition, BlobRequestOptions options, OperationContext opContext)

Requests the service to start copying a file's contents, properties, and metadata to a new block blob, using the specified access conditions, lease ID, request options, and operation context.

public final String startCopy(final CloudFile sourceFile, final AccessCondition sourceAccessCondition, final AccessCondition destinationAccessCondition, BlobRequestOptions options, OperationContext opContext)
Parameters
sourceFile
final CloudFile

A CloudFile object that represents the source file to copy.

sourceAccessCondition
final AccessCondition

An AccessCondition object that represents the access conditions for the source file.

destinationAccessCondition
final AccessCondition

An AccessCondition object that represents the access conditions for the destination block blob.

options
BlobRequestOptions

A BlobRequestOptions object that specifies any additional options for the request. Specifying null will use the default request options from the associated service client (CloudBlobClient).

opContext
OperationContext

An OperationContext object that represents the context for the current operation. This object is used to track requests to the storage service, and to provide additional runtime information about the operation.

Returns
final String

A String which represents the copy ID associated with the copy operation.

Exceptions

If a storage service error occurred.

URISyntaxException

If the resource URI is invalid.