CloudStorageAccount Constructors

Definition

Overloads

CloudStorageAccount(final StorageCredentials storageCredentials)

Creates an instance of the class using the specified account credentials.

With this constructor, the object is constructed using the default HTTP storage service endpoints. The default HTTP storage service endpoints are , , , and , where is the name of your storage account.

The credentials provided when constructing the object are used to authenticate all further requests against resources that are accessed via the object or a client object created from it. A client object may be a CloudBlobClient object.

CloudStorageAccount(final StorageCredentials storageCredentials, final boolean useHttps)

Creates an instance of the class using the specified account credentials and the default service endpoints, using HTTP or HTTPS as specified.

With this constructor, the object is constructed using the default storage service endpoints. The default storage service endpoints are: ; ; ; and , where is the name of your storage account. Access to the cloud storage account may be via HTTP or HTTPS, as specified by the parameter.

The credentials provided when constructing the object are used to authenticate all further requests against resources that are accessed via the object or a client object created from it. A client object may be a CloudBlobClient object.

CloudStorageAccount(final StorageCredentials storageCredentials, final boolean useHttps, final String endpointSuffix)

Creates an instance of the class using the specified account credentials.

With this constructor, the object is constructed using the given HTTP storage service endpoint suffix (if any, otherwise the default is used).

The credentials provided when constructing the object are used to authenticate all further requests against resources that are accessed via the object or a client object created from it. A client object may be a CloudBlobClient object.

CloudStorageAccount(final StorageCredentials storageCredentials, final boolean useHttps, final String endpointSuffix, String accountName)

Creates an instance of the class using the specified account credentials.

With this constructor, the object is constructed using the given HTTP storage service endpoint suffix (if any, otherwise the default is used).

The credentials provided when constructing the object are used to authenticate all further requests against resources that are accessed via the object or a client object created from it. A client object may be a CloudBlobClient object.

CloudStorageAccount(final StorageCredentials storageCredentials, final StorageUri blobStorageUri, final StorageUri queueStorageUri, final StorageUri tableStorageUri)

Creates an instance of the class using the specified account credentials and service endpoints.

Use this constructor to construct a object using custom endpoints, in the case where you've configured a custom domain name for your storage account.

The credentials provided when constructing the object are used to authenticate all further requests against resources that are accessed via the object or a client object created from it. A client object may be a CloudBlobClient object.

CloudStorageAccount(final StorageCredentials storageCredentials, final StorageUri blobStorageUri, final StorageUri queueStorageUri, final StorageUri tableStorageUri, final StorageUri fileStorageUri)

Creates an instance of the class using the specified account credentials and service endpoints.

Use this constructor to construct a object using custom endpoints, in the case where you've configured a custom domain name for your storage account.

The credentials provided when constructing the object are used to authenticate all further requests against resources that are accessed via the object or a client object created from it. A client object may be a CloudBlobClient object.

CloudStorageAccount(final StorageCredentials storageCredentials, final URI blobEndpoint, final URI queueEndpoint, final URI tableEndpoint)

Creates an instance of the class using the specified account credentials and service endpoints.

Use this constructor to construct a object using custom endpoints, in the case where you've configured a custom domain name for your storage account.

The credentials provided when constructing the object are used to authenticate all further requests against resources that are accessed via the object or a client object created from it. A client object may be a CloudBlobClient object.

CloudStorageAccount(final StorageCredentials storageCredentials, final URI blobEndpoint, final URI queueEndpoint, final URI tableEndpoint, final URI fileEndpoint)

Creates an instance of the class using the specified account credentials and service endpoints.

Use this constructor to construct a object using custom endpoints, in the case where you've configured a custom domain name for your storage account.

The credentials provided when constructing the object are used to authenticate all further requests against resources that are accessed via the object or a client object created from it. A client object may be a CloudBlobClient object.

CloudStorageAccount(final StorageCredentials storageCredentials)

Creates an instance of the class using the specified account credentials.

