Package 

Interface S3Bucket

  • All Implemented Interfaces:

    
    public interface S3Bucket
    
                        

    S3 Bucket API Wrapper

    Wraps the implementation specific operations on an S3 bucket.

    • Constructor Detail

    • Method Detail

      • delete

         abstract Unit delete()

        Deletes this bucket.

      • delete

         abstract Unit delete(Function1<BucketDeleteParams, Unit> action)

        Deletes this bucket with the operation configured by the given action.

        Parameters:
        action - Action used to configure the S3 operation.
      • delete

         abstract Unit delete(BucketDeleteParams params)

        Deletes this bucket with the operation configured by the given params.

        Parameters:
        params - S3 operation parameters.
      • deleteRecursive

         abstract Unit deleteRecursive()

        Recursively deletes this bucket and all its contents.

        This operation happens in 3 phases which can be configured independently using the RecursiveBucketDeleteParams class. The 3 phases are:

        • Fetch a list of all the objects in the bucket.

        • Delete all the objects from the bucket.

        • Delete the bucket itself.

      • deleteRecursive

         abstract Unit deleteRecursive(Function1<RecursiveBucketDeleteParams, Unit> action)

        Recursively deletes this bucket and all its contents with the operation configured by the given action.

        This operation happens in 3 phases which can be configured independently using the RecursiveBucketDeleteParams class. The 3 phases are:

        • Fetch a list of all the objects in the bucket.

        • Delete all the objects from the bucket.

        • Delete the bucket itself.

        Parameters:
        action - Action used to configure the S3 operation.
      • deleteRecursive

         abstract Unit deleteRecursive(RecursiveBucketDeleteParams params)

        Recursively deletes this bucket and all its contents with the operation configured by the given params.

        This operation happens in 3 phases which can be configured independently using the RecursiveBucketDeleteParams class. The 3 phases are:

        • Fetch a list of all the objects in the bucket.

        • Delete all the objects from the bucket.

        • Delete the bucket itself.

        Parameters:
        params - S3 operation parameters.
      • getRegion

         abstract String getRegion()

        Region of this bucket.

        This value will be used as a fallback for operations where no region is configured.

        If this value is null and a set of operation parameters also has a null region, no region will be set on the operation.