### YamlMime:JavaType uid: "com.azure.storage.blob.BlobContainerClient" fullName: "com.azure.storage.blob.BlobContainerClient" name: "BlobContainerClient" nameWithType: "BlobContainerClient" summary: "Client to a container." inheritances: - "" inheritedClassMethods: - classRef: "java.lang.Object" methodsRef: - "clone" - "equals" - "finalize" - "getClass" - "hashCode" - "notify" - "notifyAll" - "toString" - "wait" - "wait" - "wait" syntax: "public final class **BlobContainerClient**" fields: - uid: "com.azure.storage.blob.BlobContainerClient.LOG_CONTAINER_NAME" fullName: "com.azure.storage.blob.BlobContainerClient.LOG_CONTAINER_NAME" name: "LOG_CONTAINER_NAME" nameWithType: "BlobContainerClient.LOG_CONTAINER_NAME" summary: "Special container name for the logs container in the Storage account." modifiers: - "static" - "final" field: value: "$logs" type: "String" syntax: "public static final String LOG_CONTAINER_NAME" desc: "Special container name for the logs container in the Storage account." - uid: "com.azure.storage.blob.BlobContainerClient.ROOT_CONTAINER_NAME" fullName: "com.azure.storage.blob.BlobContainerClient.ROOT_CONTAINER_NAME" name: "ROOT_CONTAINER_NAME" nameWithType: "BlobContainerClient.ROOT_CONTAINER_NAME" summary: "Special container name for the root container in the Storage account." modifiers: - "static" - "final" field: value: "$root" type: "String" syntax: "public static final String ROOT_CONTAINER_NAME" desc: "Special container name for the root container in the Storage account." - uid: "com.azure.storage.blob.BlobContainerClient.STATIC_WEBSITE_CONTAINER_NAME" fullName: "com.azure.storage.blob.BlobContainerClient.STATIC_WEBSITE_CONTAINER_NAME" name: "STATIC_WEBSITE_CONTAINER_NAME" nameWithType: "BlobContainerClient.STATIC_WEBSITE_CONTAINER_NAME" summary: "Special container name for the static website container in the Storage account." modifiers: - "static" - "final" field: value: "$web" type: "String" syntax: "public static final String STATIC_WEBSITE_CONTAINER_NAME" desc: "Special container name for the static website container in the Storage account." methods: - uid: "com.azure.storage.blob.BlobContainerClient.create()" fullName: "com.azure.storage.blob.BlobContainerClient.create()" name: "create()" nameWithType: "BlobContainerClient.create()" summary: "Creates a new container within a storage account." syntax: "public void create()" desc: "Creates a new container within a storage account. If a container with the same name already exists, the operation fails. For more information, see the [Azure Docs][].\n\n**Code Samples**\n\n```java\ntry {\n client.create();\n System.out.printf(\"Create completed%n\");\n } catch (BlobStorageException error) {\n if (error.getErrorCode().equals(BlobErrorCode.CONTAINER_ALREADY_EXISTS)) {\n System.out.printf(\"Can't create container. It already exists %n\");\n }\n }\n```\n\n\n[Azure Docs]: https://docs.microsoft.com/rest/api/storageservices/create-container" - uid: "com.azure.storage.blob.BlobContainerClient.createIfNotExists()" fullName: "com.azure.storage.blob.BlobContainerClient.createIfNotExists()" name: "createIfNotExists()" nameWithType: "BlobContainerClient.createIfNotExists()" summary: "Creates a new container within a storage account if it does not exist." syntax: "public boolean createIfNotExists()" desc: "Creates a new container within a storage account if it does not exist. For more information, see the [Azure Docs][].\n\n**Code Samples**\n\n```java\nboolean result = client.createIfNotExists();\n System.out.println(\"Create completed: \" + result);\n```\n\n\n[Azure Docs]: https://docs.microsoft.com/rest/api/storageservices/create-container" returns: description: "true if container is successfully created, false if container already exists." type: "" - uid: "com.azure.storage.blob.BlobContainerClient.createIfNotExistsWithResponse(com.azure.storage.blob.options.BlobContainerCreateOptions,java.time.Duration,com.azure.core.util.Context)" fullName: "com.azure.storage.blob.BlobContainerClient.createIfNotExistsWithResponse(BlobContainerCreateOptions options, Duration timeout, Context context)" name: "createIfNotExistsWithResponse(BlobContainerCreateOptions options, Duration timeout, Context context)" nameWithType: "BlobContainerClient.createIfNotExistsWithResponse(BlobContainerCreateOptions options, Duration timeout, Context context)" summary: "Creates a new container within a storage account if it does not exist." parameters: - description: "" name: "options" type: "" - description: "An optional timeout value beyond which a will be raised." name: "timeout" type: "Duration" - description: "Additional context that is passed through the Http pipeline during the service call." name: "context" type: "" syntax: "public Response createIfNotExistsWithResponse(BlobContainerCreateOptions options, Duration timeout, Context context)" desc: "Creates a new container within a storage account if it does not exist. For more information, see the [Azure Docs][].\n\n**Code Samples**\n\n```java\nMap metadata = Collections.singletonMap(\"metadata\", \"value\");\n Context context = new Context(\"Key\", \"Value\");\n BlobContainerCreateOptions options = new BlobContainerCreateOptions().setMetadata(metadata)\n .setPublicAccessType(PublicAccessType.CONTAINER);\n\n Response response = client.createIfNotExistsWithResponse(options, timeout, context);\n if (response.getStatusCode() == 409) {\n System.out.println(\"Already existed.\");\n } else {\n System.out.printf(\"Create completed with status %d%n\", response.getStatusCode());\n }\n```\n\n\n[Azure Docs]: https://docs.microsoft.com/rest/api/storageservices/create-container" returns: description: "A response containing status code and HTTP headers. If 's status code is 201, a new\n container was successfully created. If status code is 409, a container already existed at this location." type: "<Boolean>" - uid: "com.azure.storage.blob.BlobContainerClient.createWithResponse(java.util.Map,com.azure.storage.blob.models.PublicAccessType,java.time.Duration,com.azure.core.util.Context)" fullName: "com.azure.storage.blob.BlobContainerClient.createWithResponse(Map metadata, PublicAccessType accessType, Duration timeout, Context context)" name: "createWithResponse(Map metadata, PublicAccessType accessType, Duration timeout, Context context)" nameWithType: "BlobContainerClient.createWithResponse(Map metadata, PublicAccessType accessType, Duration timeout, Context context)" summary: "Creates a new container within a storage account." parameters: - description: "Metadata to associate with the container. If there is leading or trailing whitespace in any\n metadata key or value, it must be removed or encoded." name: "metadata" type: "Map<String,String>" - description: "Specifies how the data in this container is available to the public. See the\n x-ms-blob-public-access header in the Azure Docs for more information. Pass null for no public access." name: "accessType" type: "" - description: "An optional timeout value beyond which a will be raised." name: "timeout" type: "Duration" - description: "Additional context that is passed through the Http pipeline during the service call." name: "context" type: "" syntax: "public Response createWithResponse(Map metadata, PublicAccessType accessType, Duration timeout, Context context)" desc: "Creates a new container within a storage account. If a container with the same name already exists, the operation fails. For more information, see the [Azure Docs][].\n\n**Code Samples**\n\n```java\nMap metadata = Collections.singletonMap(\"metadata\", \"value\");\n Context context = new Context(\"Key\", \"Value\");\n\n System.out.printf(\"Create completed with status %d%n\",\n client.createWithResponse(metadata, PublicAccessType.CONTAINER, timeout, context).getStatusCode());\n```\n\n\n[Azure Docs]: https://docs.microsoft.com/rest/api/storageservices/create-container" returns: description: "A response containing status code and HTTP headers" type: "<Void>" - uid: "com.azure.storage.blob.BlobContainerClient.delete()" fullName: "com.azure.storage.blob.BlobContainerClient.delete()" name: "delete()" nameWithType: "BlobContainerClient.delete()" summary: "Marks the specified container for deletion." syntax: "public void delete()" desc: "Marks the specified container for deletion. The container and any blobs contained within it are later deleted during garbage collection. For more information, see the [Azure Docs][].\n\n**Code Samples**\n\n```java\ntry {\n client.delete();\n System.out.printf(\"Delete completed%n\");\n } catch (BlobStorageException error) {\n if (error.getErrorCode().equals(BlobErrorCode.CONTAINER_NOT_FOUND)) {\n System.out.printf(\"Delete failed. Container was not found %n\");\n }\n }\n```\n\n\n[Azure Docs]: https://docs.microsoft.com/rest/api/storageservices/delete-container" - uid: "com.azure.storage.blob.BlobContainerClient.deleteIfExists()" fullName: "com.azure.storage.blob.BlobContainerClient.deleteIfExists()" name: "deleteIfExists()" nameWithType: "BlobContainerClient.deleteIfExists()" summary: "Marks the specified container for deletion if it exists." syntax: "public boolean deleteIfExists()" desc: "Marks the specified container for deletion if it exists. The container and any blobs contained within it are later deleted during garbage collection. For more information, see the [Azure Docs][].\n\n**Code Samples**\n\n```java\nboolean result = client.deleteIfExists();\n System.out.println(\"Delete completed: \" + result);\n```\n\n\n[Azure Docs]: https://docs.microsoft.com/rest/api/storageservices/delete-container" returns: description: "true if container is successfully deleted, false if container does not exist." type: "" - uid: "com.azure.storage.blob.BlobContainerClient.deleteIfExistsWithResponse(com.azure.storage.blob.models.BlobRequestConditions,java.time.Duration,com.azure.core.util.Context)" fullName: "com.azure.storage.blob.BlobContainerClient.deleteIfExistsWithResponse(BlobRequestConditions requestConditions, Duration timeout, Context context)" name: "deleteIfExistsWithResponse(BlobRequestConditions requestConditions, Duration timeout, Context context)" nameWithType: "BlobContainerClient.deleteIfExistsWithResponse(BlobRequestConditions requestConditions, Duration timeout, Context context)" summary: "Marks the specified container for deletion if it exists." parameters: - description: "" name: "requestConditions" type: "" - description: "An optional timeout value beyond which a will be raised." name: "timeout" type: "Duration" - description: "Additional context that is passed through the Http pipeline during the service call." name: "context" type: "" syntax: "public Response deleteIfExistsWithResponse(BlobRequestConditions requestConditions, Duration timeout, Context context)" desc: "Marks the specified container for deletion if it exists. The container and any blobs contained within it are later deleted during garbage collection. For more information, see the [Azure Docs][].\n\n**Code Samples**\n\n```java\nBlobRequestConditions requestConditions = new BlobRequestConditions()\n .setLeaseId(leaseId)\n .setIfUnmodifiedSince(OffsetDateTime.now().minusDays(3));\n Context context = new Context(\"Key\", \"Value\");\n\n Response response = client.deleteIfExistsWithResponse(requestConditions, timeout, context);\n if (response.getStatusCode() == 404) {\n System.out.println(\"Does not exist.\");\n } else {\n System.out.printf(\"Delete completed with status %d%n\", response.getStatusCode());\n }\n```\n\n\n[Azure Docs]: https://docs.microsoft.com/rest/api/storageservices/delete-container" returns: description: "A response containing status code and HTTP headers. If 's status code is 202, the container\n was successfully deleted. If status code is 404, the container does not exist." type: "<Boolean>" - uid: "com.azure.storage.blob.BlobContainerClient.deleteWithResponse(com.azure.storage.blob.models.BlobRequestConditions,java.time.Duration,com.azure.core.util.Context)" fullName: "com.azure.storage.blob.BlobContainerClient.deleteWithResponse(BlobRequestConditions requestConditions, Duration timeout, Context context)" name: "deleteWithResponse(BlobRequestConditions requestConditions, Duration timeout, Context context)" nameWithType: "BlobContainerClient.deleteWithResponse(BlobRequestConditions requestConditions, Duration timeout, Context context)" summary: "Marks the specified container for deletion." parameters: - description: "" name: "requestConditions" type: "" - description: "An optional timeout value beyond which a will be raised." name: "timeout" type: "Duration" - description: "Additional context that is passed through the Http pipeline during the service call." name: "context" type: "" syntax: "public Response deleteWithResponse(BlobRequestConditions requestConditions, Duration timeout, Context context)" desc: "Marks the specified container for deletion. The container and any blobs contained within it are later deleted during garbage collection. For more information, see the [Azure Docs][].\n\n**Code Samples**\n\n```java\nBlobRequestConditions requestConditions = new BlobRequestConditions()\n .setLeaseId(leaseId)\n .setIfUnmodifiedSince(OffsetDateTime.now().minusDays(3));\n Context context = new Context(\"Key\", \"Value\");\n\n System.out.printf(\"Delete completed with status %d%n\", client.deleteWithResponse(\n requestConditions, timeout, context).getStatusCode());\n```\n\n\n[Azure Docs]: https://docs.microsoft.com/rest/api/storageservices/delete-container" returns: description: "A response containing status code and HTTP headers" type: "<Void>" - uid: "com.azure.storage.blob.BlobContainerClient.exists()" fullName: "com.azure.storage.blob.BlobContainerClient.exists()" name: "exists()" nameWithType: "BlobContainerClient.exists()" summary: "Gets if the container this client represents exists in the cloud." syntax: "public boolean exists()" desc: "Gets if the container this client represents exists in the cloud.\n\n**Code Samples**\n\n```java\nSystem.out.printf(\"Exists? %b%n\", client.exists());\n```" returns: description: "true if the container exists, false if it doesn't" type: "" - uid: "com.azure.storage.blob.BlobContainerClient.existsWithResponse(java.time.Duration,com.azure.core.util.Context)" fullName: "com.azure.storage.blob.BlobContainerClient.existsWithResponse(Duration timeout, Context context)" name: "existsWithResponse(Duration timeout, Context context)" nameWithType: "BlobContainerClient.existsWithResponse(Duration timeout, Context context)" summary: "Gets if the container this client represents exists in the cloud." parameters: - description: "An optional timeout value beyond which a will be raised." name: "timeout" type: "Duration" - description: "Additional context that is passed through the Http pipeline during the service call." name: "context" type: "" syntax: "public Response existsWithResponse(Duration timeout, Context context)" desc: "Gets if the container this client represents exists in the cloud.\n\n**Code Samples**\n\n```java\nContext context = new Context(\"Key\", \"Value\");\n System.out.printf(\"Exists? %b%n\", client.existsWithResponse(timeout, context).getValue());\n```" returns: description: "true if the container exists, false if it doesn't" type: "<Boolean>" - uid: "com.azure.storage.blob.BlobContainerClient.findBlobsByTags(com.azure.storage.blob.options.FindBlobsOptions,java.time.Duration,com.azure.core.util.Context)" fullName: "com.azure.storage.blob.BlobContainerClient.findBlobsByTags(FindBlobsOptions options, Duration timeout, Context context)" name: "findBlobsByTags(FindBlobsOptions options, Duration timeout, Context context)" nameWithType: "BlobContainerClient.findBlobsByTags(FindBlobsOptions options, Duration timeout, Context context)" summary: "Returns a lazy loaded list of blobs in this account whose tags match the query expression." parameters: - description: ". If iterating by page, the page size passed to byPage methods such as\n will be preferred over the value set on these options." name: "options" type: "" - description: "An optional timeout value beyond which a will be raised." name: "timeout" type: "Duration" - description: "Additional context that is passed through the Http pipeline during the service call." name: "context" type: "" syntax: "public PagedIterable findBlobsByTags(FindBlobsOptions options, Duration timeout, Context context)" desc: "Returns a lazy loaded list of blobs in this account whose tags match the query expression. The returned can be consumed while new items are automatically retrieved as needed. For more information, including information on the query syntax, see the [Azure Docs][].\n\n**Code Samples**\n\n```java\nContext context = new Context(\"Key\", \"Value\");\n client.findBlobsByTags(new FindBlobsOptions(\"where=tag=value\").setMaxResultsPerPage(10), timeout, context)\n .forEach(blob -> System.out.printf(\"Name: %s%n\", blob.getName()));\n```\n\n\n[Azure Docs]: https://docs.microsoft.com/rest/api/storageservices/find-blobs-by-tags" returns: description: "The list of blobs." type: "<>" - uid: "com.azure.storage.blob.BlobContainerClient.findBlobsByTags(java.lang.String)" fullName: "com.azure.storage.blob.BlobContainerClient.findBlobsByTags(String query)" name: "findBlobsByTags(String query)" nameWithType: "BlobContainerClient.findBlobsByTags(String query)" summary: "Returns a lazy loaded list of blobs in this container whose tags match the query expression." parameters: - description: "Filters the results to return only blobs whose tags match the specified expression." name: "query" type: "String" syntax: "public PagedIterable findBlobsByTags(String query)" desc: "Returns a lazy loaded list of blobs in this container whose tags match the query expression. The returned can be consumed while new items are automatically retrieved as needed. For more information, including information on the query syntax, see the [Azure Docs][].\n\n**Code Samples**\n\nTODO\n\n```java\nclient.findBlobsByTags(\"where=tag=value\").forEach(blob -> System.out.printf(\"Name: %s%n\", blob.getName()));\n```\n\n\n[Azure Docs]: https://docs.microsoft.com/rest/api/storageservices/find-blobs-by-tags" returns: description: "The list of blobs." type: "<>" - uid: "com.azure.storage.blob.BlobContainerClient.generateSas(com.azure.storage.blob.sas.BlobServiceSasSignatureValues)" fullName: "com.azure.storage.blob.BlobContainerClient.generateSas(BlobServiceSasSignatureValues blobServiceSasSignatureValues)" name: "generateSas(BlobServiceSasSignatureValues blobServiceSasSignatureValues)" nameWithType: "BlobContainerClient.generateSas(BlobServiceSasSignatureValues blobServiceSasSignatureValues)" summary: "Generates a service SAS for the container using the specified " parameters: - description: "" name: "blobServiceSasSignatureValues" type: "" syntax: "public String generateSas(BlobServiceSasSignatureValues blobServiceSasSignatureValues)" desc: "Generates a service SAS for the container using the specified \n\nNote : The client must be authenticated via \n\nSee for more information on how to construct a service SAS.\n\n**Code Samples**\n\n```java\nOffsetDateTime expiryTime = OffsetDateTime.now().plusDays(1);\n BlobContainerSasPermission permission = new BlobContainerSasPermission().setReadPermission(true);\n\n BlobServiceSasSignatureValues values = new BlobServiceSasSignatureValues(expiryTime, permission)\n .setStartTime(OffsetDateTime.now());\n\n client.generateSas(values); // Client must be authenticated via StorageSharedKeyCredential\n```" returns: description: "A String representing the SAS query parameters." type: "String" - uid: "com.azure.storage.blob.BlobContainerClient.generateSas(com.azure.storage.blob.sas.BlobServiceSasSignatureValues,com.azure.core.util.Context)" fullName: "com.azure.storage.blob.BlobContainerClient.generateSas(BlobServiceSasSignatureValues blobServiceSasSignatureValues, Context context)" name: "generateSas(BlobServiceSasSignatureValues blobServiceSasSignatureValues, Context context)" nameWithType: "BlobContainerClient.generateSas(BlobServiceSasSignatureValues blobServiceSasSignatureValues, Context context)" summary: "Generates a service SAS for the container using the specified " parameters: - description: "" name: "blobServiceSasSignatureValues" type: "" - description: "Additional context that is passed through the code when generating a SAS." name: "context" type: "" syntax: "public String generateSas(BlobServiceSasSignatureValues blobServiceSasSignatureValues, Context context)" desc: "Generates a service SAS for the container using the specified \n\nNote : The client must be authenticated via \n\nSee for more information on how to construct a service SAS.\n\n**Code Samples**\n\n```java\nOffsetDateTime expiryTime = OffsetDateTime.now().plusDays(1);\n BlobContainerSasPermission permission = new BlobContainerSasPermission().setReadPermission(true);\n\n BlobServiceSasSignatureValues values = new BlobServiceSasSignatureValues(expiryTime, permission)\n .setStartTime(OffsetDateTime.now());\n\n // Client must be authenticated via StorageSharedKeyCredential\n client.generateSas(values, new Context(\"key\", \"value\"));\n```" returns: description: "A String representing the SAS query parameters." type: "String" - uid: "com.azure.storage.blob.BlobContainerClient.generateUserDelegationSas(com.azure.storage.blob.sas.BlobServiceSasSignatureValues,com.azure.storage.blob.models.UserDelegationKey)" fullName: "com.azure.storage.blob.BlobContainerClient.generateUserDelegationSas(BlobServiceSasSignatureValues blobServiceSasSignatureValues, UserDelegationKey userDelegationKey)" name: "generateUserDelegationSas(BlobServiceSasSignatureValues blobServiceSasSignatureValues, UserDelegationKey userDelegationKey)" nameWithType: "BlobContainerClient.generateUserDelegationSas(BlobServiceSasSignatureValues blobServiceSasSignatureValues, UserDelegationKey userDelegationKey)" summary: "Generates a user delegation SAS for the container using the specified ." parameters: - description: "" name: "blobServiceSasSignatureValues" type: "" - description: "A object used to sign the SAS values.\n See for more information on\n how to get a user delegation key." name: "userDelegationKey" type: "" syntax: "public String generateUserDelegationSas(BlobServiceSasSignatureValues blobServiceSasSignatureValues, UserDelegationKey userDelegationKey)" desc: "Generates a user delegation SAS for the container using the specified .\n\nSee for more information on how to construct a user delegation SAS.\n\n**Code Samples**\n\n```java\nOffsetDateTime myExpiryTime = OffsetDateTime.now().plusDays(1);\n BlobContainerSasPermission myPermission = new BlobContainerSasPermission().setReadPermission(true);\n\n BlobServiceSasSignatureValues myValues = new BlobServiceSasSignatureValues(expiryTime, permission)\n .setStartTime(OffsetDateTime.now());\n\n client.generateUserDelegationSas(values, userDelegationKey);\n```" returns: description: "A String representing the SAS query parameters." type: "String" - uid: "com.azure.storage.blob.BlobContainerClient.generateUserDelegationSas(com.azure.storage.blob.sas.BlobServiceSasSignatureValues,com.azure.storage.blob.models.UserDelegationKey,java.lang.String,com.azure.core.util.Context)" fullName: "com.azure.storage.blob.BlobContainerClient.generateUserDelegationSas(BlobServiceSasSignatureValues blobServiceSasSignatureValues, UserDelegationKey userDelegationKey, String accountName, Context context)" name: "generateUserDelegationSas(BlobServiceSasSignatureValues blobServiceSasSignatureValues, UserDelegationKey userDelegationKey, String accountName, Context context)" nameWithType: "BlobContainerClient.generateUserDelegationSas(BlobServiceSasSignatureValues blobServiceSasSignatureValues, UserDelegationKey userDelegationKey, String accountName, Context context)" summary: "Generates a user delegation SAS for the container using the specified ." parameters: - description: "" name: "blobServiceSasSignatureValues" type: "" - description: "A object used to sign the SAS values.\n See for more information on\n how to get a user delegation key.." name: "userDelegationKey" type: "" - description: "The account name." name: "accountName" type: "String" - description: "Additional context that is passed through the code when generating a SAS." name: "context" type: "" syntax: "public String generateUserDelegationSas(BlobServiceSasSignatureValues blobServiceSasSignatureValues, UserDelegationKey userDelegationKey, String accountName, Context context)" desc: "Generates a user delegation SAS for the container using the specified .\n\nSee for more information on how to construct a user delegation SAS.\n\n**Code Samples**\n\n```java\nOffsetDateTime myExpiryTime = OffsetDateTime.now().plusDays(1);\n BlobContainerSasPermission myPermission = new BlobContainerSasPermission().setReadPermission(true);\n\n BlobServiceSasSignatureValues myValues = new BlobServiceSasSignatureValues(expiryTime, permission)\n .setStartTime(OffsetDateTime.now());\n\n client.generateUserDelegationSas(values, userDelegationKey, accountName, new Context(\"key\", \"value\"));\n```" returns: description: "A String representing the SAS query parameters." type: "String" - uid: "com.azure.storage.blob.BlobContainerClient.getAccessPolicy()" fullName: "com.azure.storage.blob.BlobContainerClient.getAccessPolicy()" name: "getAccessPolicy()" nameWithType: "BlobContainerClient.getAccessPolicy()" summary: "Returns the container's permissions." syntax: "public BlobContainerAccessPolicies getAccessPolicy()" desc: "Returns the container's permissions. The permissions indicate whether container's blobs may be accessed publicly. For more information, see the [Azure Docs][].\n\n**Code Samples**\n\n```java\nBlobContainerAccessPolicies accessPolicies = client.getAccessPolicy();\n System.out.printf(\"Blob Access Type: %s%n\", accessPolicies.getBlobAccessType());\n\n for (BlobSignedIdentifier identifier : accessPolicies.getIdentifiers()) {\n System.out.printf(\"Identifier Name: %s, Permissions %s%n\",\n identifier.getId(),\n identifier.getAccessPolicy().getPermissions());\n }\n```\n\n\n[Azure Docs]: https://docs.microsoft.com/rest/api/storageservices/get-container-acl" returns: description: "The container access policy." type: "" - uid: "com.azure.storage.blob.BlobContainerClient.getAccessPolicyWithResponse(java.lang.String,java.time.Duration,com.azure.core.util.Context)" fullName: "com.azure.storage.blob.BlobContainerClient.getAccessPolicyWithResponse(String leaseId, Duration timeout, Context context)" name: "getAccessPolicyWithResponse(String leaseId, Duration timeout, Context context)" nameWithType: "BlobContainerClient.getAccessPolicyWithResponse(String leaseId, Duration timeout, Context context)" summary: "Returns the container's permissions." parameters: - description: "The lease ID the active lease on the container must match." name: "leaseId" type: "String" - description: "An optional timeout value beyond which a will be raised." name: "timeout" type: "Duration" - description: "Additional context that is passed through the Http pipeline during the service call." name: "context" type: "" syntax: "public Response getAccessPolicyWithResponse(String leaseId, Duration timeout, Context context)" desc: "Returns the container's permissions. The permissions indicate whether container's blobs may be accessed publicly. For more information, see the [Azure Docs][].\n\n**Code Samples**\n\n```java\nContext context = new Context(\"Key\", \"Value\");\n BlobContainerAccessPolicies accessPolicies = client.getAccessPolicyWithResponse(leaseId, timeout, context)\n .getValue();\n System.out.printf(\"Blob Access Type: %s%n\", accessPolicies.getBlobAccessType());\n\n for (BlobSignedIdentifier identifier : accessPolicies.getIdentifiers()) {\n System.out.printf(\"Identifier Name: %s, Permissions %s%n\",\n identifier.getId(),\n identifier.getAccessPolicy().getPermissions());\n }\n```\n\n\n[Azure Docs]: https://docs.microsoft.com/rest/api/storageservices/get-container-acl" returns: description: "The container access policy." type: "<>" - uid: "com.azure.storage.blob.BlobContainerClient.getAccountInfo(java.time.Duration)" fullName: "com.azure.storage.blob.BlobContainerClient.getAccountInfo(Duration timeout)" name: "getAccountInfo(Duration timeout)" nameWithType: "BlobContainerClient.getAccountInfo(Duration timeout)" summary: "Returns the sku name and account kind for the account." parameters: - description: "An optional timeout value beyond which a will be raised.\n\n

