azure-docs-sdk-java/docs-ref-autogen/com.azure.storage.blob.Blob...

410 строки
50 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.storage.blob.BlobClientBuilder"
fullName: "com.azure.storage.blob.BlobClientBuilder"
name: "BlobClientBuilder"
nameWithType: "BlobClientBuilder"
summary: "This class provides a fluent builder API to help aid the configuration and instantiation of <xref uid=\"com.azure.storage.blob.BlobClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"BlobClients\"></xref> and <xref uid=\"com.azure.storage.blob.BlobAsyncClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"BlobAsyncClients\"></xref>, call <xref uid=\"com.azure.storage.blob.BlobClientBuilder.buildClient()\" data-throw-if-not-resolved=\"false\" data-raw-source=\"buildClient\"></xref> and <xref uid=\"com.azure.storage.blob.BlobClientBuilder.buildAsyncClient()\" data-throw-if-not-resolved=\"false\" data-raw-source=\"buildAsyncClient\"></xref> respectively to construct an instance of the desired client."
inheritances:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
methodsRef:
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--\">clone</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-\">equals</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--\">finalize</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--\">getClass</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--\">hashCode</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--\">notify</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--\">notifyAll</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--\">toString</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-\">wait</a>"
syntax: "public final class **BlobClientBuilder**</br> implements <xref href=\"com.azure.core.client.traits.TokenCredentialTrait?alt=com.azure.core.client.traits.TokenCredentialTrait&text=TokenCredentialTrait\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.storage.blob.BlobClientBuilder?alt=com.azure.storage.blob.BlobClientBuilder&text=BlobClientBuilder\" data-throw-if-not-resolved=\"False\" />&gt;, <xref href=\"com.azure.core.client.traits.ConnectionStringTrait?alt=com.azure.core.client.traits.ConnectionStringTrait&text=ConnectionStringTrait\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.storage.blob.BlobClientBuilder?alt=com.azure.storage.blob.BlobClientBuilder&text=BlobClientBuilder\" data-throw-if-not-resolved=\"False\" />&gt;, <xref href=\"com.azure.core.client.traits.AzureNamedKeyCredentialTrait?alt=com.azure.core.client.traits.AzureNamedKeyCredentialTrait&text=AzureNamedKeyCredentialTrait\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.storage.blob.BlobClientBuilder?alt=com.azure.storage.blob.BlobClientBuilder&text=BlobClientBuilder\" data-throw-if-not-resolved=\"False\" />&gt;, <xref href=\"com.azure.core.client.traits.AzureSasCredentialTrait?alt=com.azure.core.client.traits.AzureSasCredentialTrait&text=AzureSasCredentialTrait\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.storage.blob.BlobClientBuilder?alt=com.azure.storage.blob.BlobClientBuilder&text=BlobClientBuilder\" data-throw-if-not-resolved=\"False\" />&gt;, <xref href=\"com.azure.core.client.traits.HttpTrait?alt=com.azure.core.client.traits.HttpTrait&text=HttpTrait\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.storage.blob.BlobClientBuilder?alt=com.azure.storage.blob.BlobClientBuilder&text=BlobClientBuilder\" data-throw-if-not-resolved=\"False\" />&gt;, <xref href=\"com.azure.core.client.traits.ConfigurationTrait?alt=com.azure.core.client.traits.ConfigurationTrait&text=ConfigurationTrait\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.storage.blob.BlobClientBuilder?alt=com.azure.storage.blob.BlobClientBuilder&text=BlobClientBuilder\" data-throw-if-not-resolved=\"False\" />&gt;, <xref href=\"com.azure.core.client.traits.EndpointTrait?alt=com.azure.core.client.traits.EndpointTrait&text=EndpointTrait\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.storage.blob.BlobClientBuilder?alt=com.azure.storage.blob.BlobClientBuilder&text=BlobClientBuilder\" data-throw-if-not-resolved=\"False\" />&gt;"
constructors:
- uid: "com.azure.storage.blob.BlobClientBuilder.BlobClientBuilder()"
fullName: "com.azure.storage.blob.BlobClientBuilder.BlobClientBuilder()"
name: "BlobClientBuilder()"
nameWithType: "BlobClientBuilder.BlobClientBuilder()"
summary: "Creates a builder instance that is able to configure and construct <xref uid=\"com.azure.storage.blob.BlobClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"BlobClients\"></xref> and <xref uid=\"com.azure.storage.blob.BlobAsyncClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"BlobAsyncClients\"></xref>."
syntax: "public BlobClientBuilder()"
desc: "Creates a builder instance that is able to configure and construct <xref uid=\"com.azure.storage.blob.BlobClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"BlobClients\"></xref> and <xref uid=\"com.azure.storage.blob.BlobAsyncClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"BlobAsyncClients\"></xref>."
methods:
- uid: "com.azure.storage.blob.BlobClientBuilder.addPolicy(com.azure.core.http.policy.HttpPipelinePolicy)"
fullName: "com.azure.storage.blob.BlobClientBuilder.addPolicy(HttpPipelinePolicy pipelinePolicy)"
name: "addPolicy(HttpPipelinePolicy pipelinePolicy)"
nameWithType: "BlobClientBuilder.addPolicy(HttpPipelinePolicy pipelinePolicy)"
summary: "Adds a <xref uid=\"com.azure.core.http.policy.HttpPipelinePolicy\" data-throw-if-not-resolved=\"false\" data-raw-source=\"pipeline policy\"></xref> to apply on each request sent."
parameters:
- description: "A <xref uid=\"com.azure.core.http.policy.HttpPipelinePolicy\" data-throw-if-not-resolved=\"false\" data-raw-source=\"pipeline policy\"></xref>."
name: "pipelinePolicy"
type: "<xref href=\"com.azure.core.http.policy.HttpPipelinePolicy?alt=com.azure.core.http.policy.HttpPipelinePolicy&text=HttpPipelinePolicy\" data-throw-if-not-resolved=\"False\" />"
syntax: "public BlobClientBuilder addPolicy(HttpPipelinePolicy pipelinePolicy)"
desc: "Adds a <xref uid=\"com.azure.core.http.policy.HttpPipelinePolicy\" data-throw-if-not-resolved=\"false\" data-raw-source=\"pipeline policy\"></xref> to apply on each request sent.\n\n**Note:** It is important to understand the precedence order of the HttpTrait APIs. In particular, if a <xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> is specified, this takes precedence over all other APIs in the trait, and they will be ignored. If no <xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> is specified, a HTTP pipeline will be constructed internally based on the settings provided to this trait. Additionally, there may be other APIs in types that implement this trait that are also ignored if an <xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> is specified, so please be sure to refer to the documentation of types that implement this trait to understand the full set of implications."
returns:
description: "the updated BlobClientBuilder object"
type: "<xref href=\"com.azure.storage.blob.BlobClientBuilder?alt=com.azure.storage.blob.BlobClientBuilder&text=BlobClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.storage.blob.BlobClientBuilder.audience(com.azure.storage.blob.models.BlobAudience)"
fullName: "com.azure.storage.blob.BlobClientBuilder.audience(BlobAudience audience)"
name: "audience(BlobAudience audience)"
nameWithType: "BlobClientBuilder.audience(BlobAudience audience)"
summary: "Sets the Audience to use for authentication with Azure Active Directory (AAD)."
parameters:
- description: "<xref uid=\"com.azure.storage.blob.models.BlobAudience\" data-throw-if-not-resolved=\"false\" data-raw-source=\"BlobAudience\"></xref> to be used when requesting a token from Azure Active Directory (AAD)."
name: "audience"
type: "<xref href=\"com.azure.storage.blob.models.BlobAudience?alt=com.azure.storage.blob.models.BlobAudience&text=BlobAudience\" data-throw-if-not-resolved=\"False\" />"
syntax: "public BlobClientBuilder audience(BlobAudience audience)"
desc: "Sets the Audience to use for authentication with Azure Active Directory (AAD). The audience is not considered when using a shared key."
returns:
description: "the updated BlobClientBuilder object"
type: "<xref href=\"com.azure.storage.blob.BlobClientBuilder?alt=com.azure.storage.blob.BlobClientBuilder&text=BlobClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.storage.blob.BlobClientBuilder.blobName(java.lang.String)"
fullName: "com.azure.storage.blob.BlobClientBuilder.blobName(String blobName)"
name: "blobName(String blobName)"
nameWithType: "BlobClientBuilder.blobName(String blobName)"
summary: "Sets the name of the blob."
parameters:
- description: "Name of the blob."
name: "blobName"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public BlobClientBuilder blobName(String blobName)"
desc: "Sets the name of the blob."
returns:
description: "the updated BlobClientBuilder object"
type: "<xref href=\"com.azure.storage.blob.BlobClientBuilder?alt=com.azure.storage.blob.BlobClientBuilder&text=BlobClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.storage.blob.BlobClientBuilder.buildAsyncClient()"
fullName: "com.azure.storage.blob.BlobClientBuilder.buildAsyncClient()"
name: "buildAsyncClient()"
nameWithType: "BlobClientBuilder.buildAsyncClient()"
summary: "Creates a <xref uid=\"com.azure.storage.blob.BlobAsyncClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"BlobAsyncClient\"></xref> based on options set in the builder."
syntax: "public BlobAsyncClient buildAsyncClient()"
desc: "Creates a <xref uid=\"com.azure.storage.blob.BlobAsyncClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"BlobAsyncClient\"></xref> based on options set in the builder. BlobAsyncClients are used to perform generic blob methods such as <xref uid=\"com.azure.storage.blob.BlobAsyncClient.download*\" data-throw-if-not-resolved=\"false\" data-raw-source=\"download\"></xref> and <xref uid=\"com.azure.storage.blob.BlobAsyncClient.getProperties*\" data-throw-if-not-resolved=\"false\" data-raw-source=\"BlobAsyncClient#getProperties()\"></xref>, use this when the blob type is unknown.\n\n**Code Samples**\n\n```java\nBlobAsyncClient client = new BlobClientBuilder()\n .connectionString(connectionString)\n .buildAsyncClient();\n```"
returns:
description: "a <xref uid=\"com.azure.storage.blob.BlobAsyncClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"BlobAsyncClient\"></xref> created from the configurations in this builder."
type: "<xref href=\"com.azure.storage.blob.BlobAsyncClient?alt=com.azure.storage.blob.BlobAsyncClient&text=BlobAsyncClient\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.storage.blob.BlobClientBuilder.buildClient()"
fullName: "com.azure.storage.blob.BlobClientBuilder.buildClient()"
name: "buildClient()"
nameWithType: "BlobClientBuilder.buildClient()"
summary: "Creates a <xref uid=\"com.azure.storage.blob.BlobClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"BlobClient\"></xref> based on options set in the builder."
syntax: "public BlobClient buildClient()"
desc: "Creates a <xref uid=\"com.azure.storage.blob.BlobClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"BlobClient\"></xref> based on options set in the builder. BlobClients are used to perform generic blob methods such as <xref uid=\"com.azure.storage.blob.BlobClient.download*\" data-throw-if-not-resolved=\"false\" data-raw-source=\"download\"></xref> and <xref uid=\"BlobClient#getProperties()\" data-throw-if-not-resolved=\"false\" data-raw-source=\"get\n properties\"></xref>, use this when the blob type is unknown.\n\n**Code Samples**\n\n```java\nBlobClient client = new BlobClientBuilder()\n .connectionString(connectionString)\n .buildClient();\n```"
returns:
description: "a <xref uid=\"com.azure.storage.blob.BlobClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"BlobClient\"></xref> created from the configurations in this builder."
type: "<xref href=\"com.azure.storage.blob.BlobClient?alt=com.azure.storage.blob.BlobClient&text=BlobClient\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.storage.blob.BlobClientBuilder.clientOptions(com.azure.core.util.ClientOptions)"
fullName: "com.azure.storage.blob.BlobClientBuilder.clientOptions(ClientOptions clientOptions)"
name: "clientOptions(ClientOptions clientOptions)"
nameWithType: "BlobClientBuilder.clientOptions(ClientOptions clientOptions)"
summary: "Allows for setting common properties such as application ID, headers, proxy configuration, etc."
parameters:
- description: "A configured instance of <xref uid=\"\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpClientOptions\"></xref>."
name: "clientOptions"
type: "<xref href=\"com.azure.core.util.ClientOptions?alt=com.azure.core.util.ClientOptions&text=ClientOptions\" data-throw-if-not-resolved=\"False\" />"
syntax: "public BlobClientBuilder clientOptions(ClientOptions clientOptions)"
desc: "Allows for setting common properties such as application ID, headers, proxy configuration, etc. Note that it is recommended that this method be called with an instance of the <xref uid=\"\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpClientOptions\"></xref> class (a subclass of the <xref uid=\"com.azure.core.util.ClientOptions\" data-throw-if-not-resolved=\"false\" data-raw-source=\"ClientOptions\"></xref> base class). The HttpClientOptions subclass provides more configuration options suitable for HTTP clients, which is applicable for any class that implements this HttpTrait interface.\n\n**Note:** It is important to understand the precedence order of the HttpTrait APIs. In particular, if a <xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> is specified, this takes precedence over all other APIs in the trait, and they will be ignored. If no <xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> is specified, a HTTP pipeline will be constructed internally based on the settings provided to this trait. Additionally, there may be other APIs in types that implement this trait that are also ignored if an <xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> is specified, so please be sure to refer to the documentation of types that implement this trait to understand the full set of implications."
returns:
description: "the updated BlobClientBuilder object"
type: "<xref href=\"com.azure.storage.blob.BlobClientBuilder?alt=com.azure.storage.blob.BlobClientBuilder&text=BlobClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.storage.blob.BlobClientBuilder.configuration(com.azure.core.util.Configuration)"
fullName: "com.azure.storage.blob.BlobClientBuilder.configuration(Configuration configuration)"
name: "configuration(Configuration configuration)"
nameWithType: "BlobClientBuilder.configuration(Configuration configuration)"
summary: "Sets the configuration object used to retrieve environment configuration values during building of the client."
parameters:
- description: "Configuration store used to retrieve environment configurations."
name: "configuration"
type: "<xref href=\"com.azure.core.util.Configuration?alt=com.azure.core.util.Configuration&text=Configuration\" data-throw-if-not-resolved=\"False\" />"
syntax: "public BlobClientBuilder configuration(Configuration configuration)"
desc: "Sets the configuration object used to retrieve environment configuration values during building of the client."
returns:
description: "the updated BlobClientBuilder object"
type: "<xref href=\"com.azure.storage.blob.BlobClientBuilder?alt=com.azure.storage.blob.BlobClientBuilder&text=BlobClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.storage.blob.BlobClientBuilder.connectionString(java.lang.String)"
fullName: "com.azure.storage.blob.BlobClientBuilder.connectionString(String connectionString)"
name: "connectionString(String connectionString)"
nameWithType: "BlobClientBuilder.connectionString(String connectionString)"
summary: "Sets the connection string to connect to the service."
parameters:
- description: "Connection string of the storage account."
name: "connectionString"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public BlobClientBuilder connectionString(String connectionString)"
desc: "Sets the connection string to connect to the service."
returns:
description: "the updated BlobClientBuilder"
type: "<xref href=\"com.azure.storage.blob.BlobClientBuilder?alt=com.azure.storage.blob.BlobClientBuilder&text=BlobClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.storage.blob.BlobClientBuilder.containerName(java.lang.String)"
fullName: "com.azure.storage.blob.BlobClientBuilder.containerName(String containerName)"
name: "containerName(String containerName)"
nameWithType: "BlobClientBuilder.containerName(String containerName)"
summary: "Sets the name of the container that contains the blob."
parameters:
- description: "Name of the container. If the value <code>null</code> or empty the root container, <code>$root</code>\n , will be used."
name: "containerName"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public BlobClientBuilder containerName(String containerName)"
desc: "Sets the name of the container that contains the blob."
returns:
description: "the updated BlobClientBuilder object"
type: "<xref href=\"com.azure.storage.blob.BlobClientBuilder?alt=com.azure.storage.blob.BlobClientBuilder&text=BlobClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.storage.blob.BlobClientBuilder.credential(com.azure.core.credential.AzureNamedKeyCredential)"
fullName: "com.azure.storage.blob.BlobClientBuilder.credential(AzureNamedKeyCredential credential)"
name: "credential(AzureNamedKeyCredential credential)"
nameWithType: "BlobClientBuilder.credential(AzureNamedKeyCredential credential)"
summary: "Sets the <xref uid=\"com.azure.core.credential.AzureNamedKeyCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"AzureNamedKeyCredential\"></xref> used to authorize requests sent to the service."
parameters:
- description: "<xref uid=\"com.azure.core.credential.AzureNamedKeyCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"AzureNamedKeyCredential\"></xref>."
name: "credential"
type: "<xref href=\"com.azure.core.credential.AzureNamedKeyCredential?alt=com.azure.core.credential.AzureNamedKeyCredential&text=AzureNamedKeyCredential\" data-throw-if-not-resolved=\"False\" />"
syntax: "public BlobClientBuilder credential(AzureNamedKeyCredential credential)"
desc: "Sets the <xref uid=\"com.azure.core.credential.AzureNamedKeyCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"AzureNamedKeyCredential\"></xref> used to authorize requests sent to the service."
returns:
description: "the updated BlobClientBuilder"
type: "<xref href=\"com.azure.storage.blob.BlobClientBuilder?alt=com.azure.storage.blob.BlobClientBuilder&text=BlobClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.storage.blob.BlobClientBuilder.credential(com.azure.core.credential.AzureSasCredential)"
fullName: "com.azure.storage.blob.BlobClientBuilder.credential(AzureSasCredential credential)"
name: "credential(AzureSasCredential credential)"
nameWithType: "BlobClientBuilder.credential(AzureSasCredential credential)"
summary: "Sets the <xref uid=\"com.azure.core.credential.AzureSasCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"AzureSasCredential\"></xref> used to authorize requests sent to the service."
parameters:
- description: "<xref uid=\"com.azure.core.credential.AzureSasCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"AzureSasCredential\"></xref> used to authorize requests sent to the service."
name: "credential"
type: "<xref href=\"com.azure.core.credential.AzureSasCredential?alt=com.azure.core.credential.AzureSasCredential&text=AzureSasCredential\" data-throw-if-not-resolved=\"False\" />"
syntax: "public BlobClientBuilder credential(AzureSasCredential credential)"
desc: "Sets the <xref uid=\"com.azure.core.credential.AzureSasCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"AzureSasCredential\"></xref> used to authorize requests sent to the service."
returns:
description: "the updated BlobClientBuilder"
type: "<xref href=\"com.azure.storage.blob.BlobClientBuilder?alt=com.azure.storage.blob.BlobClientBuilder&text=BlobClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.storage.blob.BlobClientBuilder.credential(com.azure.core.credential.TokenCredential)"
fullName: "com.azure.storage.blob.BlobClientBuilder.credential(TokenCredential credential)"
name: "credential(TokenCredential credential)"
nameWithType: "BlobClientBuilder.credential(TokenCredential credential)"
summary: "Sets the <xref uid=\"com.azure.core.credential.TokenCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"TokenCredential\"></xref> used to authorize requests sent to the service."
parameters:
- description: "<xref uid=\"com.azure.core.credential.TokenCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"TokenCredential\"></xref> used to authorize requests sent to the service."
name: "credential"
type: "<xref href=\"com.azure.core.credential.TokenCredential?alt=com.azure.core.credential.TokenCredential&text=TokenCredential\" data-throw-if-not-resolved=\"False\" />"
syntax: "public BlobClientBuilder credential(TokenCredential credential)"
desc: "Sets the <xref uid=\"com.azure.core.credential.TokenCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"TokenCredential\"></xref> used to authorize requests sent to the service. Refer to the Azure SDK for Java [identity and authentication][] documentation for more details on proper usage of the <xref uid=\"com.azure.core.credential.TokenCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"TokenCredential\"></xref> type.\n\n\n[identity and authentication]: https://aka.ms/azsdk/java/docs/identity"
returns:
description: "the updated BlobClientBuilder"
type: "<xref href=\"com.azure.storage.blob.BlobClientBuilder?alt=com.azure.storage.blob.BlobClientBuilder&text=BlobClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.storage.blob.BlobClientBuilder.credential(com.azure.storage.common.StorageSharedKeyCredential)"
fullName: "com.azure.storage.blob.BlobClientBuilder.credential(StorageSharedKeyCredential credential)"
name: "credential(StorageSharedKeyCredential credential)"
nameWithType: "BlobClientBuilder.credential(StorageSharedKeyCredential credential)"
summary: "Sets the <xref uid=\"com.azure.storage.common.StorageSharedKeyCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"StorageSharedKeyCredential\"></xref> used to authorize requests sent to the service."
parameters:
- description: "<xref uid=\"com.azure.storage.common.StorageSharedKeyCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"StorageSharedKeyCredential\"></xref>."
name: "credential"
type: "<xref href=\"com.azure.storage.common.StorageSharedKeyCredential?alt=com.azure.storage.common.StorageSharedKeyCredential&text=StorageSharedKeyCredential\" data-throw-if-not-resolved=\"False\" />"
syntax: "public BlobClientBuilder credential(StorageSharedKeyCredential credential)"
desc: "Sets the <xref uid=\"com.azure.storage.common.StorageSharedKeyCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"StorageSharedKeyCredential\"></xref> used to authorize requests sent to the service."
returns:
description: "the updated BlobClientBuilder"
type: "<xref href=\"com.azure.storage.blob.BlobClientBuilder?alt=com.azure.storage.blob.BlobClientBuilder&text=BlobClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.storage.blob.BlobClientBuilder.customerProvidedKey(com.azure.storage.blob.models.CustomerProvidedKey)"
fullName: "com.azure.storage.blob.BlobClientBuilder.customerProvidedKey(CustomerProvidedKey customerProvidedKey)"
name: "customerProvidedKey(CustomerProvidedKey customerProvidedKey)"
nameWithType: "BlobClientBuilder.customerProvidedKey(CustomerProvidedKey customerProvidedKey)"
summary: "Sets the <xref uid=\"com.azure.storage.blob.models.CustomerProvidedKey\" data-throw-if-not-resolved=\"false\" data-raw-source=\"customer provided key\"></xref> that is used to encrypt blob contents on the server."
parameters:
- description: "<xref uid=\"com.azure.storage.blob.models.CustomerProvidedKey\" data-throw-if-not-resolved=\"false\" data-raw-source=\"CustomerProvidedKey\"></xref>"
name: "customerProvidedKey"
type: "<xref href=\"com.azure.storage.blob.models.CustomerProvidedKey?alt=com.azure.storage.blob.models.CustomerProvidedKey&text=CustomerProvidedKey\" data-throw-if-not-resolved=\"False\" />"
syntax: "public BlobClientBuilder customerProvidedKey(CustomerProvidedKey customerProvidedKey)"
desc: "Sets the <xref uid=\"com.azure.storage.blob.models.CustomerProvidedKey\" data-throw-if-not-resolved=\"false\" data-raw-source=\"customer provided key\"></xref> that is used to encrypt blob contents on the server."
returns:
description: "the updated BlobClientBuilder object"
type: "<xref href=\"com.azure.storage.blob.BlobClientBuilder?alt=com.azure.storage.blob.BlobClientBuilder&text=BlobClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.storage.blob.BlobClientBuilder.encryptionScope(java.lang.String)"
fullName: "com.azure.storage.blob.BlobClientBuilder.encryptionScope(String encryptionScope)"
name: "encryptionScope(String encryptionScope)"
nameWithType: "BlobClientBuilder.encryptionScope(String encryptionScope)"
summary: "Sets the `encryption scope` that is used to encrypt blob contents on the server."
parameters:
- description: "Encryption scope containing the encryption key information."
name: "encryptionScope"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public BlobClientBuilder encryptionScope(String encryptionScope)"
desc: "Sets the `encryption scope` that is used to encrypt blob contents on the server."
returns:
description: "the updated BlobClientBuilder object"
type: "<xref href=\"com.azure.storage.blob.BlobClientBuilder?alt=com.azure.storage.blob.BlobClientBuilder&text=BlobClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.storage.blob.BlobClientBuilder.endpoint(java.lang.String)"
fullName: "com.azure.storage.blob.BlobClientBuilder.endpoint(String endpoint)"
name: "endpoint(String endpoint)"
nameWithType: "BlobClientBuilder.endpoint(String endpoint)"
summary: "Sets the service endpoint, additionally parses it for information (SAS token, container name, blob name)"
parameters:
- description: "URL of the service"
name: "endpoint"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public BlobClientBuilder endpoint(String endpoint)"
desc: "Sets the service endpoint, additionally parses it for information (SAS token, container name, blob name)\n\nIf the endpoint is to a blob in the root container, this method will fail as it will interpret the blob name as the container name. With only one path element, it is impossible to distinguish between a container name and a blob in the root container, so it is assumed to be the container name as this is much more common. When working with blobs in the root container, it is best to set the endpoint to the account url and specify the blob name separately using the <xref uid=\"com.azure.storage.blob.BlobClientBuilder.blobName(java.lang.String)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"blobName\"></xref> method."
returns:
description: "the updated BlobClientBuilder object"
type: "<xref href=\"com.azure.storage.blob.BlobClientBuilder?alt=com.azure.storage.blob.BlobClientBuilder&text=BlobClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.storage.blob.BlobClientBuilder.getDefaultHttpLogOptions()"
fullName: "com.azure.storage.blob.BlobClientBuilder.getDefaultHttpLogOptions()"
name: "getDefaultHttpLogOptions()"
nameWithType: "BlobClientBuilder.getDefaultHttpLogOptions()"
summary: "Gets the default Storage allowlist log headers and query parameters."
modifiers:
- "static"
syntax: "public static HttpLogOptions getDefaultHttpLogOptions()"
desc: "Gets the default Storage allowlist log headers and query parameters."
returns:
description: "the default http log options."
type: "<xref href=\"com.azure.core.http.policy.HttpLogOptions?alt=com.azure.core.http.policy.HttpLogOptions&text=HttpLogOptions\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.storage.blob.BlobClientBuilder.httpClient(com.azure.core.http.HttpClient)"
fullName: "com.azure.storage.blob.BlobClientBuilder.httpClient(HttpClient httpClient)"
name: "httpClient(HttpClient httpClient)"
nameWithType: "BlobClientBuilder.httpClient(HttpClient httpClient)"
summary: "Sets the <xref uid=\"com.azure.core.http.HttpClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpClient\"></xref> to use for sending and receiving requests to and from the service."
parameters:
- description: "The <xref uid=\"com.azure.core.http.HttpClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpClient\"></xref> to use for requests."
name: "httpClient"
type: "<xref href=\"com.azure.core.http.HttpClient?alt=com.azure.core.http.HttpClient&text=HttpClient\" data-throw-if-not-resolved=\"False\" />"
syntax: "public BlobClientBuilder httpClient(HttpClient httpClient)"
desc: "Sets the <xref uid=\"com.azure.core.http.HttpClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpClient\"></xref> to use for sending and receiving requests to and from the service.\n\n**Note:** It is important to understand the precedence order of the HttpTrait APIs. In particular, if a <xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> is specified, this takes precedence over all other APIs in the trait, and they will be ignored. If no <xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> is specified, a HTTP pipeline will be constructed internally based on the settings provided to this trait. Additionally, there may be other APIs in types that implement this trait that are also ignored if an <xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> is specified, so please be sure to refer to the documentation of types that implement this trait to understand the full set of implications."
returns:
description: "the updated BlobClientBuilder object"
type: "<xref href=\"com.azure.storage.blob.BlobClientBuilder?alt=com.azure.storage.blob.BlobClientBuilder&text=BlobClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.storage.blob.BlobClientBuilder.httpLogOptions(com.azure.core.http.policy.HttpLogOptions)"
fullName: "com.azure.storage.blob.BlobClientBuilder.httpLogOptions(HttpLogOptions logOptions)"
name: "httpLogOptions(HttpLogOptions logOptions)"
nameWithType: "BlobClientBuilder.httpLogOptions(HttpLogOptions logOptions)"
summary: "Sets the <xref uid=\"com.azure.core.http.policy.HttpLogOptions\" data-throw-if-not-resolved=\"false\" data-raw-source=\"logging configuration\"></xref> to use when sending and receiving requests to and from the service."
parameters:
- description: "The <xref uid=\"com.azure.core.http.policy.HttpLogOptions\" data-throw-if-not-resolved=\"false\" data-raw-source=\"logging configuration\"></xref> to use when sending and receiving requests to\n and from the service."
name: "logOptions"
type: "<xref href=\"com.azure.core.http.policy.HttpLogOptions?alt=com.azure.core.http.policy.HttpLogOptions&text=HttpLogOptions\" data-throw-if-not-resolved=\"False\" />"
syntax: "public BlobClientBuilder httpLogOptions(HttpLogOptions logOptions)"
desc: "Sets the <xref uid=\"com.azure.core.http.policy.HttpLogOptions\" data-throw-if-not-resolved=\"false\" data-raw-source=\"logging configuration\"></xref> to use when sending and receiving requests to and from the service. If a `logLevel` is not provided, default value of <xref uid=\"\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpLogDetailLevel#NONE\"></xref> is set.\n\n**Note:** It is important to understand the precedence order of the HttpTrait APIs. In particular, if a <xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> is specified, this takes precedence over all other APIs in the trait, and they will be ignored. If no <xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> is specified, a HTTP pipeline will be constructed internally based on the settings provided to this trait. Additionally, there may be other APIs in types that implement this trait that are also ignored if an <xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> is specified, so please be sure to refer to the documentation of types that implement this trait to understand the full set of implications."
returns:
description: "the updated BlobClientBuilder object"
type: "<xref href=\"com.azure.storage.blob.BlobClientBuilder?alt=com.azure.storage.blob.BlobClientBuilder&text=BlobClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.storage.blob.BlobClientBuilder.pipeline(com.azure.core.http.HttpPipeline)"
fullName: "com.azure.storage.blob.BlobClientBuilder.pipeline(HttpPipeline httpPipeline)"
name: "pipeline(HttpPipeline httpPipeline)"
nameWithType: "BlobClientBuilder.pipeline(HttpPipeline httpPipeline)"
summary: "Sets the <xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> to use for the service client."
parameters:
- description: "<xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> to use for sending service requests and receiving responses."
name: "httpPipeline"
type: "<xref href=\"com.azure.core.http.HttpPipeline?alt=com.azure.core.http.HttpPipeline&text=HttpPipeline\" data-throw-if-not-resolved=\"False\" />"
syntax: "public BlobClientBuilder pipeline(HttpPipeline httpPipeline)"
desc: "Sets the <xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> to use for the service client.\n\n**Note:** It is important to understand the precedence order of the HttpTrait APIs. In particular, if a <xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> is specified, this takes precedence over all other APIs in the trait, and they will be ignored. If no <xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> is specified, a HTTP pipeline will be constructed internally based on the settings provided to this trait. Additionally, there may be other APIs in types that implement this trait that are also ignored if an <xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> is specified, so please be sure to refer to the documentation of types that implement this trait to understand the full set of implications.\n\nThe <xref uid=\"com.azure.storage.blob.BlobClientBuilder.endpoint(java.lang.String)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"endpoint\"></xref> is not ignored when `pipeline` is set."
returns:
description: "the updated BlobClientBuilder object"
type: "<xref href=\"com.azure.storage.blob.BlobClientBuilder?alt=com.azure.storage.blob.BlobClientBuilder&text=BlobClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.storage.blob.BlobClientBuilder.retryOptions(com.azure.core.http.policy.RetryOptions)"
fullName: "com.azure.storage.blob.BlobClientBuilder.retryOptions(RetryOptions retryOptions)"
name: "retryOptions(RetryOptions retryOptions)"
nameWithType: "BlobClientBuilder.retryOptions(RetryOptions retryOptions)"
summary: "Sets the <xref uid=\"com.azure.core.http.policy.RetryOptions\" data-throw-if-not-resolved=\"false\" data-raw-source=\"RetryOptions\"></xref> for all the requests made through the client."
parameters:
- description: "The <xref uid=\"com.azure.core.http.policy.RetryOptions\" data-throw-if-not-resolved=\"false\" data-raw-source=\"RetryOptions\"></xref> to use for all the requests made through the client."
name: "retryOptions"
type: "<xref href=\"com.azure.core.http.policy.RetryOptions?alt=com.azure.core.http.policy.RetryOptions&text=RetryOptions\" data-throw-if-not-resolved=\"False\" />"
syntax: "public BlobClientBuilder retryOptions(RetryOptions retryOptions)"
desc: "Sets the <xref uid=\"com.azure.core.http.policy.RetryOptions\" data-throw-if-not-resolved=\"false\" data-raw-source=\"RetryOptions\"></xref> for all the requests made through the client.\n\n**Note:** It is important to understand the precedence order of the HttpTrait APIs. In particular, if a <xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> is specified, this takes precedence over all other APIs in the trait, and they will be ignored. If no <xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> is specified, a HTTP pipeline will be constructed internally based on the settings provided to this trait. Additionally, there may be other APIs in types that implement this trait that are also ignored if an <xref uid=\"com.azure.core.http.HttpPipeline\" data-throw-if-not-resolved=\"false\" data-raw-source=\"HttpPipeline\"></xref> is specified, so please be sure to refer to the documentation of types that implement this trait to understand the full set of implications.\n\nSetting this is mutually exclusive with using <xref uid=\"com.azure.storage.blob.BlobClientBuilder.retryOptions(com.azure.storage.common.policy.RequestRetryOptions)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"#retryOptions(RequestRetryOptions)\"></xref>. Consider using <xref uid=\"com.azure.storage.blob.BlobClientBuilder.retryOptions(com.azure.storage.common.policy.RequestRetryOptions)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"#retryOptions(RequestRetryOptions)\"></xref> to also set storage specific options."
returns:
description: "the updated BlobClientBuilder object"
type: "<xref href=\"com.azure.storage.blob.BlobClientBuilder?alt=com.azure.storage.blob.BlobClientBuilder&text=BlobClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.storage.blob.BlobClientBuilder.retryOptions(com.azure.storage.common.policy.RequestRetryOptions)"
fullName: "com.azure.storage.blob.BlobClientBuilder.retryOptions(RequestRetryOptions retryOptions)"
name: "retryOptions(RequestRetryOptions retryOptions)"
nameWithType: "BlobClientBuilder.retryOptions(RequestRetryOptions retryOptions)"
summary: "Sets the request retry options for all the requests made through the client."
parameters:
- description: "<xref uid=\"com.azure.storage.common.policy.RequestRetryOptions\" data-throw-if-not-resolved=\"false\" data-raw-source=\"RequestRetryOptions\"></xref>."
name: "retryOptions"
type: "<xref href=\"com.azure.storage.common.policy.RequestRetryOptions?alt=com.azure.storage.common.policy.RequestRetryOptions&text=RequestRetryOptions\" data-throw-if-not-resolved=\"False\" />"
syntax: "public BlobClientBuilder retryOptions(RequestRetryOptions retryOptions)"
desc: "Sets the request retry options for all the requests made through the client. Setting this is mutually exclusive with using <xref uid=\"com.azure.storage.blob.BlobClientBuilder.retryOptions(com.azure.core.http.policy.RetryOptions)\" data-throw-if-not-resolved=\"false\" data-raw-source=\"#retryOptions(RetryOptions)\"></xref>."
returns:
description: "the updated BlobClientBuilder object"
type: "<xref href=\"com.azure.storage.blob.BlobClientBuilder?alt=com.azure.storage.blob.BlobClientBuilder&text=BlobClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.storage.blob.BlobClientBuilder.sasToken(java.lang.String)"
fullName: "com.azure.storage.blob.BlobClientBuilder.sasToken(String sasToken)"
name: "sasToken(String sasToken)"
nameWithType: "BlobClientBuilder.sasToken(String sasToken)"
summary: "Sets the SAS token used to authorize requests sent to the service."
parameters:
- description: "The SAS token to use for authenticating requests. This string should only be the query parameters\n (with or without a leading '?') and not a full url."
name: "sasToken"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public BlobClientBuilder sasToken(String sasToken)"
desc: "Sets the SAS token used to authorize requests sent to the service."
returns:
description: "the updated BlobClientBuilder"
type: "<xref href=\"com.azure.storage.blob.BlobClientBuilder?alt=com.azure.storage.blob.BlobClientBuilder&text=BlobClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.storage.blob.BlobClientBuilder.serviceVersion(com.azure.storage.blob.BlobServiceVersion)"
fullName: "com.azure.storage.blob.BlobClientBuilder.serviceVersion(BlobServiceVersion version)"
name: "serviceVersion(BlobServiceVersion version)"
nameWithType: "BlobClientBuilder.serviceVersion(BlobServiceVersion version)"
summary: "Sets the <xref uid=\"com.azure.storage.blob.BlobServiceVersion\" data-throw-if-not-resolved=\"false\" data-raw-source=\"BlobServiceVersion\"></xref> that is used when making API requests."
parameters:
- description: "<xref uid=\"com.azure.storage.blob.BlobServiceVersion\" data-throw-if-not-resolved=\"false\" data-raw-source=\"BlobServiceVersion\"></xref> of the service to be used when making requests."
name: "version"
type: "<xref href=\"com.azure.storage.blob.BlobServiceVersion?alt=com.azure.storage.blob.BlobServiceVersion&text=BlobServiceVersion\" data-throw-if-not-resolved=\"False\" />"
syntax: "public BlobClientBuilder serviceVersion(BlobServiceVersion version)"
desc: "Sets the <xref uid=\"com.azure.storage.blob.BlobServiceVersion\" data-throw-if-not-resolved=\"false\" data-raw-source=\"BlobServiceVersion\"></xref> that is used when making API requests.\n\nIf a service version is not provided, the service version that will be used will be the latest known service version based on the version of the client library being used. If no service version is specified, updating to a newer version of the client library will have the result of potentially moving to a newer service version.\n\nTargeting a specific service version may also mean that the service will return an error for newer APIs."
returns:
description: "the updated BlobClientBuilder object"
type: "<xref href=\"com.azure.storage.blob.BlobClientBuilder?alt=com.azure.storage.blob.BlobClientBuilder&text=BlobClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.storage.blob.BlobClientBuilder.setAnonymousAccess()"
fullName: "com.azure.storage.blob.BlobClientBuilder.setAnonymousAccess()"
name: "setAnonymousAccess()"
nameWithType: "BlobClientBuilder.setAnonymousAccess()"
summary: "Clears the credential used to authorize the request."
syntax: "public BlobClientBuilder setAnonymousAccess()"
desc: "Clears the credential used to authorize the request.\n\nThis is for blobs that are publicly accessible."
returns:
description: "the updated BlobClientBuilder"
type: "<xref href=\"com.azure.storage.blob.BlobClientBuilder?alt=com.azure.storage.blob.BlobClientBuilder&text=BlobClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.storage.blob.BlobClientBuilder.snapshot(java.lang.String)"
fullName: "com.azure.storage.blob.BlobClientBuilder.snapshot(String snapshot)"
name: "snapshot(String snapshot)"
nameWithType: "BlobClientBuilder.snapshot(String snapshot)"
summary: "Sets the snapshot identifier of the blob."
parameters:
- description: "Snapshot identifier for the blob."
name: "snapshot"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public BlobClientBuilder snapshot(String snapshot)"
desc: "Sets the snapshot identifier of the blob."
returns:
description: "the updated BlobClientBuilder object"
type: "<xref href=\"com.azure.storage.blob.BlobClientBuilder?alt=com.azure.storage.blob.BlobClientBuilder&text=BlobClientBuilder\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.storage.blob.BlobClientBuilder.versionId(java.lang.String)"
fullName: "com.azure.storage.blob.BlobClientBuilder.versionId(String versionId)"
name: "versionId(String versionId)"
nameWithType: "BlobClientBuilder.versionId(String versionId)"
summary: "Sets the version identifier of the blob."
parameters:
- description: "Version identifier for the blob, pass <code>null</code> to interact with the latest blob version."
name: "versionId"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public BlobClientBuilder versionId(String versionId)"
desc: "Sets the version identifier of the blob."
returns:
description: "the updated BlobClientBuilder object"
type: "<xref href=\"com.azure.storage.blob.BlobClientBuilder?alt=com.azure.storage.blob.BlobClientBuilder&text=BlobClientBuilder\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "This class provides a fluent builder API to help aid the configuration and instantiation of <xref uid=\"com.azure.storage.blob.BlobClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"BlobClients\"></xref> and <xref uid=\"com.azure.storage.blob.BlobAsyncClient\" data-throw-if-not-resolved=\"false\" data-raw-source=\"BlobAsyncClients\"></xref>, call <xref uid=\"com.azure.storage.blob.BlobClientBuilder.buildClient()\" data-throw-if-not-resolved=\"false\" data-raw-source=\"buildClient\"></xref> and <xref uid=\"com.azure.storage.blob.BlobClientBuilder.buildAsyncClient()\" data-throw-if-not-resolved=\"false\" data-raw-source=\"buildAsyncClient\"></xref> respectively to construct an instance of the desired client.\n\nThe following information must be provided on this builder:\n\n * the endpoint through `.endpoint()`, including the container name and blob name, in the format of `https://{accountName}.blob.core.windows.net/{containerName}/{blobName}`.\n * the credential through `.credential()` or `.connectionString()` if the container is not publicly accessible."
implements:
- "<xref href=\"com.azure.core.client.traits.AzureNamedKeyCredentialTrait?alt=com.azure.core.client.traits.AzureNamedKeyCredentialTrait&text=AzureNamedKeyCredentialTrait\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.storage.blob.BlobClientBuilder?alt=com.azure.storage.blob.BlobClientBuilder&text=BlobClientBuilder\" data-throw-if-not-resolved=\"False\" />&gt;"
- "<xref href=\"com.azure.core.client.traits.AzureSasCredentialTrait?alt=com.azure.core.client.traits.AzureSasCredentialTrait&text=AzureSasCredentialTrait\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.storage.blob.BlobClientBuilder?alt=com.azure.storage.blob.BlobClientBuilder&text=BlobClientBuilder\" data-throw-if-not-resolved=\"False\" />&gt;"
- "<xref href=\"com.azure.core.client.traits.ConfigurationTrait?alt=com.azure.core.client.traits.ConfigurationTrait&text=ConfigurationTrait\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.storage.blob.BlobClientBuilder?alt=com.azure.storage.blob.BlobClientBuilder&text=BlobClientBuilder\" data-throw-if-not-resolved=\"False\" />&gt;"
- "<xref href=\"com.azure.core.client.traits.ConnectionStringTrait?alt=com.azure.core.client.traits.ConnectionStringTrait&text=ConnectionStringTrait\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.storage.blob.BlobClientBuilder?alt=com.azure.storage.blob.BlobClientBuilder&text=BlobClientBuilder\" data-throw-if-not-resolved=\"False\" />&gt;"
- "<xref href=\"com.azure.core.client.traits.EndpointTrait?alt=com.azure.core.client.traits.EndpointTrait&text=EndpointTrait\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.storage.blob.BlobClientBuilder?alt=com.azure.storage.blob.BlobClientBuilder&text=BlobClientBuilder\" data-throw-if-not-resolved=\"False\" />&gt;"
- "<xref href=\"com.azure.core.client.traits.HttpTrait?alt=com.azure.core.client.traits.HttpTrait&text=HttpTrait\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.storage.blob.BlobClientBuilder?alt=com.azure.storage.blob.BlobClientBuilder&text=BlobClientBuilder\" data-throw-if-not-resolved=\"False\" />&gt;"
- "<xref href=\"com.azure.core.client.traits.TokenCredentialTrait?alt=com.azure.core.client.traits.TokenCredentialTrait&text=TokenCredentialTrait\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.storage.blob.BlobClientBuilder?alt=com.azure.storage.blob.BlobClientBuilder&text=BlobClientBuilder\" data-throw-if-not-resolved=\"False\" />&gt;"
metadata: {}
package: "com.azure.storage.blob"
artifact: com.azure:azure-storage-blob:12.27.1