Class AzureBlobBucketOperations

java.lang.Object
io.micronaut.objectstorage.azure.AzureBlobBucketOperations
All Implemented Interfaces:
BucketOperations<com.azure.storage.blob.models.BlobContainerProperties>

@EachBean(com.azure.storage.blob.BlobServiceClient.class) public class AzureBlobBucketOperations extends Object implements BucketOperations<com.azure.storage.blob.models.BlobContainerProperties>
Azure bucket operations.
Since:
3.0.0
Author:
Álvaro Sánchez-Mariscal
  • Constructor Details

    • AzureBlobBucketOperations

      public AzureBlobBucketOperations(com.azure.storage.blob.BlobServiceClient blobServiceClient)
  • Method Details

    • create

      public void create(@NonNull String name)
      Description copied from interface: BucketOperations
      Create a new bucket with the given name.
      Specified by:
      create in interface BucketOperations<com.azure.storage.blob.models.BlobContainerProperties>
      Parameters:
      name - The name of the new bucket
    • retrieve

      public Optional<BucketEntry<com.azure.storage.blob.models.BlobContainerProperties>> retrieve(@NonNull String name)
      Description copied from interface: BucketOperations
      Retrieve an existing bucket/container.
      Specified by:
      retrieve in interface BucketOperations<com.azure.storage.blob.models.BlobContainerProperties>
      Parameters:
      name - The name of the bucket
      Returns:
      The provider-native bucket/container data if it exists.
    • delete

      public void delete(@NonNull String name)
      Description copied from interface: BucketOperations
      Delete a bucket/container with the given name.
      Specified by:
      delete in interface BucketOperations<com.azure.storage.blob.models.BlobContainerProperties>
      Parameters:
      name - The name of the bucket/container.