Code Samples

\n\n \n
\n StorageAccountInfo accountInfo = client.getAccountInfo(timeout);\n System.out.printf("Account Kind: %s, SKU: %s%n", accountInfo.getAccountKind(), accountInfo.getSkuName());\n 
\n " name: "timeout" type: "Duration" syntax: "public StorageAccountInfo getAccountInfo(Duration timeout)" desc: "Returns the sku name and account kind for the account. For more information, please see the [Azure Docs][].\n\n\n[Azure Docs]: https://docs.microsoft.com/rest/api/storageservices/get-account-information" returns: description: "The account info." type: "" - uid: "com.azure.storage.blob.BlobContainerClient.getAccountInfoWithResponse(java.time.Duration,com.azure.core.util.Context)" fullName: "com.azure.storage.blob.BlobContainerClient.getAccountInfoWithResponse(Duration timeout, Context context)" name: "getAccountInfoWithResponse(Duration timeout, Context context)" nameWithType: "BlobContainerClient.getAccountInfoWithResponse(Duration timeout, Context context)" summary: "Returns the sku name and account kind for the account." parameters: - description: "An optional timeout value beyond which a will be raised." name: "timeout" type: "Duration" - description: "Additional context that is passed through the Http pipeline during the service call." name: "context" type: "" syntax: "public Response getAccountInfoWithResponse(Duration timeout, Context context)" desc: "Returns the sku name and account kind for the account. For more information, please see the [Azure Docs][].\n\n**Code Samples**\n\n```java\nContext context = new Context(\"Key\", \"Value\");\n StorageAccountInfo accountInfo = client.getAccountInfoWithResponse(timeout, context).getValue();\n System.out.printf(\"Account Kind: %s, SKU: %s%n\", accountInfo.getAccountKind(), accountInfo.getSkuName());\n```\n\n\n[Azure Docs]: https://docs.microsoft.com/rest/api/storageservices/get-account-information" returns: description: "The account info." type: "<>" - uid: "com.azure.storage.blob.BlobContainerClient.getAccountName()" fullName: "com.azure.storage.blob.BlobContainerClient.getAccountName()" name: "getAccountName()" nameWithType: "BlobContainerClient.getAccountName()" summary: "Get associated account name." syntax: "public String getAccountName()" desc: "Get associated account name." returns: description: "account name associated with this storage resource." type: "String" - uid: "com.azure.storage.blob.BlobContainerClient.getAccountUrl()" fullName: "com.azure.storage.blob.BlobContainerClient.getAccountUrl()" name: "getAccountUrl()" nameWithType: "BlobContainerClient.getAccountUrl()" summary: "Get the url of the storage account." syntax: "public String getAccountUrl()" desc: "Get the url of the storage account." returns: description: "the URL of the storage account" type: "String" - uid: "com.azure.storage.blob.BlobContainerClient.getBlobClient(java.lang.String)" fullName: "com.azure.storage.blob.BlobContainerClient.getBlobClient(String blobName)" name: "getBlobClient(String blobName)" nameWithType: "BlobContainerClient.getBlobClient(String blobName)" summary: "Initializes a new BlobClient object by concatenating blobName to the end of ContainerAsyncClient's URL." parameters: - description: "A String representing the name of the blob. If the blob name contains special characters,\n pass in the url encoded version of the blob name.\n\n

