CloudBlob Constructors

Definition

Overloads

CloudBlob(final BlobType type, final StorageUri uri, final String snapshotID, final StorageCredentials credentials)

Creates an instance of the class using the specified URI, snapshot ID, and cloud blob client.

CloudBlob(final BlobType type, String blobName, String snapshotID, CloudBlobContainer container)

Creates an instance of the class using the specified type, name, snapshot ID, and container.

CloudBlob(final CloudBlob otherBlob)

Creates an instance of the class by copying values from another blob.

CloudBlob(final BlobType type, final StorageUri uri, final String snapshotID, final StorageCredentials credentials)

Creates an instance of the class using the specified URI, snapshot ID, and cloud blob client.

protected CloudBlob(final BlobType type, final StorageUri uri, final String snapshotID, final StorageCredentials credentials)
Parameters
type
final BlobType

A BlobType value which represents the type of the blob.

uri
final StorageUri

A StorageUri object that represents the URI to the blob, beginning with the container name.

snapshotID
final String

A String that represents the snapshot version, if applicable.

credentials
final StorageCredentials

A StorageCredentials object used to authenticate access.

Exceptions

If a storage service error occurred.

CloudBlob(final BlobType type, String blobName, String snapshotID, CloudBlobContainer container)

Creates an instance of the class using the specified type, name, snapshot ID, and container.

protected CloudBlob(final BlobType type, String blobName, String snapshotID, CloudBlobContainer container)
Parameters
type
final BlobType

A BlobType value which represents the type of the blob.

blobName
String

Name of the blob.

snapshotID
String

A String that represents the snapshot version, if applicable.

container
CloudBlobContainer

The reference to the parent container.

Exceptions
URISyntaxException

If the resource URI is invalid.

CloudBlob(final CloudBlob otherBlob)

Creates an instance of the class by copying values from another blob.

protected CloudBlob(final CloudBlob otherBlob)
Parameters
otherBlob
final CloudBlob

A CloudBlob object that represents the blob to copy.