Class AwsBlobClient
- java.lang.Object
-
- com.salesforce.multicloudj.blob.driver.AbstractBlobClient<AwsBlobClient>
-
- com.salesforce.multicloudj.blob.aws.AwsBlobClient
-
- All Implemented Interfaces:
Provider
,SdkService
public class AwsBlobClient extends AbstractBlobClient<AwsBlobClient>
An implementation of theAbstractBlobClient
for AWS S3. AwsBlobClient is service client for interacting with AWS Cloud Blob Storage.This class provides methods to interact with AWS resources using AWS SDK for Java to interact with the S3 service.
- See Also:
AbstractBlobClient
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AwsBlobClient.Builder
-
Field Summary
-
Fields inherited from class com.salesforce.multicloudj.blob.driver.AbstractBlobClient
credentialsOverrider, region
-
-
Constructor Summary
Constructors Constructor Description AwsBlobClient(AwsBlobClient.Builder builder)
Constructs an instance ofAwsBlobClient
using the provided builder and S3 client.AwsBlobClient(AwsBlobClient.Builder builder, software.amazon.awssdk.services.s3.S3Client s3Client)
Constructs an instance ofAwsBlobClient
using the provided builder and S3 client.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AwsBlobClient.Builder
builder()
Returns a new instance ofAwsBlobClient.Builder
.protected ListBucketsResponse
doListBuckets()
Lists all the buckets in the current region for this authenticated account.Class<? extends SubstrateSdkException>
getException(Throwable t)
Returns the appropriate exception class based on the given throwable.-
Methods inherited from class com.salesforce.multicloudj.blob.driver.AbstractBlobClient
getProviderId, listBuckets
-
-
-
-
Constructor Detail
-
AwsBlobClient
public AwsBlobClient(AwsBlobClient.Builder builder)
Constructs an instance ofAwsBlobClient
using the provided builder and S3 client.- Parameters:
builder
- the builder used to configure this client.
-
AwsBlobClient
public AwsBlobClient(AwsBlobClient.Builder builder, software.amazon.awssdk.services.s3.S3Client s3Client)
Constructs an instance ofAwsBlobClient
using the provided builder and S3 client.- Parameters:
builder
- the builder used to configure this client.s3Client
- the S3 client used to communicate with the S3 service.
-
-
Method Detail
-
doListBuckets
protected ListBucketsResponse doListBuckets()
Lists all the buckets in the current region for this authenticated account.- Specified by:
doListBuckets
in classAbstractBlobClient<AwsBlobClient>
- Returns:
- a
ListBucketsResponse
containing a list ofBucketInfo
objects representing the buckets in the current region for this account.
-
builder
public AwsBlobClient.Builder builder()
Returns a new instance ofAwsBlobClient.Builder
.- Returns:
- a new instance of
AwsBlobClient.Builder
.
-
getException
public Class<? extends SubstrateSdkException> getException(Throwable t)
Returns the appropriate exception class based on the given throwable.- Parameters:
t
- The Throwable to be mapped.- Returns:
- The Class of the corresponding SubstrateSdkException.
-
-