Code Samples

\n\n \n
\n BlobClient blobClient = client.getBlobClient(blobName);\n 
\n " name: "blobName" type: "String" syntax: "public BlobClient getBlobClient(String blobName)" desc: "Initializes a new BlobClient object by concatenating blobName to the end of ContainerAsyncClient's URL. The new BlobClient uses the same request policy pipeline as the ContainerAsyncClient." returns: description: "A new object which references the blob with the specified name in this container." type: "" - uid: "com.azure.storage.blob.BlobContainerClient.getBlobClient(java.lang.String,java.lang.String)" fullName: "com.azure.storage.blob.BlobContainerClient.getBlobClient(String blobName, String snapshot)" name: "getBlobClient(String blobName, String snapshot)" nameWithType: "BlobContainerClient.getBlobClient(String blobName, String snapshot)" summary: "Initializes a new BlobClient object by concatenating blobName to the end of ContainerAsyncClient's URL." parameters: - description: "A String representing the name of the blob. If the blob name contains special characters,\n pass in the url encoded version of the blob name." name: "blobName" type: "String" - description: "the snapshot identifier for the blob." name: "snapshot" type: "String" syntax: "public BlobClient getBlobClient(String blobName, String snapshot)" desc: "Initializes a new BlobClient object by concatenating blobName to the end of ContainerAsyncClient's URL. The new BlobClient uses the same request policy pipeline as the ContainerAsyncClient.\n\n**Code Samples**\n\n```java\nBlobClient blobClient = client.getBlobClient(blobName, snapshot);\n```" returns: description: "A new object which references the blob with the specified name in this container." type: "" - uid: "com.azure.storage.blob.BlobContainerClient.getBlobContainerName()" fullName: "com.azure.storage.blob.BlobContainerClient.getBlobContainerName()" name: "getBlobContainerName()" nameWithType: "BlobContainerClient.getBlobContainerName()" summary: "Get the container name." syntax: "public String getBlobContainerName()" desc: "Get the container name.\n\n**Code Samples**\n\n```java\nString containerName = client.getBlobContainerName();\n System.out.println(\"The name of the blob is \" + containerName);\n```" returns: description: "The name of container." type: "String" - uid: "com.azure.storage.blob.BlobContainerClient.getBlobContainerUrl()" fullName: "com.azure.storage.blob.BlobContainerClient.getBlobContainerUrl()" name: "getBlobContainerUrl()" nameWithType: "BlobContainerClient.getBlobContainerUrl()" summary: "Gets the URL of the container represented by this client." syntax: "public String getBlobContainerUrl()" desc: "Gets the URL of the container represented by this client." returns: description: "the URL." type: "String" - uid: "com.azure.storage.blob.BlobContainerClient.getBlobVersionClient(java.lang.String,java.lang.String)" fullName: "com.azure.storage.blob.BlobContainerClient.getBlobVersionClient(String blobName, String versionId)" name: "getBlobVersionClient(String blobName, String versionId)" nameWithType: "BlobContainerClient.getBlobVersionClient(String blobName, String versionId)" summary: "Initializes a new BlobClient object by concatenating blobName to the end of ContainerAsyncClient's URL." parameters: - description: "A String representing the name of the blob. If the blob name contains special characters,\n pass in the url encoded version of the blob name." name: "blobName" type: "String" - description: "the version identifier for the blob, pass null to interact with the latest blob version." name: "versionId" type: "String" syntax: "public BlobClient getBlobVersionClient(String blobName, String versionId)" desc: "Initializes a new BlobClient object by concatenating blobName to the end of ContainerAsyncClient's URL. The new BlobClient uses the same request policy pipeline as the ContainerAsyncClient." returns: description: "A new object which references the blob with the specified name in this container." type: "" - uid: "com.azure.storage.blob.BlobContainerClient.getCustomerProvidedKey()" fullName: "com.azure.storage.blob.BlobContainerClient.getCustomerProvidedKey()" name: "getCustomerProvidedKey()" nameWithType: "BlobContainerClient.getCustomerProvidedKey()" summary: "Gets the associated with this client that will be passed to when is called." syntax: "public CpkInfo getCustomerProvidedKey()" desc: "Gets the associated with this client that will be passed to when is called." returns: description: "the customer provided key used for encryption." type: "" - uid: "com.azure.storage.blob.BlobContainerClient.getEncryptionScope()" fullName: "com.azure.storage.blob.BlobContainerClient.getEncryptionScope()" name: "getEncryptionScope()" nameWithType: "BlobContainerClient.getEncryptionScope()" summary: "Gets the `encryption scope` used to encrypt this blob's content on the server." syntax: "public String getEncryptionScope()" desc: "Gets the `encryption scope` used to encrypt this blob's content on the server." returns: description: "the encryption scope used for encryption." type: "String" - uid: "com.azure.storage.blob.BlobContainerClient.getHttpPipeline()" fullName: "com.azure.storage.blob.BlobContainerClient.getHttpPipeline()" name: "getHttpPipeline()" nameWithType: "BlobContainerClient.getHttpPipeline()" summary: "Gets the powering this client." syntax: "public HttpPipeline getHttpPipeline()" desc: "Gets the powering this client." returns: description: "The pipeline." type: "" - uid: "com.azure.storage.blob.BlobContainerClient.getProperties()" fullName: "com.azure.storage.blob.BlobContainerClient.getProperties()" name: "getProperties()" nameWithType: "BlobContainerClient.getProperties()" summary: "Returns the container's metadata and system properties." syntax: "public BlobContainerProperties getProperties()" desc: "Returns the container's metadata and system properties. For more information, see the [Azure Docs][].\n\n**Code Samples**\n\n```java\nBlobContainerProperties properties = client.getProperties();\n System.out.printf(\"Public Access Type: %s, Legal Hold? %b, Immutable? %b%n\",\n properties.getBlobPublicAccess(),\n properties.hasLegalHold(),\n properties.hasImmutabilityPolicy());\n```\n\n\n[Azure Docs]: https://docs.microsoft.com/rest/api/storageservices/get-container-metadata" returns: description: "The container properties." type: "" - uid: "com.azure.storage.blob.BlobContainerClient.getPropertiesWithResponse(java.lang.String,java.time.Duration,com.azure.core.util.Context)" fullName: "com.azure.storage.blob.BlobContainerClient.getPropertiesWithResponse(String leaseId, Duration timeout, Context context)" name: "getPropertiesWithResponse(String leaseId, Duration timeout, Context context)" nameWithType: "BlobContainerClient.getPropertiesWithResponse(String leaseId, Duration timeout, Context context)" summary: "Returns the container's metadata and system properties." parameters: - description: "The lease ID the active lease on the container must match." name: "leaseId" type: "String" - description: "An optional timeout value beyond which a will be raised." name: "timeout" type: "Duration" - description: "Additional context that is passed through the Http pipeline during the service call." name: "context" type: "" syntax: "public Response getPropertiesWithResponse(String leaseId, Duration timeout, Context context)" desc: "Returns the container's metadata and system properties. For more information, see the [Azure Docs][].\n\n**Code Samples**\n\n```java\nContext context = new Context(\"Key\", \"Value\");\n\n BlobContainerProperties properties = client.getPropertiesWithResponse(leaseId, timeout, context)\n .getValue();\n System.out.printf(\"Public Access Type: %s, Legal Hold? %b, Immutable? %b%n\",\n properties.getBlobPublicAccess(),\n properties.hasLegalHold(),\n properties.hasImmutabilityPolicy());\n```\n\n\n[Azure Docs]: https://docs.microsoft.com/rest/api/storageservices/get-container-metadata" returns: description: "The container properties." type: "<>" - uid: "com.azure.storage.blob.BlobContainerClient.getServiceClient()" fullName: "com.azure.storage.blob.BlobContainerClient.getServiceClient()" name: "getServiceClient()" nameWithType: "BlobContainerClient.getServiceClient()" summary: "Get a client pointing to the account." syntax: "public BlobServiceClient getServiceClient()" desc: "Get a client pointing to the account." returns: description: "" type: "" - uid: "com.azure.storage.blob.BlobContainerClient.getServiceVersion()" fullName: "com.azure.storage.blob.BlobContainerClient.getServiceVersion()" name: "getServiceVersion()" nameWithType: "BlobContainerClient.getServiceVersion()" summary: "Gets the service version the client is using." syntax: "public BlobServiceVersion getServiceVersion()" desc: "Gets the service version the client is using." returns: description: "the service version the client is using." type: "" - uid: "com.azure.storage.blob.BlobContainerClient.listBlobs()" fullName: "com.azure.storage.blob.BlobContainerClient.listBlobs()" name: "listBlobs()" nameWithType: "BlobContainerClient.listBlobs()" summary: "Returns a lazy loaded list of blobs in this container, with folder structures flattened." syntax: "public PagedIterable listBlobs()" desc: "Returns a lazy loaded list of blobs in this container, with folder structures flattened. The returned can be consumed through while new items are automatically retrieved as needed.\n\nBlob names are returned in lexicographic order.\n\nFor more information, see the [Azure Docs][].\n\n**Code Samples**\n\n```java\nclient.listBlobs().forEach(blob ->\n System.out.printf(\"Name: %s, Directory? %b%n\", blob.getName(), blob.isPrefix()));\n```\n\n\n[Azure Docs]: https://docs.microsoft.com/rest/api/storageservices/list-blobs" returns: description: "The listed blobs, flattened." type: "<>" - uid: "com.azure.storage.blob.BlobContainerClient.listBlobs(com.azure.storage.blob.models.ListBlobsOptions,java.lang.String,java.time.Duration)" fullName: "com.azure.storage.blob.BlobContainerClient.listBlobs(ListBlobsOptions options, String continuationToken, Duration timeout)" name: "listBlobs(ListBlobsOptions options, String continuationToken, Duration timeout)" nameWithType: "BlobContainerClient.listBlobs(ListBlobsOptions options, String continuationToken, Duration timeout)" summary: "Returns a lazy loaded list of blobs in this container, with folder structures flattened." parameters: - description: ". If iterating by page, the page size passed to byPage methods such as\n will be preferred over the value set on these options." name: "options" type: "" - description: "Identifies the portion of the list to be returned with the next list operation." name: "continuationToken" type: "String" - description: "An optional timeout value beyond which a will be raised." name: "timeout" type: "Duration" syntax: "public PagedIterable listBlobs(ListBlobsOptions options, String continuationToken, Duration timeout)" desc: "Returns a lazy loaded list of blobs in this container, with folder structures flattened. The returned can be consumed through while new items are automatically retrieved as needed.\n\nBlob names are returned in lexicographic order.\n\nFor more information, see the [Azure Docs][].\n\n**Code Samples**\n\n```java\nListBlobsOptions options = new ListBlobsOptions()\n .setPrefix(\"prefixToMatch\")\n .setDetails(new BlobListDetails()\n .setRetrieveDeletedBlobs(true)\n .setRetrieveSnapshots(true));\n\n String continuationToken = \"continuationToken\";\n\n client.listBlobs(options, continuationToken, timeout).forEach(blob ->\n System.out.printf(\"Name: %s, Directory? %b, Deleted? %b, Snapshot ID: %s%n\",\n blob.getName(),\n blob.isPrefix(),\n blob.isDeleted(),\n blob.getSnapshot()));\n```\n\n\n[Azure Docs]: https://docs.microsoft.com/rest/api/storageservices/list-blobs" returns: description: "The listed blobs, flattened." type: "<>" - uid: "com.azure.storage.blob.BlobContainerClient.listBlobs(com.azure.storage.blob.models.ListBlobsOptions,java.time.Duration)" fullName: "com.azure.storage.blob.BlobContainerClient.listBlobs(ListBlobsOptions options, Duration timeout)" name: "listBlobs(ListBlobsOptions options, Duration timeout)" nameWithType: "BlobContainerClient.listBlobs(ListBlobsOptions options, Duration timeout)" summary: "Returns a lazy loaded list of blobs in this container, with folder structures flattened." parameters: - description: ". If iterating by page, the page size passed to byPage methods such as\n will be preferred over the value set on these options." name: "options" type: "" - description: "An optional timeout value beyond which a will be raised." name: "timeout" type: "Duration" syntax: "public PagedIterable listBlobs(ListBlobsOptions options, Duration timeout)" desc: "Returns a lazy loaded list of blobs in this container, with folder structures flattened. The returned can be consumed through while new items are automatically retrieved as needed.\n\nBlob names are returned in lexicographic order.\n\nFor more information, see the [Azure Docs][].\n\n**Code Samples**\n\n```java\nListBlobsOptions options = new ListBlobsOptions()\n .setPrefix(\"prefixToMatch\")\n .setDetails(new BlobListDetails()\n .setRetrieveDeletedBlobs(true)\n .setRetrieveSnapshots(true));\n\n client.listBlobs(options, timeout).forEach(blob ->\n System.out.printf(\"Name: %s, Directory? %b, Deleted? %b, Snapshot ID: %s%n\",\n blob.getName(),\n blob.isPrefix(),\n blob.isDeleted(),\n blob.getSnapshot()));\n```\n\n\n[Azure Docs]: https://docs.microsoft.com/rest/api/storageservices/list-blobs" returns: description: "The listed blobs, flattened." type: "<>" - uid: "com.azure.storage.blob.BlobContainerClient.listBlobsByHierarchy(java.lang.String)" fullName: "com.azure.storage.blob.BlobContainerClient.listBlobsByHierarchy(String directory)" name: "listBlobsByHierarchy(String directory)" nameWithType: "BlobContainerClient.listBlobsByHierarchy(String directory)" summary: "Returns a reactive Publisher emitting all the blobs and directories (prefixes) under the given directory (prefix)." parameters: - description: "The directory to list blobs underneath" name: "directory" type: "String" syntax: "public PagedIterable listBlobsByHierarchy(String directory)" desc: "Returns a reactive Publisher emitting all the blobs and directories (prefixes) under the given directory (prefix). Directories will have set to true.\n\nBlob names are returned in lexicographic order. For more information, see the [Azure Docs][].\n\nE.g. listing a container containing a 'foo' folder, which contains blobs 'foo1' and 'foo2', and a blob on the root level 'bar', will return the following results when prefix=null:\n\n * foo/ (isPrefix = true)\n * bar (isPrefix = false)\n\nwill return the following results when prefix=\"foo/\":\n\n * foo/foo1 (isPrefix = false)\n * foo/foo2 (isPrefix = false)\n\n**Code Samples**\n\n```java\nclient.listBlobsByHierarchy(\"directoryName\").forEach(blob ->\n System.out.printf(\"Name: %s, Directory? %b%n\", blob.getName(), blob.isPrefix()));\n```\n\n\n[Azure Docs]: https://docs.microsoft.com/rest/api/storageservices/list-blobs" returns: description: "A reactive response emitting the prefixes and blobs." type: "<>" - uid: "com.azure.storage.blob.BlobContainerClient.listBlobsByHierarchy(java.lang.String,com.azure.storage.blob.models.ListBlobsOptions,java.time.Duration)" fullName: "com.azure.storage.blob.BlobContainerClient.listBlobsByHierarchy(String delimiter, ListBlobsOptions options, Duration timeout)" name: "listBlobsByHierarchy(String delimiter, ListBlobsOptions options, Duration timeout)" nameWithType: "BlobContainerClient.listBlobsByHierarchy(String delimiter, ListBlobsOptions options, Duration timeout)" summary: "Returns a reactive Publisher emitting all the blobs and prefixes (directories) under the given prefix (directory)." parameters: - description: "The delimiter for blob hierarchy, \"/\" for hierarchy based on directories" name: "delimiter" type: "String" - description: ". If iterating by page, the page size passed to byPage methods such as\n will be preferred over the value set on these options." name: "options" type: "" - description: "An optional timeout value beyond which a will be raised." name: "timeout" type: "Duration" syntax: "public PagedIterable listBlobsByHierarchy(String delimiter, ListBlobsOptions options, Duration timeout)" desc: "Returns a reactive Publisher emitting all the blobs and prefixes (directories) under the given prefix (directory). Directories will have set to true.\n\nBlob names are returned in lexicographic order. For more information, see the [Azure Docs][].\n\nE.g. listing a container containing a 'foo' folder, which contains blobs 'foo1' and 'foo2', and a blob on the root level 'bar', will return the following results when prefix=null:\n\n * foo/ (isPrefix = true)\n * bar (isPrefix = false)\n\nwill return the following results when prefix=\"foo/\":\n\n * foo/foo1 (isPrefix = false)\n * foo/foo2 (isPrefix = false)\n\n**Code Samples**\n\n```java\nListBlobsOptions options = new ListBlobsOptions()\n .setPrefix(\"directoryName\")\n .setDetails(new BlobListDetails()\n .setRetrieveDeletedBlobs(true)\n .setRetrieveSnapshots(false));\n\n client.listBlobsByHierarchy(\"/\", options, timeout).forEach(blob ->\n System.out.printf(\"Name: %s, Directory? %b, Deleted? %b, Snapshot ID: %s%n\",\n blob.getName(),\n blob.isPrefix(),\n blob.isDeleted(),\n blob.getSnapshot()));\n```\n\n\n[Azure Docs]: https://docs.microsoft.com/rest/api/storageservices/list-blobs" returns: description: "A reactive response emitting the prefixes and blobs." type: "<>" - uid: "com.azure.storage.blob.BlobContainerClient.setAccessPolicy(com.azure.storage.blob.models.PublicAccessType,java.util.List)" fullName: "com.azure.storage.blob.BlobContainerClient.setAccessPolicy(PublicAccessType accessType, List identifiers)" name: "setAccessPolicy(PublicAccessType accessType, List identifiers)" nameWithType: "BlobContainerClient.setAccessPolicy(PublicAccessType accessType, List identifiers)" summary: "Sets the container's permissions." parameters: - description: "Specifies how the data in this container is available to the public. See the\n x-ms-blob-public-access header in the Azure Docs for more information. Pass null for no public access." name: "accessType" type: "" - description: "A list of objects that specify the permissions for the container.\n Please see\n here\n for more information. Passing null will clear all access policies." name: "identifiers" type: "List<>" syntax: "public void setAccessPolicy(PublicAccessType accessType, List identifiers)" desc: "Sets the container's permissions. The permissions indicate whether blobs in a container may be accessed publicly. Note that, for each signed identifier, we will truncate the start and expiry times to the nearest second to ensure the time formatting is compatible with the service. For more information, see the [Azure Docs][].\n\n**Code Samples**\n\n```java\nBlobSignedIdentifier identifier = new BlobSignedIdentifier()\n .setId(\"name\")\n .setAccessPolicy(new BlobAccessPolicy()\n .setStartsOn(OffsetDateTime.now())\n .setExpiresOn(OffsetDateTime.now().plusDays(7))\n .setPermissions(\"permissionString\"));\n\n try {\n client.setAccessPolicy(PublicAccessType.CONTAINER, Collections.singletonList(identifier));\n System.out.printf(\"Set Access Policy completed %n\");\n } catch (UnsupportedOperationException error) {\n System.out.printf(\"Set Access Policy completed %s%n\", error);\n }\n```\n\n\n[Azure Docs]: https://docs.microsoft.com/rest/api/storageservices/set-container-acl" - uid: "com.azure.storage.blob.BlobContainerClient.setAccessPolicyWithResponse(com.azure.storage.blob.models.PublicAccessType,java.util.List,com.azure.storage.blob.models.BlobRequestConditions,java.time.Duration,com.azure.core.util.Context)" fullName: "com.azure.storage.blob.BlobContainerClient.setAccessPolicyWithResponse(PublicAccessType accessType, List identifiers, BlobRequestConditions requestConditions, Duration timeout, Context context)" name: "setAccessPolicyWithResponse(PublicAccessType accessType, List identifiers, BlobRequestConditions requestConditions, Duration timeout, Context context)" nameWithType: "BlobContainerClient.setAccessPolicyWithResponse(PublicAccessType accessType, List identifiers, BlobRequestConditions requestConditions, Duration timeout, Context context)" summary: "Sets the container's permissions." parameters: - description: "Specifies how the data in this container is available to the public. See the\n x-ms-blob-public-access header in the Azure Docs for more information. Pass null for no public access." name: "accessType" type: "" - description: "A list of objects that specify the permissions for the container.\n Please see\n here\n for more information. Passing null will clear all access policies." name: "identifiers" type: "List<>" - description: "" name: "requestConditions" type: "" - description: "An optional timeout value beyond which a will be raised." name: "timeout" type: "Duration" - description: "Additional context that is passed through the Http pipeline during the service call." name: "context" type: "" syntax: "public Response setAccessPolicyWithResponse(PublicAccessType accessType, List identifiers, BlobRequestConditions requestConditions, Duration timeout, Context context)" desc: "Sets the container's permissions. The permissions indicate whether blobs in a container may be accessed publicly. Note that, for each signed identifier, we will truncate the start and expiry times to the nearest second to ensure the time formatting is compatible with the service. For more information, see the [Azure Docs][].\n\n**Code Samples**\n\n```java\nBlobSignedIdentifier identifier = new BlobSignedIdentifier()\n .setId(\"name\")\n .setAccessPolicy(new BlobAccessPolicy()\n .setStartsOn(OffsetDateTime.now())\n .setExpiresOn(OffsetDateTime.now().plusDays(7))\n .setPermissions(\"permissionString\"));\n\n BlobRequestConditions requestConditions = new BlobRequestConditions()\n .setLeaseId(leaseId)\n .setIfUnmodifiedSince(OffsetDateTime.now().minusDays(3));\n\n Context context = new Context(\"Key\", \"Value\");\n\n System.out.printf(\"Set access policy completed with status %d%n\",\n client.setAccessPolicyWithResponse(PublicAccessType.CONTAINER,\n Collections.singletonList(identifier),\n requestConditions,\n timeout,\n context).getStatusCode());\n```\n\n\n[Azure Docs]: https://docs.microsoft.com/rest/api/storageservices/set-container-acl" returns: description: "A response containing status code and HTTP headers" type: "<Void>" - uid: "com.azure.storage.blob.BlobContainerClient.setMetadata(java.util.Map)" fullName: "com.azure.storage.blob.BlobContainerClient.setMetadata(Map metadata)" name: "setMetadata(Map metadata)" nameWithType: "BlobContainerClient.setMetadata(Map metadata)" summary: "Sets the container's metadata." parameters: - description: "Metadata to associate with the container. If there is leading or trailing whitespace in any\n metadata key or value, it must be removed or encoded." name: "metadata" type: "Map<String,String>" syntax: "public void setMetadata(Map metadata)" desc: "Sets the container's metadata. For more information, see the [Azure Docs][].\n\n**Code Samples**\n\n```java\nMap metadata = Collections.singletonMap(\"metadata\", \"value\");\n try {\n client.setMetadata(metadata);\n System.out.printf(\"Set metadata completed with status %n\");\n } catch (UnsupportedOperationException error) {\n System.out.printf(\"Fail while setting metadata %n\");\n }\n```\n\n\n[Azure Docs]: https://docs.microsoft.com/rest/api/storageservices/set-container-metadata" - uid: "com.azure.storage.blob.BlobContainerClient.setMetadataWithResponse(java.util.Map,com.azure.storage.blob.models.BlobRequestConditions,java.time.Duration,com.azure.core.util.Context)" fullName: "com.azure.storage.blob.BlobContainerClient.setMetadataWithResponse(Map metadata, BlobRequestConditions requestConditions, Duration timeout, Context context)" name: "setMetadataWithResponse(Map metadata, BlobRequestConditions requestConditions, Duration timeout, Context context)" nameWithType: "BlobContainerClient.setMetadataWithResponse(Map metadata, BlobRequestConditions requestConditions, Duration timeout, Context context)" summary: "Sets the container's metadata." parameters: - description: "Metadata to associate with the container. If there is leading or trailing whitespace in any\n metadata key or value, it must be removed or encoded." name: "metadata" type: "Map<String,String>" - description: "" name: "requestConditions" type: "" - description: "An optional timeout value beyond which a will be raised." name: "timeout" type: "Duration" - description: "Additional context that is passed through the Http pipeline during the service call." name: "context" type: "" syntax: "public Response setMetadataWithResponse(Map metadata, BlobRequestConditions requestConditions, Duration timeout, Context context)" desc: "Sets the container's metadata. For more information, see the [Azure Docs][].\n\n**Code Samples**\n\n```java\nMap metadata = Collections.singletonMap(\"metadata\", \"value\");\n BlobRequestConditions requestConditions = new BlobRequestConditions()\n .setLeaseId(leaseId)\n .setIfUnmodifiedSince(OffsetDateTime.now().minusDays(3));\n Context context = new Context(\"Key\", \"Value\");\n\n System.out.printf(\"Set metadata completed with status %d%n\",\n client.setMetadataWithResponse(metadata, requestConditions, timeout, context).getStatusCode());\n```\n\n\n[Azure Docs]: https://docs.microsoft.com/rest/api/storageservices/set-container-metadata" returns: description: "A response containing status code and HTTP headers" type: "<Void>" type: "class" desc: "Client to a container. It may only be instantiated through a or via the method . This class does not hold any state about a particular container but is instead a convenient way of sending off appropriate requests to the resource on the service. It may also be used to construct URLs to blobs.\n\nThis client contains operations on a container. Operations on a blob are available on through , and operations on the service are available on .\n\nPlease refer to the [Azure Docs][] for more information on containers.\n\n\n[Azure Docs]: https://docs.microsoft.com/azure/storage/blobs/storage-blobs-introduction" metadata: {} package: "com.azure.storage.blob" artifact: com.azure:azure-storage-blob:12.27.1