With this constructor, the object is constructed using the default HTTP storage service endpoints. The default HTTP storage service endpoints are , , , and , where is the name of your storage account.

The credentials provided when constructing the object are used to authenticate all further requests against resources that are accessed via the object or a client object created from it. A client object may be a CloudBlobClient object.

public CloudStorageAccount(final StorageCredentials storageCredentials)

Parameters

storageCredentials
final StorageCredentials

A StorageCredentials object that represents the storage credentials to use to authenticate this account.

Exceptions

URISyntaxException

If storageCredentials specify an invalid account name.

CloudStorageAccount(final StorageCredentials storageCredentials, final boolean useHttps)

Creates an instance of the class using the specified account credentials and the default service endpoints, using HTTP or HTTPS as specified.

With this constructor, the object is constructed using the default storage service endpoints. The default storage service endpoints are: ; ; ; and , where is the name of your storage account. Access to the cloud storage account may be via HTTP or HTTPS, as specified by the parameter.

The credentials provided when constructing the object are used to authenticate all further requests against resources that are accessed via the object or a client object created from it. A client object may be a CloudBlobClient object.

public CloudStorageAccount(final StorageCredentials storageCredentials, final boolean useHttps)

Parameters

storageCredentials
final StorageCredentials

A StorageCredentials object that represents the storage credentials to use to authenticate this account.

useHttps
final boolean

true to use HTTPS to connect to the storage service endpoints; otherwise, false.

Exceptions

URISyntaxException

If storageCredentials specify an invalid account name.

CloudStorageAccount(final StorageCredentials storageCredentials, final boolean useHttps, final String endpointSuffix)

Creates an instance of the class using the specified account credentials.

With this constructor, the object is constructed using the given HTTP storage service endpoint suffix (if any, otherwise the default is used).

The credentials provided when constructing the object are used to authenticate all further requests against resources that are accessed via the object or a client object created from it. A client object may be a CloudBlobClient object.

public CloudStorageAccount(final StorageCredentials storageCredentials, final boolean useHttps, final String endpointSuffix)

Parameters

storageCredentials
final StorageCredentials

A StorageCredentials object that represents the storage credentials to use to authenticate this account.

useHttps
final boolean

true to use HTTPS to connect to the storage service endpoints; otherwise, false.

endpointSuffix
final String

A String that represents the endpointSuffix to use, if any.

Exceptions

URISyntaxException

If storageCredentials specify an invalid account name.

CloudStorageAccount(final StorageCredentials storageCredentials, final boolean useHttps, final String endpointSuffix, String accountName)

Creates an instance of the class using the specified account credentials.

With this constructor, the object is constructed using the given HTTP storage service endpoint suffix (if any, otherwise the default is used).

The credentials provided when constructing the object are used to authenticate all further requests against resources that are accessed via the object or a client object created from it. A client object may be a CloudBlobClient object.

public CloudStorageAccount(final StorageCredentials storageCredentials, final boolean useHttps, final String endpointSuffix, String accountName)

Parameters

storageCredentials
final StorageCredentials

A StorageCredentials object that represents the storage credentials to use to authenticate this account.

useHttps
final boolean

true to use HTTPS to connect to the storage service endpoints; otherwise, false.

endpointSuffix
final String

A String that represents the endpointSuffix to use, if any.

accountName
String

A String that contains the account name. This will be used in place of a nullStorageCredentials#getAccountName(), but the two must match if both are not null.

Exceptions

URISyntaxException

If storageCredentials specify an invalid account name.

CloudStorageAccount(final StorageCredentials storageCredentials, final StorageUri blobStorageUri, final StorageUri queueStorageUri, final StorageUri tableStorageUri)

Creates an instance of the class using the specified account credentials and service endpoints.

Use this constructor to construct a object using custom endpoints, in the case where you've configured a custom domain name for your storage account.

The credentials provided when constructing the object are used to authenticate all further requests against resources that are accessed via the object or a client object created from it. A client object may be a CloudBlobClient object.

