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 TypeMethodDescriptionvoidCreate a new bucket with the given name.voidDelete a bucket/container with the given name.default booleanChecks whether a bucket/container exists.@NonNull Optional<BucketEntry<T>> Retrieve an existing bucket/container.
-
Method Details
-
create
Create a new bucket with the given name.- Parameters:
name- The name of the new bucket
-
retrieve
Retrieve an existing bucket/container.- Parameters:
name- The name of the bucket- Returns:
- The provider-native bucket/container data if it exists.
-
delete
Delete a bucket/container with the given name.- Parameters:
name- The name of the bucket/container.
-
exists
Checks whether a bucket/container exists.- Parameters:
name- The bucket/container name.- Returns:
trueif the bucket/container exists.
-