Interface BucketOperations<T>

Type Parameters:
T - The provider-native bucket/container representation type.
All Known Implementing Classes:
AwsS3BucketOperations, AzureBlobBucketOperations, GoogleCloudBucketOperations

public interface BucketOperations<T>
API for bucket/container lifecycle management.
Since:
3.0.0
Author:
Álvaro Sánchez-Mariscal
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    create(@NonNull String name)
    Create a new bucket with the given name.
    void
    delete(@NonNull String name)
    Delete a bucket/container with the given name.
    default boolean
    exists(@NonNull String name)
    Checks whether a bucket/container exists.
    retrieve(@NonNull String name)
    Retrieve an existing bucket/container.
  • Method Details

    • create

      void create(@NonNull String name)
      Create a new bucket with the given name.
      Parameters:
      name - The name of the new bucket
    • retrieve

      @NonNull Optional<BucketEntry<T>> retrieve(@NonNull String name)
      Retrieve an existing bucket/container.
      Parameters:
      name - The name of the bucket
      Returns:
      The provider-native bucket/container data if it exists.
    • delete

      void delete(@NonNull String name)
      Delete a bucket/container with the given name.
      Parameters:
      name - The name of the bucket/container.
    • exists

      default boolean exists(@NonNull String name)
      Checks whether a bucket/container exists.
      Parameters:
      name - The bucket/container name.
      Returns:
      true if the bucket/container exists.