public CloudStorageAccount(final StorageCredentials storageCredentials, final StorageUri blobStorageUri, final StorageUri queueStorageUri, final StorageUri tableStorageUri)

Parameters

storageCredentials
final StorageCredentials

A StorageCredentials object that represents the storage credentials to use to authenticate this account.

blobStorageUri
final StorageUri

A StorageUri object that represents the Blob service endpoint.

queueStorageUri
final StorageUri

A StorageUri object that represents the Queue service endpoint.

tableStorageUri
final StorageUri

A StorageUri object that represents the Table service endpoint.

CloudStorageAccount(final StorageCredentials storageCredentials, final StorageUri blobStorageUri, final StorageUri queueStorageUri, final StorageUri tableStorageUri, final StorageUri fileStorageUri)

Creates an instance of the class using the specified account credentials and service endpoints.

Use this constructor to construct a object using custom endpoints, in the case where you've configured a custom domain name for your storage account.

The credentials provided when constructing the object are used to authenticate all further requests against resources that are accessed via the object or a client object created from it. A client object may be a CloudBlobClient object.

public CloudStorageAccount(final StorageCredentials storageCredentials, final StorageUri blobStorageUri, final StorageUri queueStorageUri, final StorageUri tableStorageUri, final StorageUri fileStorageUri)

Parameters

storageCredentials
final StorageCredentials

A StorageCredentials object that represents the storage credentials to use to authenticate this account.

blobStorageUri
final StorageUri

A StorageUri object that represents the Blob service endpoint.

queueStorageUri
final StorageUri

A StorageUri object that represents the Queue service endpoint.

tableStorageUri
final StorageUri

A StorageUri object that represents the Table service endpoint.

fileStorageUri
final StorageUri

A StorageUri object that represents the File service endpoint.

CloudStorageAccount(final StorageCredentials storageCredentials, final URI blobEndpoint, final URI queueEndpoint, final URI tableEndpoint)

Creates an instance of the class using the specified account credentials and service endpoints.

Use this constructor to construct a object using custom endpoints, in the case where you've configured a custom domain name for your storage account.

The credentials provided when constructing the object are used to authenticate all further requests against resources that are accessed via the object or a client object created from it. A client object may be a CloudBlobClient object.

public CloudStorageAccount(final StorageCredentials storageCredentials, final URI blobEndpoint, final URI queueEndpoint, final URI tableEndpoint)

Parameters

storageCredentials
final StorageCredentials

A StorageCredentials object that represents the storage credentials to use to authenticate this account.

blobEndpoint
final URI

A java.net.URI object that represents the Blob service endpoint.

queueEndpoint
final URI

A java.net.URI object that represents the Queue service endpoint.

tableEndpoint
final URI

A java.net.URI object that represents the Table service endpoint.

CloudStorageAccount(final StorageCredentials storageCredentials, final URI blobEndpoint, final URI queueEndpoint, final URI tableEndpoint, final URI fileEndpoint)

Creates an instance of the class using the specified account credentials and service endpoints.

Use this constructor to construct a object using custom endpoints, in the case where you've configured a custom domain name for your storage account.

The credentials provided when constructing the object are used to authenticate all further requests against resources that are accessed via the object or a client object created from it. A client object may be a CloudBlobClient object.

public CloudStorageAccount(final StorageCredentials storageCredentials, final URI blobEndpoint, final URI queueEndpoint, final URI tableEndpoint, final URI fileEndpoint)

Parameters

storageCredentials
final StorageCredentials

A StorageCredentials object that represents the storage credentials to use to authenticate this account.

blobEndpoint
final URI

A java.net.URI object that represents the Blob service endpoint.

queueEndpoint
final URI

A java.net.URI object that represents the Queue service endpoint.

tableEndpoint
final URI

A java.net.URI object that represents the Table service endpoint.

fileEndpoint
final URI

A java.net.URI object that represents the File service endpoint.

Applies to