CloudBlob.startCopy Method

Definition

Overloads

startCopy(final URI source)

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

startCopy(final URI source, final AccessCondition sourceAccessCondition, final AccessCondition destinationAccessCondition, BlobRequestOptions options, OperationContext opContext)

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

startCopy(final URI source, final PremiumPageBlobTier premiumPageBlobTier, final AccessCondition sourceAccessCondition, final AccessCondition destinationAccessCondition, BlobRequestOptions options, OperationContext opContext)

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

Note: Setting the premiumPageBlobTier is only supported for premium accounts.

startCopy(final URI source)

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

public final String startCopy(final URI source)
Parameters
source
final URI

A java.net.URI The source URI. URIs for resources outside of Azure may only be copied into block blobs.

Returns
final String

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

Exceptions

If a storage service error occurred.

startCopy(final URI source, final AccessCondition sourceAccessCondition, final AccessCondition destinationAccessCondition, BlobRequestOptions options, OperationContext opContext)

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

public final String startCopy(final URI source, final AccessCondition sourceAccessCondition, final AccessCondition destinationAccessCondition, BlobRequestOptions options, OperationContext opContext)
Parameters
source
final URI

A java.net.URI The source URI. URIs for resources outside of Azure may only be copied into block blobs.

sourceAccessCondition
final AccessCondition

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

destinationAccessCondition
final AccessCondition

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

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.

startCopy(final URI source, final PremiumPageBlobTier premiumPageBlobTier, final AccessCondition sourceAccessCondition, final AccessCondition destinationAccessCondition, BlobRequestOptions options, OperationContext opContext)

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

Note: Setting the premiumPageBlobTier is only supported for premium accounts.

protected final String startCopy(final URI source, final PremiumPageBlobTier premiumPageBlobTier, final AccessCondition sourceAccessCondition, final AccessCondition destinationAccessCondition, BlobRequestOptions options, OperationContext opContext)
Parameters
source
final URI

A java.net.URI The source URI. URIs for resources outside of Azure may only be copied into block blobs.

premiumPageBlobTier
final PremiumPageBlobTier

A PremiumPageBlobTier object which represents the tier of the blob.

sourceAccessCondition
final AccessCondition

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

destinationAccessCondition
final AccessCondition

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

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.

Applies to