CloudBlobContainer Constructors

Definition

Overloads

CloudBlobContainer(final StorageUri storageUri)

Creates an instance of the class using the specified URI. The blob URI should include a SAS token unless anonymous access is to be used.

CloudBlobContainer(final StorageUri storageUri, final StorageCredentials credentials)

Creates an instance of the class using the specified StorageUri and credentials.

CloudBlobContainer(final String containerName, final CloudBlobClient client)

Creates an instance of the class using the specified name and client.

CloudBlobContainer(final URI uri)

Creates an instance of the class using the specified URI. The blob URI should include a SAS token unless anonymous access is to be used.

CloudBlobContainer(final URI uri, final StorageCredentials credentials)

Creates an instance of the class using the specified URI and credentials.

CloudBlobContainer(final StorageUri storageUri)

Creates an instance of the class using the specified URI. The blob URI should include a SAS token unless anonymous access is to be used.

public CloudBlobContainer(final StorageUri storageUri)
Parameters
storageUri
final StorageUri

A StorageUri object which represents the URI of the container.

Exceptions

If a storage service error occurred.

CloudBlobContainer(final StorageUri storageUri, final StorageCredentials credentials)

Creates an instance of the class using the specified StorageUri and credentials.

public CloudBlobContainer(final StorageUri storageUri, final StorageCredentials credentials)
Parameters
storageUri
final StorageUri

A StorageUri object which represents the absolute StorageUri of the container.

credentials
final StorageCredentials

A StorageCredentials object used to authenticate access.

Exceptions

If a storage service error occurred.

CloudBlobContainer(final String containerName, final CloudBlobClient client)

Creates an instance of the class using the specified name and client.

protected CloudBlobContainer(final String containerName, final CloudBlobClient client)
Parameters
containerName
final String

A String which represents the name of the container, which must adhere to container naming rules. The container name should not include any path separator characters (/). Container names must be lowercase, between 3-63 characters long and must start with a letter or number. Container names may contain only letters, numbers, and the dash (-) character.

client
final CloudBlobClient

A CloudBlobClient object that represents the associated service client, and that specifies the endpoint for the Blob service. *

Exceptions

If a storage service error occurred.

URISyntaxException

If the resource URI constructed based on the containerName is invalid.

CloudBlobContainer(final URI uri)

Creates an instance of the class using the specified URI. The blob URI should include a SAS token unless anonymous access is to be used.

public CloudBlobContainer(final URI uri)
Parameters
uri
final URI

A java.net.URI object which represents the URI of the container.

Exceptions

If a storage service error occurred.

CloudBlobContainer(final URI uri, final StorageCredentials credentials)

Creates an instance of the class using the specified URI and credentials.

public CloudBlobContainer(final URI uri, final StorageCredentials credentials)
Parameters
uri
final URI

A java.net.URI object that represents the absolute URI of the container.

credentials
final StorageCredentials

A StorageCredentials object used to authenticate access.

Exceptions

If a storage service error occurred.