CloudBlob.createSnapshot Method

Definition

Overloads

createSnapshot()

Creates a snapshot of the blob.

createSnapshot(final AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext)

Creates a snapshot of the blob using the specified request options and operation context.

createSnapshot(final HashMap<String, String> metadata, final AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext)

Creates a snapshot of the blob using the specified request options and operation context.

createSnapshot()

Creates a snapshot of the blob.

public final CloudBlob createSnapshot()
Returns
final CloudBlob

A CloudBlob object that represents the snapshot of the blob.

Exceptions

If a storage service error occurred.

createSnapshot(final AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext)

Creates a snapshot of the blob using the specified request options and operation context.

public final CloudBlob createSnapshot(final AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext)
Parameters
accessCondition
final AccessCondition

An AccessCondition object that represents the access conditions for the 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 CloudBlob

A CloudBlob object that represents the snapshot of the blob.

Exceptions

If a storage service error occurred.

createSnapshot(final HashMap<String, String> metadata, final AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext)

Creates a snapshot of the blob using the specified request options and operation context.

public final CloudBlob createSnapshot(final HashMap<String, String> metadata, final AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext)
Parameters
metadata
final HashMap<String, String>

A collection of name-value pairs defining the metadata of the snapshot, or null.

accessCondition
final AccessCondition

An AccessCondition object that represents the access conditions for the 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 CloudBlob

A CloudBlob object that represents the snapshot of the blob.

Exceptions

If a storage service error occurred.