@Generated(value="software.amazon.awssdk:codegen") public interface S3Client extends SdkClient, SdkAutoCloseable
builder() method.
null| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_NAME |
| Modifier and Type | Method and Description |
|---|---|
default AbortMultipartUploadResponse |
abortMultipartUpload(AbortMultipartUploadRequest abortMultipartUploadRequest)
Aborts a multipart upload.
|
default AbortMultipartUploadResponse |
abortMultipartUpload(Consumer<AbortMultipartUploadRequest.Builder> abortMultipartUploadRequest)
Aborts a multipart upload.
|
static S3ClientBuilder |
builder()
Create a builder that can be used to configure and create a
S3Client. |
default CompleteMultipartUploadResponse |
completeMultipartUpload(CompleteMultipartUploadRequest completeMultipartUploadRequest)
Completes a multipart upload by assembling previously uploaded parts.
|
default CompleteMultipartUploadResponse |
completeMultipartUpload(Consumer<CompleteMultipartUploadRequest.Builder> completeMultipartUploadRequest)
Completes a multipart upload by assembling previously uploaded parts.
|
default CopyObjectResponse |
copyObject(Consumer<CopyObjectRequest.Builder> copyObjectRequest)
Creates a copy of an object that is already stored in Amazon S3.
|
default CopyObjectResponse |
copyObject(CopyObjectRequest copyObjectRequest)
Creates a copy of an object that is already stored in Amazon S3.
|
static S3Client |
create()
Create a
S3Client with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from
the DefaultCredentialsProvider. |
default CreateBucketResponse |
createBucket(Consumer<CreateBucketRequest.Builder> createBucketRequest)
Creates a new bucket.
|
default CreateBucketResponse |
createBucket(CreateBucketRequest createBucketRequest)
Creates a new bucket.
|
default CreateMultipartUploadResponse |
createMultipartUpload(Consumer<CreateMultipartUploadRequest.Builder> createMultipartUploadRequest)
Initiates a multipart upload and returns an upload ID.
|
default CreateMultipartUploadResponse |
createMultipartUpload(CreateMultipartUploadRequest createMultipartUploadRequest)
Initiates a multipart upload and returns an upload ID.
|
default DeleteBucketResponse |
deleteBucket(Consumer<DeleteBucketRequest.Builder> deleteBucketRequest)
Deletes the bucket.
|
default DeleteBucketResponse |
deleteBucket(DeleteBucketRequest deleteBucketRequest)
Deletes the bucket.
|
default DeleteBucketAnalyticsConfigurationResponse |
deleteBucketAnalyticsConfiguration(Consumer<DeleteBucketAnalyticsConfigurationRequest.Builder> deleteBucketAnalyticsConfigurationRequest)
Deletes an analytics configuration for the bucket (specified by the analytics configuration ID).
|
default DeleteBucketAnalyticsConfigurationResponse |
deleteBucketAnalyticsConfiguration(DeleteBucketAnalyticsConfigurationRequest deleteBucketAnalyticsConfigurationRequest)
Deletes an analytics configuration for the bucket (specified by the analytics configuration ID).
|
default DeleteBucketCorsResponse |
deleteBucketCors(Consumer<DeleteBucketCorsRequest.Builder> deleteBucketCorsRequest)
Deletes the cors configuration information set for the bucket.
|
default DeleteBucketCorsResponse |
deleteBucketCors(DeleteBucketCorsRequest deleteBucketCorsRequest)
Deletes the cors configuration information set for the bucket.
|
default DeleteBucketInventoryConfigurationResponse |
deleteBucketInventoryConfiguration(Consumer<DeleteBucketInventoryConfigurationRequest.Builder> deleteBucketInventoryConfigurationRequest)
Deletes an inventory configuration (identified by the inventory ID) from the bucket.
|
default DeleteBucketInventoryConfigurationResponse |
deleteBucketInventoryConfiguration(DeleteBucketInventoryConfigurationRequest deleteBucketInventoryConfigurationRequest)
Deletes an inventory configuration (identified by the inventory ID) from the bucket.
|
default DeleteBucketLifecycleResponse |
deleteBucketLifecycle(Consumer<DeleteBucketLifecycleRequest.Builder> deleteBucketLifecycleRequest)
Deletes the lifecycle configuration from the bucket.
|
default DeleteBucketLifecycleResponse |
deleteBucketLifecycle(DeleteBucketLifecycleRequest deleteBucketLifecycleRequest)
Deletes the lifecycle configuration from the bucket.
|
default DeleteBucketMetricsConfigurationResponse |
deleteBucketMetricsConfiguration(Consumer<DeleteBucketMetricsConfigurationRequest.Builder> deleteBucketMetricsConfigurationRequest)
Deletes a metrics configuration (specified by the metrics configuration ID) from the bucket.
|
default DeleteBucketMetricsConfigurationResponse |
deleteBucketMetricsConfiguration(DeleteBucketMetricsConfigurationRequest deleteBucketMetricsConfigurationRequest)
Deletes a metrics configuration (specified by the metrics configuration ID) from the bucket.
|
default DeleteBucketPolicyResponse |
deleteBucketPolicy(Consumer<DeleteBucketPolicyRequest.Builder> deleteBucketPolicyRequest)
Deletes the policy from the bucket.
|
default DeleteBucketPolicyResponse |
deleteBucketPolicy(DeleteBucketPolicyRequest deleteBucketPolicyRequest)
Deletes the policy from the bucket.
|
default DeleteBucketReplicationResponse |
deleteBucketReplication(Consumer<DeleteBucketReplicationRequest.Builder> deleteBucketReplicationRequest)
Deletes the replication configuration from the bucket.
|
default DeleteBucketReplicationResponse |
deleteBucketReplication(DeleteBucketReplicationRequest deleteBucketReplicationRequest)
Deletes the replication configuration from the bucket.
|
default DeleteBucketTaggingResponse |
deleteBucketTagging(Consumer<DeleteBucketTaggingRequest.Builder> deleteBucketTaggingRequest)
Deletes the tags from the bucket.
|
default DeleteBucketTaggingResponse |
deleteBucketTagging(DeleteBucketTaggingRequest deleteBucketTaggingRequest)
Deletes the tags from the bucket.
|
default DeleteBucketWebsiteResponse |
deleteBucketWebsite(Consumer<DeleteBucketWebsiteRequest.Builder> deleteBucketWebsiteRequest)
This operation removes the website configuration from the bucket.
|
default DeleteBucketWebsiteResponse |
deleteBucketWebsite(DeleteBucketWebsiteRequest deleteBucketWebsiteRequest)
This operation removes the website configuration from the bucket.
|
default DeleteObjectResponse |
deleteObject(Consumer<DeleteObjectRequest.Builder> deleteObjectRequest)
Removes the null version (if there is one) of an object and inserts a delete marker, which becomes the latest
version of the object.
|
default DeleteObjectResponse |
deleteObject(DeleteObjectRequest deleteObjectRequest)
Removes the null version (if there is one) of an object and inserts a delete marker, which becomes the latest
version of the object.
|
default DeleteObjectsResponse |
deleteObjects(Consumer<DeleteObjectsRequest.Builder> deleteObjectsRequest)
This operation enables you to delete multiple objects from a bucket using a single HTTP request.
|
default DeleteObjectsResponse |
deleteObjects(DeleteObjectsRequest deleteObjectsRequest)
This operation enables you to delete multiple objects from a bucket using a single HTTP request.
|
default DeleteObjectTaggingResponse |
deleteObjectTagging(Consumer<DeleteObjectTaggingRequest.Builder> deleteObjectTaggingRequest)
Removes the tag-set from an existing object.
|
default DeleteObjectTaggingResponse |
deleteObjectTagging(DeleteObjectTaggingRequest deleteObjectTaggingRequest)
Removes the tag-set from an existing object.
|
default GetBucketAccelerateConfigurationResponse |
getBucketAccelerateConfiguration(Consumer<GetBucketAccelerateConfigurationRequest.Builder> getBucketAccelerateConfigurationRequest)
Returns the accelerate configuration of a bucket.
|
default GetBucketAccelerateConfigurationResponse |
getBucketAccelerateConfiguration(GetBucketAccelerateConfigurationRequest getBucketAccelerateConfigurationRequest)
Returns the accelerate configuration of a bucket.
|
default GetBucketAclResponse |
getBucketAcl(Consumer<GetBucketAclRequest.Builder> getBucketAclRequest)
Gets the access control policy for the bucket.
|
default GetBucketAclResponse |
getBucketAcl(GetBucketAclRequest getBucketAclRequest)
Gets the access control policy for the bucket.
|
default GetBucketAnalyticsConfigurationResponse |
getBucketAnalyticsConfiguration(Consumer<GetBucketAnalyticsConfigurationRequest.Builder> getBucketAnalyticsConfigurationRequest)
Gets an analytics configuration for the bucket (specified by the analytics configuration ID).
|
default GetBucketAnalyticsConfigurationResponse |
getBucketAnalyticsConfiguration(GetBucketAnalyticsConfigurationRequest getBucketAnalyticsConfigurationRequest)
Gets an analytics configuration for the bucket (specified by the analytics configuration ID).
|
default GetBucketCorsResponse |
getBucketCors(Consumer<GetBucketCorsRequest.Builder> getBucketCorsRequest)
Returns the cors configuration for the bucket.
|
default GetBucketCorsResponse |
getBucketCors(GetBucketCorsRequest getBucketCorsRequest)
Returns the cors configuration for the bucket.
|
default GetBucketInventoryConfigurationResponse |
getBucketInventoryConfiguration(Consumer<GetBucketInventoryConfigurationRequest.Builder> getBucketInventoryConfigurationRequest)
Returns an inventory configuration (identified by the inventory ID) from the bucket.
|
default GetBucketInventoryConfigurationResponse |
getBucketInventoryConfiguration(GetBucketInventoryConfigurationRequest getBucketInventoryConfigurationRequest)
Returns an inventory configuration (identified by the inventory ID) from the bucket.
|
default GetBucketLifecycleResponse |
getBucketLifecycle(Consumer<GetBucketLifecycleRequest.Builder> getBucketLifecycleRequest)
Deprecated, see the GetBucketLifecycleConfiguration operation.
|
default GetBucketLifecycleResponse |
getBucketLifecycle(GetBucketLifecycleRequest getBucketLifecycleRequest)
Deprecated, see the GetBucketLifecycleConfiguration operation.
|
default GetBucketLifecycleConfigurationResponse |
getBucketLifecycleConfiguration(Consumer<GetBucketLifecycleConfigurationRequest.Builder> getBucketLifecycleConfigurationRequest)
Returns the lifecycle configuration information set on the bucket.
|
default GetBucketLifecycleConfigurationResponse |
getBucketLifecycleConfiguration(GetBucketLifecycleConfigurationRequest getBucketLifecycleConfigurationRequest)
Returns the lifecycle configuration information set on the bucket.
|
default GetBucketLocationResponse |
getBucketLocation(Consumer<GetBucketLocationRequest.Builder> getBucketLocationRequest)
Returns the region the bucket resides in.
|
default GetBucketLocationResponse |
getBucketLocation(GetBucketLocationRequest getBucketLocationRequest)
Returns the region the bucket resides in.
|
default GetBucketLoggingResponse |
getBucketLogging(Consumer<GetBucketLoggingRequest.Builder> getBucketLoggingRequest)
Returns the logging status of a bucket and the permissions users have to view and modify that status.
|
default GetBucketLoggingResponse |
getBucketLogging(GetBucketLoggingRequest getBucketLoggingRequest)
Returns the logging status of a bucket and the permissions users have to view and modify that status.
|
default GetBucketMetricsConfigurationResponse |
getBucketMetricsConfiguration(Consumer<GetBucketMetricsConfigurationRequest.Builder> getBucketMetricsConfigurationRequest)
Gets a metrics configuration (specified by the metrics configuration ID) from the bucket.
|
default GetBucketMetricsConfigurationResponse |
getBucketMetricsConfiguration(GetBucketMetricsConfigurationRequest getBucketMetricsConfigurationRequest)
Gets a metrics configuration (specified by the metrics configuration ID) from the bucket.
|
default GetBucketNotificationResponse |
getBucketNotification(Consumer<GetBucketNotificationRequest.Builder> getBucketNotificationRequest)
Deprecated, see the GetBucketNotificationConfiguration operation.
|
default GetBucketNotificationResponse |
getBucketNotification(GetBucketNotificationRequest getBucketNotificationRequest)
Deprecated, see the GetBucketNotificationConfiguration operation.
|
default GetBucketNotificationConfigurationResponse |
getBucketNotificationConfiguration(Consumer<GetBucketNotificationConfigurationRequest.Builder> getBucketNotificationConfigurationRequest)
Returns the notification configuration of a bucket.
|
default GetBucketNotificationConfigurationResponse |
getBucketNotificationConfiguration(GetBucketNotificationConfigurationRequest getBucketNotificationConfigurationRequest)
Returns the notification configuration of a bucket.
|
default GetBucketPolicyResponse |
getBucketPolicy(Consumer<GetBucketPolicyRequest.Builder> getBucketPolicyRequest)
Returns the policy of a specified bucket.
|
default GetBucketPolicyResponse |
getBucketPolicy(GetBucketPolicyRequest getBucketPolicyRequest)
Returns the policy of a specified bucket.
|
default GetBucketReplicationResponse |
getBucketReplication(Consumer<GetBucketReplicationRequest.Builder> getBucketReplicationRequest)
Returns the replication configuration of a bucket.
|
default GetBucketReplicationResponse |
getBucketReplication(GetBucketReplicationRequest getBucketReplicationRequest)
Returns the replication configuration of a bucket.
|
default GetBucketRequestPaymentResponse |
getBucketRequestPayment(Consumer<GetBucketRequestPaymentRequest.Builder> getBucketRequestPaymentRequest)
Returns the request payment configuration of a bucket.
|
default GetBucketRequestPaymentResponse |
getBucketRequestPayment(GetBucketRequestPaymentRequest getBucketRequestPaymentRequest)
Returns the request payment configuration of a bucket.
|
default GetBucketTaggingResponse |
getBucketTagging(Consumer<GetBucketTaggingRequest.Builder> getBucketTaggingRequest)
Returns the tag set associated with the bucket.
|
default GetBucketTaggingResponse |
getBucketTagging(GetBucketTaggingRequest getBucketTaggingRequest)
Returns the tag set associated with the bucket.
|
default GetBucketVersioningResponse |
getBucketVersioning(Consumer<GetBucketVersioningRequest.Builder> getBucketVersioningRequest)
Returns the versioning state of a bucket.
|
default GetBucketVersioningResponse |
getBucketVersioning(GetBucketVersioningRequest getBucketVersioningRequest)
Returns the versioning state of a bucket.
|
default GetBucketWebsiteResponse |
getBucketWebsite(Consumer<GetBucketWebsiteRequest.Builder> getBucketWebsiteRequest)
Returns the website configuration for a bucket.
|
default GetBucketWebsiteResponse |
getBucketWebsite(GetBucketWebsiteRequest getBucketWebsiteRequest)
Returns the website configuration for a bucket.
|
default ResponseInputStream<GetObjectResponse> |
getObject(GetObjectRequest getObjectRequest)
Retrieves objects from Amazon S3.
|
default GetObjectResponse |
getObject(GetObjectRequest getObjectRequest,
Path filePath)
Retrieves objects from Amazon S3.
|
default <ReturnT> ReturnT |
getObject(GetObjectRequest getObjectRequest,
StreamingResponseHandler<GetObjectResponse,ReturnT> streamingResponseHandler)
Retrieves objects from Amazon S3.
|
default GetObjectAclResponse |
getObjectAcl(Consumer<GetObjectAclRequest.Builder> getObjectAclRequest)
Returns the access control list (ACL) of an object.
|
default GetObjectAclResponse |
getObjectAcl(GetObjectAclRequest getObjectAclRequest)
Returns the access control list (ACL) of an object.
|
default ResponseBytes<GetObjectResponse> |
getObjectBytes(GetObjectRequest getObjectRequest)
Retrieves objects from Amazon S3.
|
default GetObjectTaggingResponse |
getObjectTagging(Consumer<GetObjectTaggingRequest.Builder> getObjectTaggingRequest)
Returns the tag-set of an object.
|
default GetObjectTaggingResponse |
getObjectTagging(GetObjectTaggingRequest getObjectTaggingRequest)
Returns the tag-set of an object.
|
default ResponseInputStream<GetObjectTorrentResponse> |
getObjectTorrent(GetObjectTorrentRequest getObjectTorrentRequest)
Return torrent files from a bucket.
|
default GetObjectTorrentResponse |
getObjectTorrent(GetObjectTorrentRequest getObjectTorrentRequest,
Path filePath)
Return torrent files from a bucket.
|
default <ReturnT> ReturnT |
getObjectTorrent(GetObjectTorrentRequest getObjectTorrentRequest,
StreamingResponseHandler<GetObjectTorrentResponse,ReturnT> streamingResponseHandler)
Return torrent files from a bucket.
|
default ResponseBytes<GetObjectTorrentResponse> |
getObjectTorrentBytes(GetObjectTorrentRequest getObjectTorrentRequest)
Return torrent files from a bucket.
|
default HeadBucketResponse |
headBucket(Consumer<HeadBucketRequest.Builder> headBucketRequest)
This operation is useful to determine if a bucket exists and you have permission to access it.
|
default HeadBucketResponse |
headBucket(HeadBucketRequest headBucketRequest)
This operation is useful to determine if a bucket exists and you have permission to access it.
|
default HeadObjectResponse |
headObject(Consumer<HeadObjectRequest.Builder> headObjectRequest)
The HEAD operation retrieves metadata from an object without returning the object itself.
|
default HeadObjectResponse |
headObject(HeadObjectRequest headObjectRequest)
The HEAD operation retrieves metadata from an object without returning the object itself.
|
default ListBucketAnalyticsConfigurationsResponse |
listBucketAnalyticsConfigurations(Consumer<ListBucketAnalyticsConfigurationsRequest.Builder> listBucketAnalyticsConfigurationsRequest)
Lists the analytics configurations for the bucket.
|
default ListBucketAnalyticsConfigurationsResponse |
listBucketAnalyticsConfigurations(ListBucketAnalyticsConfigurationsRequest listBucketAnalyticsConfigurationsRequest)
Lists the analytics configurations for the bucket.
|
default ListBucketInventoryConfigurationsResponse |
listBucketInventoryConfigurations(Consumer<ListBucketInventoryConfigurationsRequest.Builder> listBucketInventoryConfigurationsRequest)
Returns a list of inventory configurations for the bucket.
|
default ListBucketInventoryConfigurationsResponse |
listBucketInventoryConfigurations(ListBucketInventoryConfigurationsRequest listBucketInventoryConfigurationsRequest)
Returns a list of inventory configurations for the bucket.
|
default ListBucketMetricsConfigurationsResponse |
listBucketMetricsConfigurations(Consumer<ListBucketMetricsConfigurationsRequest.Builder> listBucketMetricsConfigurationsRequest)
Lists the metrics configurations for the bucket.
|
default ListBucketMetricsConfigurationsResponse |
listBucketMetricsConfigurations(ListBucketMetricsConfigurationsRequest listBucketMetricsConfigurationsRequest)
Lists the metrics configurations for the bucket.
|
default ListBucketsResponse |
listBuckets()
Returns a list of all buckets owned by the authenticated sender of the request.
|
default ListBucketsResponse |
listBuckets(Consumer<ListBucketsRequest.Builder> listBucketsRequest)
Returns a list of all buckets owned by the authenticated sender of the request.
|
default ListBucketsResponse |
listBuckets(ListBucketsRequest listBucketsRequest)
Returns a list of all buckets owned by the authenticated sender of the request.
|
default ListMultipartUploadsResponse |
listMultipartUploads(Consumer<ListMultipartUploadsRequest.Builder> listMultipartUploadsRequest)
This operation lists in-progress multipart uploads.
|
default ListMultipartUploadsResponse |
listMultipartUploads(ListMultipartUploadsRequest listMultipartUploadsRequest)
This operation lists in-progress multipart uploads.
|
default ListMultipartUploadsIterable |
listMultipartUploadsPaginator(ListMultipartUploadsRequest listMultipartUploadsRequest)
This operation lists in-progress multipart uploads.
|
default ListObjectsResponse |
listObjects(Consumer<ListObjectsRequest.Builder> listObjectsRequest)
Returns some or all (up to 1000) of the objects in a bucket.
|
default ListObjectsResponse |
listObjects(ListObjectsRequest listObjectsRequest)
Returns some or all (up to 1000) of the objects in a bucket.
|
default ListObjectsV2Response |
listObjectsV2(Consumer<ListObjectsV2Request.Builder> listObjectsV2Request)
Returns some or all (up to 1000) of the objects in a bucket.
|
default ListObjectsV2Response |
listObjectsV2(ListObjectsV2Request listObjectsV2Request)
Returns some or all (up to 1000) of the objects in a bucket.
|
default ListObjectsV2Iterable |
listObjectsV2Paginator(ListObjectsV2Request listObjectsV2Request)
Returns some or all (up to 1000) of the objects in a bucket.
|
default ListObjectVersionsResponse |
listObjectVersions(Consumer<ListObjectVersionsRequest.Builder> listObjectVersionsRequest)
Returns metadata about all of the versions of objects in a bucket.
|
default ListObjectVersionsResponse |
listObjectVersions(ListObjectVersionsRequest listObjectVersionsRequest)
Returns metadata about all of the versions of objects in a bucket.
|
default ListObjectVersionsIterable |
listObjectVersionsPaginator(ListObjectVersionsRequest listObjectVersionsRequest)
Returns metadata about all of the versions of objects in a bucket.
|
default ListPartsResponse |
listParts(Consumer<ListPartsRequest.Builder> listPartsRequest)
Lists the parts that have been uploaded for a specific multipart upload.
|
default ListPartsResponse |
listParts(ListPartsRequest listPartsRequest)
Lists the parts that have been uploaded for a specific multipart upload.
|
default ListPartsIterable |
listPartsPaginator(ListPartsRequest listPartsRequest)
Lists the parts that have been uploaded for a specific multipart upload.
|
default PutBucketAccelerateConfigurationResponse |
putBucketAccelerateConfiguration(Consumer<PutBucketAccelerateConfigurationRequest.Builder> putBucketAccelerateConfigurationRequest)
Sets the accelerate configuration of an existing bucket.
|
default PutBucketAccelerateConfigurationResponse |
putBucketAccelerateConfiguration(PutBucketAccelerateConfigurationRequest putBucketAccelerateConfigurationRequest)
Sets the accelerate configuration of an existing bucket.
|
default PutBucketAclResponse |
putBucketAcl(Consumer<PutBucketAclRequest.Builder> putBucketAclRequest)
Sets the permissions on a bucket using access control lists (ACL).
|
default PutBucketAclResponse |
putBucketAcl(PutBucketAclRequest putBucketAclRequest)
Sets the permissions on a bucket using access control lists (ACL).
|
default PutBucketAnalyticsConfigurationResponse |
putBucketAnalyticsConfiguration(Consumer<PutBucketAnalyticsConfigurationRequest.Builder> putBucketAnalyticsConfigurationRequest)
Sets an analytics configuration for the bucket (specified by the analytics configuration ID).
|
default PutBucketAnalyticsConfigurationResponse |
putBucketAnalyticsConfiguration(PutBucketAnalyticsConfigurationRequest putBucketAnalyticsConfigurationRequest)
Sets an analytics configuration for the bucket (specified by the analytics configuration ID).
|
default PutBucketCorsResponse |
putBucketCors(Consumer<PutBucketCorsRequest.Builder> putBucketCorsRequest)
Sets the cors configuration for a bucket.
|
default PutBucketCorsResponse |
putBucketCors(PutBucketCorsRequest putBucketCorsRequest)
Sets the cors configuration for a bucket.
|
default PutBucketInventoryConfigurationResponse |
putBucketInventoryConfiguration(Consumer<PutBucketInventoryConfigurationRequest.Builder> putBucketInventoryConfigurationRequest)
Adds an inventory configuration (identified by the inventory ID) from the bucket.
|
default PutBucketInventoryConfigurationResponse |
putBucketInventoryConfiguration(PutBucketInventoryConfigurationRequest putBucketInventoryConfigurationRequest)
Adds an inventory configuration (identified by the inventory ID) from the bucket.
|
default PutBucketLifecycleResponse |
putBucketLifecycle(Consumer<PutBucketLifecycleRequest.Builder> putBucketLifecycleRequest)
Deprecated, see the PutBucketLifecycleConfiguration operation.
|
default PutBucketLifecycleResponse |
putBucketLifecycle(PutBucketLifecycleRequest putBucketLifecycleRequest)
Deprecated, see the PutBucketLifecycleConfiguration operation.
|
default PutBucketLifecycleConfigurationResponse |
putBucketLifecycleConfiguration(Consumer<PutBucketLifecycleConfigurationRequest.Builder> putBucketLifecycleConfigurationRequest)
Sets lifecycle configuration for your bucket.
|
default PutBucketLifecycleConfigurationResponse |
putBucketLifecycleConfiguration(PutBucketLifecycleConfigurationRequest putBucketLifecycleConfigurationRequest)
Sets lifecycle configuration for your bucket.
|
default PutBucketLoggingResponse |
putBucketLogging(Consumer<PutBucketLoggingRequest.Builder> putBucketLoggingRequest)
Set the logging parameters for a bucket and to specify permissions for who can view and modify the logging
parameters.
|
default PutBucketLoggingResponse |
putBucketLogging(PutBucketLoggingRequest putBucketLoggingRequest)
Set the logging parameters for a bucket and to specify permissions for who can view and modify the logging
parameters.
|
default PutBucketMetricsConfigurationResponse |
putBucketMetricsConfiguration(Consumer<PutBucketMetricsConfigurationRequest.Builder> putBucketMetricsConfigurationRequest)
Sets a metrics configuration (specified by the metrics configuration ID) for the bucket.
|
default PutBucketMetricsConfigurationResponse |
putBucketMetricsConfiguration(PutBucketMetricsConfigurationRequest putBucketMetricsConfigurationRequest)
Sets a metrics configuration (specified by the metrics configuration ID) for the bucket.
|
default PutBucketNotificationResponse |
putBucketNotification(Consumer<PutBucketNotificationRequest.Builder> putBucketNotificationRequest)
Deprecated, see the PutBucketNotificationConfiguraiton operation.
|
default PutBucketNotificationResponse |
putBucketNotification(PutBucketNotificationRequest putBucketNotificationRequest)
Deprecated, see the PutBucketNotificationConfiguraiton operation.
|
default PutBucketNotificationConfigurationResponse |
putBucketNotificationConfiguration(Consumer<PutBucketNotificationConfigurationRequest.Builder> putBucketNotificationConfigurationRequest)
Enables notifications of specified events for a bucket.
|
default PutBucketNotificationConfigurationResponse |
putBucketNotificationConfiguration(PutBucketNotificationConfigurationRequest putBucketNotificationConfigurationRequest)
Enables notifications of specified events for a bucket.
|
default PutBucketPolicyResponse |
putBucketPolicy(Consumer<PutBucketPolicyRequest.Builder> putBucketPolicyRequest)
Replaces a policy on a bucket.
|
default PutBucketPolicyResponse |
putBucketPolicy(PutBucketPolicyRequest putBucketPolicyRequest)
Replaces a policy on a bucket.
|
default PutBucketReplicationResponse |
putBucketReplication(Consumer<PutBucketReplicationRequest.Builder> putBucketReplicationRequest)
Creates a new replication configuration (or replaces an existing one, if present).
|
default PutBucketReplicationResponse |
putBucketReplication(PutBucketReplicationRequest putBucketReplicationRequest)
Creates a new replication configuration (or replaces an existing one, if present).
|
default PutBucketRequestPaymentResponse |
putBucketRequestPayment(Consumer<PutBucketRequestPaymentRequest.Builder> putBucketRequestPaymentRequest)
Sets the request payment configuration for a bucket.
|
default PutBucketRequestPaymentResponse |
putBucketRequestPayment(PutBucketRequestPaymentRequest putBucketRequestPaymentRequest)
Sets the request payment configuration for a bucket.
|
default PutBucketTaggingResponse |
putBucketTagging(Consumer<PutBucketTaggingRequest.Builder> putBucketTaggingRequest)
Sets the tags for a bucket.
|
default PutBucketTaggingResponse |
putBucketTagging(PutBucketTaggingRequest putBucketTaggingRequest)
Sets the tags for a bucket.
|
default PutBucketVersioningResponse |
putBucketVersioning(Consumer<PutBucketVersioningRequest.Builder> putBucketVersioningRequest)
Sets the versioning state of an existing bucket.
|
default PutBucketVersioningResponse |
putBucketVersioning(PutBucketVersioningRequest putBucketVersioningRequest)
Sets the versioning state of an existing bucket.
|
default PutBucketWebsiteResponse |
putBucketWebsite(Consumer<PutBucketWebsiteRequest.Builder> putBucketWebsiteRequest)
Set the website configuration for a bucket.
|
default PutBucketWebsiteResponse |
putBucketWebsite(PutBucketWebsiteRequest putBucketWebsiteRequest)
Set the website configuration for a bucket.
|
default PutObjectResponse |
putObject(PutObjectRequest putObjectRequest,
Path filePath)
Adds an object to a bucket.
|
default PutObjectResponse |
putObject(PutObjectRequest putObjectRequest,
RequestBody requestBody)
Adds an object to a bucket.
|
default PutObjectAclResponse |
putObjectAcl(Consumer<PutObjectAclRequest.Builder> putObjectAclRequest)
uses the acl subresource to set the access control list (ACL) permissions for an object that already exists in a
bucket
|
default PutObjectAclResponse |
putObjectAcl(PutObjectAclRequest putObjectAclRequest)
uses the acl subresource to set the access control list (ACL) permissions for an object that already exists in a
bucket
|
default PutObjectTaggingResponse |
putObjectTagging(Consumer<PutObjectTaggingRequest.Builder> putObjectTaggingRequest)
Sets the supplied tag-set to an object that already exists in a bucket
|
default PutObjectTaggingResponse |
putObjectTagging(PutObjectTaggingRequest putObjectTaggingRequest)
Sets the supplied tag-set to an object that already exists in a bucket
|
default RestoreObjectResponse |
restoreObject(Consumer<RestoreObjectRequest.Builder> restoreObjectRequest)
Restores an archived copy of an object back into Amazon S3
|
default RestoreObjectResponse |
restoreObject(RestoreObjectRequest restoreObjectRequest)
Restores an archived copy of an object back into Amazon S3
|
static ServiceMetadata |
serviceMetadata() |
default UploadPartResponse |
uploadPart(UploadPartRequest uploadPartRequest,
Path filePath)
Uploads a part in a multipart upload.
|
default UploadPartResponse |
uploadPart(UploadPartRequest uploadPartRequest,
RequestBody requestBody)
Uploads a part in a multipart upload.
|
default UploadPartCopyResponse |
uploadPartCopy(Consumer<UploadPartCopyRequest.Builder> uploadPartCopyRequest)
Uploads a part by copying data from an existing object as data source.
|
default UploadPartCopyResponse |
uploadPartCopy(UploadPartCopyRequest uploadPartCopyRequest)
Uploads a part by copying data from an existing object as data source.
|
serviceNameclosestatic final String SERVICE_NAME
static S3Client create()
S3Client with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from
the DefaultCredentialsProvider.static S3ClientBuilder builder()
S3Client.default AbortMultipartUploadResponse abortMultipartUpload(AbortMultipartUploadRequest abortMultipartUploadRequest) throws NoSuchUploadException, SdkServiceException, SdkClientException, S3Exception
Aborts a multipart upload.
To verify that all parts have been removed, so you don't get charged for the part storage, you should call the List Parts operation and ensure the parts list is empty.
abortMultipartUploadRequest - NoSuchUploadException - The specified multipart upload does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault AbortMultipartUploadResponse abortMultipartUpload(Consumer<AbortMultipartUploadRequest.Builder> abortMultipartUploadRequest) throws NoSuchUploadException, SdkServiceException, SdkClientException, S3Exception
Aborts a multipart upload.
To verify that all parts have been removed, so you don't get charged for the part storage, you should call the List Parts operation and ensure the parts list is empty.
abortMultipartUploadRequest - NoSuchUploadException - The specified multipart upload does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault CompleteMultipartUploadResponse completeMultipartUpload(CompleteMultipartUploadRequest completeMultipartUploadRequest) throws SdkServiceException, SdkClientException, S3Exception
completeMultipartUploadRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault CompleteMultipartUploadResponse completeMultipartUpload(Consumer<CompleteMultipartUploadRequest.Builder> completeMultipartUploadRequest) throws SdkServiceException, SdkClientException, S3Exception
completeMultipartUploadRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault CopyObjectResponse copyObject(CopyObjectRequest copyObjectRequest) throws ObjectNotInActiveTierErrorException, SdkServiceException, SdkClientException, S3Exception
copyObjectRequest - ObjectNotInActiveTierErrorException - The source object of the COPY operation is not in the active tier and is only stored in Amazon Glacier.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault CopyObjectResponse copyObject(Consumer<CopyObjectRequest.Builder> copyObjectRequest) throws ObjectNotInActiveTierErrorException, SdkServiceException, SdkClientException, S3Exception
copyObjectRequest - ObjectNotInActiveTierErrorException - The source object of the COPY operation is not in the active tier and is only stored in Amazon Glacier.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault CreateBucketResponse createBucket(CreateBucketRequest createBucketRequest) throws BucketAlreadyExistsException, BucketAlreadyOwnedByYouException, SdkServiceException, SdkClientException, S3Exception
createBucketRequest - BucketAlreadyExistsException - The requested bucket name is not available. The bucket namespace is shared by all users of the system.
Please select a different name and try again.BucketAlreadyOwnedByYouExceptionSdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault CreateBucketResponse createBucket(Consumer<CreateBucketRequest.Builder> createBucketRequest) throws BucketAlreadyExistsException, BucketAlreadyOwnedByYouException, SdkServiceException, SdkClientException, S3Exception
createBucketRequest - BucketAlreadyExistsException - The requested bucket name is not available. The bucket namespace is shared by all users of the system.
Please select a different name and try again.BucketAlreadyOwnedByYouExceptionSdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault CreateMultipartUploadResponse createMultipartUpload(CreateMultipartUploadRequest createMultipartUploadRequest) throws SdkServiceException, SdkClientException, S3Exception
Initiates a multipart upload and returns an upload ID.
Note: After you initiate multipart upload and upload one or more parts, you must either complete or abort multipart upload in order to stop getting charged for storage of the uploaded parts. Only after you either complete or abort multipart upload, Amazon S3 frees up the parts storage and stops charging you for the parts storage.
createMultipartUploadRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault CreateMultipartUploadResponse createMultipartUpload(Consumer<CreateMultipartUploadRequest.Builder> createMultipartUploadRequest) throws SdkServiceException, SdkClientException, S3Exception
Initiates a multipart upload and returns an upload ID.
Note: After you initiate multipart upload and upload one or more parts, you must either complete or abort multipart upload in order to stop getting charged for storage of the uploaded parts. Only after you either complete or abort multipart upload, Amazon S3 frees up the parts storage and stops charging you for the parts storage.
createMultipartUploadRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault DeleteBucketResponse deleteBucket(DeleteBucketRequest deleteBucketRequest) throws SdkServiceException, SdkClientException, S3Exception
deleteBucketRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault DeleteBucketResponse deleteBucket(Consumer<DeleteBucketRequest.Builder> deleteBucketRequest) throws SdkServiceException, SdkClientException, S3Exception
deleteBucketRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault DeleteBucketAnalyticsConfigurationResponse deleteBucketAnalyticsConfiguration(DeleteBucketAnalyticsConfigurationRequest deleteBucketAnalyticsConfigurationRequest) throws SdkServiceException, SdkClientException, S3Exception
deleteBucketAnalyticsConfigurationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault DeleteBucketAnalyticsConfigurationResponse deleteBucketAnalyticsConfiguration(Consumer<DeleteBucketAnalyticsConfigurationRequest.Builder> deleteBucketAnalyticsConfigurationRequest) throws SdkServiceException, SdkClientException, S3Exception
deleteBucketAnalyticsConfigurationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault DeleteBucketCorsResponse deleteBucketCors(DeleteBucketCorsRequest deleteBucketCorsRequest) throws SdkServiceException, SdkClientException, S3Exception
deleteBucketCorsRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault DeleteBucketCorsResponse deleteBucketCors(Consumer<DeleteBucketCorsRequest.Builder> deleteBucketCorsRequest) throws SdkServiceException, SdkClientException, S3Exception
deleteBucketCorsRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault DeleteBucketInventoryConfigurationResponse deleteBucketInventoryConfiguration(DeleteBucketInventoryConfigurationRequest deleteBucketInventoryConfigurationRequest) throws SdkServiceException, SdkClientException, S3Exception
deleteBucketInventoryConfigurationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault DeleteBucketInventoryConfigurationResponse deleteBucketInventoryConfiguration(Consumer<DeleteBucketInventoryConfigurationRequest.Builder> deleteBucketInventoryConfigurationRequest) throws SdkServiceException, SdkClientException, S3Exception
deleteBucketInventoryConfigurationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault DeleteBucketLifecycleResponse deleteBucketLifecycle(DeleteBucketLifecycleRequest deleteBucketLifecycleRequest) throws SdkServiceException, SdkClientException, S3Exception
deleteBucketLifecycleRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault DeleteBucketLifecycleResponse deleteBucketLifecycle(Consumer<DeleteBucketLifecycleRequest.Builder> deleteBucketLifecycleRequest) throws SdkServiceException, SdkClientException, S3Exception
deleteBucketLifecycleRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault DeleteBucketMetricsConfigurationResponse deleteBucketMetricsConfiguration(DeleteBucketMetricsConfigurationRequest deleteBucketMetricsConfigurationRequest) throws SdkServiceException, SdkClientException, S3Exception
deleteBucketMetricsConfigurationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault DeleteBucketMetricsConfigurationResponse deleteBucketMetricsConfiguration(Consumer<DeleteBucketMetricsConfigurationRequest.Builder> deleteBucketMetricsConfigurationRequest) throws SdkServiceException, SdkClientException, S3Exception
deleteBucketMetricsConfigurationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault DeleteBucketPolicyResponse deleteBucketPolicy(DeleteBucketPolicyRequest deleteBucketPolicyRequest) throws SdkServiceException, SdkClientException, S3Exception
deleteBucketPolicyRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault DeleteBucketPolicyResponse deleteBucketPolicy(Consumer<DeleteBucketPolicyRequest.Builder> deleteBucketPolicyRequest) throws SdkServiceException, SdkClientException, S3Exception
deleteBucketPolicyRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault DeleteBucketReplicationResponse deleteBucketReplication(DeleteBucketReplicationRequest deleteBucketReplicationRequest) throws SdkServiceException, SdkClientException, S3Exception
deleteBucketReplicationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault DeleteBucketReplicationResponse deleteBucketReplication(Consumer<DeleteBucketReplicationRequest.Builder> deleteBucketReplicationRequest) throws SdkServiceException, SdkClientException, S3Exception
deleteBucketReplicationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault DeleteBucketTaggingResponse deleteBucketTagging(DeleteBucketTaggingRequest deleteBucketTaggingRequest) throws SdkServiceException, SdkClientException, S3Exception
deleteBucketTaggingRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault DeleteBucketTaggingResponse deleteBucketTagging(Consumer<DeleteBucketTaggingRequest.Builder> deleteBucketTaggingRequest) throws SdkServiceException, SdkClientException, S3Exception
deleteBucketTaggingRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault DeleteBucketWebsiteResponse deleteBucketWebsite(DeleteBucketWebsiteRequest deleteBucketWebsiteRequest) throws SdkServiceException, SdkClientException, S3Exception
deleteBucketWebsiteRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault DeleteBucketWebsiteResponse deleteBucketWebsite(Consumer<DeleteBucketWebsiteRequest.Builder> deleteBucketWebsiteRequest) throws SdkServiceException, SdkClientException, S3Exception
deleteBucketWebsiteRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault DeleteObjectResponse deleteObject(DeleteObjectRequest deleteObjectRequest) throws SdkServiceException, SdkClientException, S3Exception
deleteObjectRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault DeleteObjectResponse deleteObject(Consumer<DeleteObjectRequest.Builder> deleteObjectRequest) throws SdkServiceException, SdkClientException, S3Exception
deleteObjectRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault DeleteObjectTaggingResponse deleteObjectTagging(DeleteObjectTaggingRequest deleteObjectTaggingRequest) throws SdkServiceException, SdkClientException, S3Exception
deleteObjectTaggingRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault DeleteObjectTaggingResponse deleteObjectTagging(Consumer<DeleteObjectTaggingRequest.Builder> deleteObjectTaggingRequest) throws SdkServiceException, SdkClientException, S3Exception
deleteObjectTaggingRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault DeleteObjectsResponse deleteObjects(DeleteObjectsRequest deleteObjectsRequest) throws SdkServiceException, SdkClientException, S3Exception
deleteObjectsRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault DeleteObjectsResponse deleteObjects(Consumer<DeleteObjectsRequest.Builder> deleteObjectsRequest) throws SdkServiceException, SdkClientException, S3Exception
deleteObjectsRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetBucketAccelerateConfigurationResponse getBucketAccelerateConfiguration(GetBucketAccelerateConfigurationRequest getBucketAccelerateConfigurationRequest) throws SdkServiceException, SdkClientException, S3Exception
getBucketAccelerateConfigurationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetBucketAccelerateConfigurationResponse getBucketAccelerateConfiguration(Consumer<GetBucketAccelerateConfigurationRequest.Builder> getBucketAccelerateConfigurationRequest) throws SdkServiceException, SdkClientException, S3Exception
getBucketAccelerateConfigurationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetBucketAclResponse getBucketAcl(GetBucketAclRequest getBucketAclRequest) throws SdkServiceException, SdkClientException, S3Exception
getBucketAclRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetBucketAclResponse getBucketAcl(Consumer<GetBucketAclRequest.Builder> getBucketAclRequest) throws SdkServiceException, SdkClientException, S3Exception
getBucketAclRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetBucketAnalyticsConfigurationResponse getBucketAnalyticsConfiguration(GetBucketAnalyticsConfigurationRequest getBucketAnalyticsConfigurationRequest) throws SdkServiceException, SdkClientException, S3Exception
getBucketAnalyticsConfigurationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetBucketAnalyticsConfigurationResponse getBucketAnalyticsConfiguration(Consumer<GetBucketAnalyticsConfigurationRequest.Builder> getBucketAnalyticsConfigurationRequest) throws SdkServiceException, SdkClientException, S3Exception
getBucketAnalyticsConfigurationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetBucketCorsResponse getBucketCors(GetBucketCorsRequest getBucketCorsRequest) throws SdkServiceException, SdkClientException, S3Exception
getBucketCorsRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetBucketCorsResponse getBucketCors(Consumer<GetBucketCorsRequest.Builder> getBucketCorsRequest) throws SdkServiceException, SdkClientException, S3Exception
getBucketCorsRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetBucketInventoryConfigurationResponse getBucketInventoryConfiguration(GetBucketInventoryConfigurationRequest getBucketInventoryConfigurationRequest) throws SdkServiceException, SdkClientException, S3Exception
getBucketInventoryConfigurationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetBucketInventoryConfigurationResponse getBucketInventoryConfiguration(Consumer<GetBucketInventoryConfigurationRequest.Builder> getBucketInventoryConfigurationRequest) throws SdkServiceException, SdkClientException, S3Exception
getBucketInventoryConfigurationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetBucketLifecycleResponse getBucketLifecycle(GetBucketLifecycleRequest getBucketLifecycleRequest) throws SdkServiceException, SdkClientException, S3Exception
getBucketLifecycleRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetBucketLifecycleResponse getBucketLifecycle(Consumer<GetBucketLifecycleRequest.Builder> getBucketLifecycleRequest) throws SdkServiceException, SdkClientException, S3Exception
getBucketLifecycleRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetBucketLifecycleConfigurationResponse getBucketLifecycleConfiguration(GetBucketLifecycleConfigurationRequest getBucketLifecycleConfigurationRequest) throws SdkServiceException, SdkClientException, S3Exception
getBucketLifecycleConfigurationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetBucketLifecycleConfigurationResponse getBucketLifecycleConfiguration(Consumer<GetBucketLifecycleConfigurationRequest.Builder> getBucketLifecycleConfigurationRequest) throws SdkServiceException, SdkClientException, S3Exception
getBucketLifecycleConfigurationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetBucketLocationResponse getBucketLocation(GetBucketLocationRequest getBucketLocationRequest) throws SdkServiceException, SdkClientException, S3Exception
getBucketLocationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetBucketLocationResponse getBucketLocation(Consumer<GetBucketLocationRequest.Builder> getBucketLocationRequest) throws SdkServiceException, SdkClientException, S3Exception
getBucketLocationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetBucketLoggingResponse getBucketLogging(GetBucketLoggingRequest getBucketLoggingRequest) throws SdkServiceException, SdkClientException, S3Exception
getBucketLoggingRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetBucketLoggingResponse getBucketLogging(Consumer<GetBucketLoggingRequest.Builder> getBucketLoggingRequest) throws SdkServiceException, SdkClientException, S3Exception
getBucketLoggingRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetBucketMetricsConfigurationResponse getBucketMetricsConfiguration(GetBucketMetricsConfigurationRequest getBucketMetricsConfigurationRequest) throws SdkServiceException, SdkClientException, S3Exception
getBucketMetricsConfigurationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetBucketMetricsConfigurationResponse getBucketMetricsConfiguration(Consumer<GetBucketMetricsConfigurationRequest.Builder> getBucketMetricsConfigurationRequest) throws SdkServiceException, SdkClientException, S3Exception
getBucketMetricsConfigurationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetBucketNotificationResponse getBucketNotification(GetBucketNotificationRequest getBucketNotificationRequest) throws SdkServiceException, SdkClientException, S3Exception
getBucketNotificationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetBucketNotificationResponse getBucketNotification(Consumer<GetBucketNotificationRequest.Builder> getBucketNotificationRequest) throws SdkServiceException, SdkClientException, S3Exception
getBucketNotificationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetBucketNotificationConfigurationResponse getBucketNotificationConfiguration(GetBucketNotificationConfigurationRequest getBucketNotificationConfigurationRequest) throws SdkServiceException, SdkClientException, S3Exception
getBucketNotificationConfigurationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetBucketNotificationConfigurationResponse getBucketNotificationConfiguration(Consumer<GetBucketNotificationConfigurationRequest.Builder> getBucketNotificationConfigurationRequest) throws SdkServiceException, SdkClientException, S3Exception
getBucketNotificationConfigurationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetBucketPolicyResponse getBucketPolicy(GetBucketPolicyRequest getBucketPolicyRequest) throws SdkServiceException, SdkClientException, S3Exception
getBucketPolicyRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetBucketPolicyResponse getBucketPolicy(Consumer<GetBucketPolicyRequest.Builder> getBucketPolicyRequest) throws SdkServiceException, SdkClientException, S3Exception
getBucketPolicyRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetBucketReplicationResponse getBucketReplication(GetBucketReplicationRequest getBucketReplicationRequest) throws SdkServiceException, SdkClientException, S3Exception
getBucketReplicationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetBucketReplicationResponse getBucketReplication(Consumer<GetBucketReplicationRequest.Builder> getBucketReplicationRequest) throws SdkServiceException, SdkClientException, S3Exception
getBucketReplicationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetBucketRequestPaymentResponse getBucketRequestPayment(GetBucketRequestPaymentRequest getBucketRequestPaymentRequest) throws SdkServiceException, SdkClientException, S3Exception
getBucketRequestPaymentRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetBucketRequestPaymentResponse getBucketRequestPayment(Consumer<GetBucketRequestPaymentRequest.Builder> getBucketRequestPaymentRequest) throws SdkServiceException, SdkClientException, S3Exception
getBucketRequestPaymentRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetBucketTaggingResponse getBucketTagging(GetBucketTaggingRequest getBucketTaggingRequest) throws SdkServiceException, SdkClientException, S3Exception
getBucketTaggingRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetBucketTaggingResponse getBucketTagging(Consumer<GetBucketTaggingRequest.Builder> getBucketTaggingRequest) throws SdkServiceException, SdkClientException, S3Exception
getBucketTaggingRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetBucketVersioningResponse getBucketVersioning(GetBucketVersioningRequest getBucketVersioningRequest) throws SdkServiceException, SdkClientException, S3Exception
getBucketVersioningRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetBucketVersioningResponse getBucketVersioning(Consumer<GetBucketVersioningRequest.Builder> getBucketVersioningRequest) throws SdkServiceException, SdkClientException, S3Exception
getBucketVersioningRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetBucketWebsiteResponse getBucketWebsite(GetBucketWebsiteRequest getBucketWebsiteRequest) throws SdkServiceException, SdkClientException, S3Exception
getBucketWebsiteRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetBucketWebsiteResponse getBucketWebsite(Consumer<GetBucketWebsiteRequest.Builder> getBucketWebsiteRequest) throws SdkServiceException, SdkClientException, S3Exception
getBucketWebsiteRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault <ReturnT> ReturnT getObject(GetObjectRequest getObjectRequest, StreamingResponseHandler<GetObjectResponse,ReturnT> streamingResponseHandler) throws NoSuchKeyException, SdkServiceException, SdkClientException, S3Exception
getObjectRequest - streamingHandler - Functional interface for processing the streamed response content. The unmarshalled GetObjectResponse and
an InputStream to the response content are provided as parameters to the callback. The callback may return
a transformed type which will be the return value of this method. See
StreamingResponseHandler for details on implementing this
interface and for links to pre-canned implementations for common scenarios like downloading to a file. The
service documentation for the response content is as follows 'Object data.'.NoSuchKeyException - The specified key does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetObjectResponse getObject(GetObjectRequest getObjectRequest, Path filePath) throws NoSuchKeyException, SdkServiceException, SdkClientException, S3Exception
getObjectRequest - path - Path to file that response contents will be written to. The file must not exist or this method
will throw an exception. If the file is not writable by the current user then an exception will be thrown.
The service documentation for the response content is as follows 'Object data.'.NoSuchKeyException - The specified key does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiongetObject(GetObjectRequest, StreamingResponseHandler)default ResponseInputStream<GetObjectResponse> getObject(GetObjectRequest getObjectRequest) throws NoSuchKeyException, SdkServiceException, SdkClientException, S3Exception
getObjectRequest - ResponseInputStream containing data streamed from service. Note that this is an unmanaged
reference to the underlying HTTP connection so great care must be taken to ensure all data if fully read
from the input stream and that it is properly closed. Failure to do so may result in sub-optimal behavior
and exhausting connections in the connection pool. The unmarshalled response object can be obtained via
ResponseInputStream.response(). The service documentation for the response content is as follows
'Object data.'.NoSuchKeyException - The specified key does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceException#getObject(getObject, StreamingResponseHandler)default ResponseBytes<GetObjectResponse> getObjectBytes(GetObjectRequest getObjectRequest) throws NoSuchKeyException, SdkServiceException, SdkClientException, S3Exception
getObjectRequest - ResponseBytes that loads the data streamed from the service into memory and exposes it in
convenient in-memory representations like a byte buffer or string. The unmarshalled response object can
be obtained via ResponseBytes.response(). The service documentation for the response content is
as follows 'Object data.'.NoSuchKeyException - The specified key does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceException#getObject(getObject, StreamingResponseHandler)default GetObjectAclResponse getObjectAcl(GetObjectAclRequest getObjectAclRequest) throws NoSuchKeyException, SdkServiceException, SdkClientException, S3Exception
getObjectAclRequest - NoSuchKeyException - The specified key does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetObjectAclResponse getObjectAcl(Consumer<GetObjectAclRequest.Builder> getObjectAclRequest) throws NoSuchKeyException, SdkServiceException, SdkClientException, S3Exception
getObjectAclRequest - NoSuchKeyException - The specified key does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetObjectTaggingResponse getObjectTagging(GetObjectTaggingRequest getObjectTaggingRequest) throws SdkServiceException, SdkClientException, S3Exception
getObjectTaggingRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetObjectTaggingResponse getObjectTagging(Consumer<GetObjectTaggingRequest.Builder> getObjectTaggingRequest) throws SdkServiceException, SdkClientException, S3Exception
getObjectTaggingRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault <ReturnT> ReturnT getObjectTorrent(GetObjectTorrentRequest getObjectTorrentRequest, StreamingResponseHandler<GetObjectTorrentResponse,ReturnT> streamingResponseHandler) throws SdkServiceException, SdkClientException, S3Exception
getObjectTorrentRequest - streamingHandler - Functional interface for processing the streamed response content. The unmarshalled
GetObjectTorrentResponse and an InputStream to the response content are provided as parameters to the
callback. The callback may return a transformed type which will be the return value of this method. See
StreamingResponseHandler for details on implementing this
interface and for links to pre-canned implementations for common scenarios like downloading to a file. The
service documentation for the response content is as follows ''.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault GetObjectTorrentResponse getObjectTorrent(GetObjectTorrentRequest getObjectTorrentRequest, Path filePath) throws SdkServiceException, SdkClientException, S3Exception
getObjectTorrentRequest - path - Path to file that response contents will be written to. The file must not exist or this method
will throw an exception. If the file is not writable by the current user then an exception will be thrown.
The service documentation for the response content is as follows ''.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiongetObjectTorrent(GetObjectTorrentRequest, StreamingResponseHandler)default ResponseInputStream<GetObjectTorrentResponse> getObjectTorrent(GetObjectTorrentRequest getObjectTorrentRequest) throws SdkServiceException, SdkClientException, S3Exception
getObjectTorrentRequest - ResponseInputStream containing data streamed from service. Note that this is an unmanaged
reference to the underlying HTTP connection so great care must be taken to ensure all data if fully read
from the input stream and that it is properly closed. Failure to do so may result in sub-optimal behavior
and exhausting connections in the connection pool. The unmarshalled response object can be obtained via
ResponseInputStream.response(). The service documentation for the response content is as follows
''.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceException#getObject(getObjectTorrent, StreamingResponseHandler)default ResponseBytes<GetObjectTorrentResponse> getObjectTorrentBytes(GetObjectTorrentRequest getObjectTorrentRequest) throws SdkServiceException, SdkClientException, S3Exception
getObjectTorrentRequest - ResponseBytes that loads the data streamed from the service into memory and exposes it in
convenient in-memory representations like a byte buffer or string. The unmarshalled response object can
be obtained via ResponseBytes.response(). The service documentation for the response content is
as follows ''.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceException#getObject(getObjectTorrent, StreamingResponseHandler)default HeadBucketResponse headBucket(HeadBucketRequest headBucketRequest) throws NoSuchBucketException, SdkServiceException, SdkClientException, S3Exception
headBucketRequest - NoSuchBucketException - The specified bucket does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault HeadBucketResponse headBucket(Consumer<HeadBucketRequest.Builder> headBucketRequest) throws NoSuchBucketException, SdkServiceException, SdkClientException, S3Exception
headBucketRequest - NoSuchBucketException - The specified bucket does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault HeadObjectResponse headObject(HeadObjectRequest headObjectRequest) throws NoSuchKeyException, SdkServiceException, SdkClientException, S3Exception
headObjectRequest - NoSuchKeyException - The specified key does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault HeadObjectResponse headObject(Consumer<HeadObjectRequest.Builder> headObjectRequest) throws NoSuchKeyException, SdkServiceException, SdkClientException, S3Exception
headObjectRequest - NoSuchKeyException - The specified key does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault ListBucketAnalyticsConfigurationsResponse listBucketAnalyticsConfigurations(ListBucketAnalyticsConfigurationsRequest listBucketAnalyticsConfigurationsRequest) throws SdkServiceException, SdkClientException, S3Exception
listBucketAnalyticsConfigurationsRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault ListBucketAnalyticsConfigurationsResponse listBucketAnalyticsConfigurations(Consumer<ListBucketAnalyticsConfigurationsRequest.Builder> listBucketAnalyticsConfigurationsRequest) throws SdkServiceException, SdkClientException, S3Exception
listBucketAnalyticsConfigurationsRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault ListBucketInventoryConfigurationsResponse listBucketInventoryConfigurations(ListBucketInventoryConfigurationsRequest listBucketInventoryConfigurationsRequest) throws SdkServiceException, SdkClientException, S3Exception
listBucketInventoryConfigurationsRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault ListBucketInventoryConfigurationsResponse listBucketInventoryConfigurations(Consumer<ListBucketInventoryConfigurationsRequest.Builder> listBucketInventoryConfigurationsRequest) throws SdkServiceException, SdkClientException, S3Exception
listBucketInventoryConfigurationsRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault ListBucketMetricsConfigurationsResponse listBucketMetricsConfigurations(ListBucketMetricsConfigurationsRequest listBucketMetricsConfigurationsRequest) throws SdkServiceException, SdkClientException, S3Exception
listBucketMetricsConfigurationsRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault ListBucketMetricsConfigurationsResponse listBucketMetricsConfigurations(Consumer<ListBucketMetricsConfigurationsRequest.Builder> listBucketMetricsConfigurationsRequest) throws SdkServiceException, SdkClientException, S3Exception
listBucketMetricsConfigurationsRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault ListBucketsResponse listBuckets() throws SdkServiceException, SdkClientException, S3Exception
SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptionlistBuckets(ListBucketsRequest)default ListBucketsResponse listBuckets(ListBucketsRequest listBucketsRequest) throws SdkServiceException, SdkClientException, S3Exception
listBucketsRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault ListBucketsResponse listBuckets(Consumer<ListBucketsRequest.Builder> listBucketsRequest) throws SdkServiceException, SdkClientException, S3Exception
listBucketsRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault ListMultipartUploadsResponse listMultipartUploads(ListMultipartUploadsRequest listMultipartUploadsRequest) throws SdkServiceException, SdkClientException, S3Exception
listMultipartUploadsRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault ListMultipartUploadsResponse listMultipartUploads(Consumer<ListMultipartUploadsRequest.Builder> listMultipartUploadsRequest) throws SdkServiceException, SdkClientException, S3Exception
listMultipartUploadsRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault ListMultipartUploadsIterable listMultipartUploadsPaginator(ListMultipartUploadsRequest listMultipartUploadsRequest) throws SdkServiceException, SdkClientException, S3Exception
This is a variant of
listMultipartUploads(software.amazon.awssdk.services.s3.model.ListMultipartUploadsRequest) operation.
The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally
handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.s3.paginators.ListMultipartUploadsIterable responses = client.listMultipartUploadsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.s3.paginators.ListMultipartUploadsIterable responses = client
.listMultipartUploadsPaginator(request);
for (software.amazon.awssdk.services.s3.model.ListMultipartUploadsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.s3.paginators.ListMultipartUploadsIterable responses = client.listMultipartUploadsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listMultipartUploads(software.amazon.awssdk.services.s3.model.ListMultipartUploadsRequest)
operation.
listMultipartUploadsRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault ListObjectVersionsResponse listObjectVersions(ListObjectVersionsRequest listObjectVersionsRequest) throws SdkServiceException, SdkClientException, S3Exception
listObjectVersionsRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault ListObjectVersionsResponse listObjectVersions(Consumer<ListObjectVersionsRequest.Builder> listObjectVersionsRequest) throws SdkServiceException, SdkClientException, S3Exception
listObjectVersionsRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault ListObjectVersionsIterable listObjectVersionsPaginator(ListObjectVersionsRequest listObjectVersionsRequest) throws SdkServiceException, SdkClientException, S3Exception
This is a variant of
listObjectVersions(software.amazon.awssdk.services.s3.model.ListObjectVersionsRequest) operation. The
return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle
making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.s3.paginators.ListObjectVersionsIterable responses = client.listObjectVersionsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.s3.paginators.ListObjectVersionsIterable responses = client
.listObjectVersionsPaginator(request);
for (software.amazon.awssdk.services.s3.model.ListObjectVersionsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.s3.paginators.ListObjectVersionsIterable responses = client.listObjectVersionsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listObjectVersions(software.amazon.awssdk.services.s3.model.ListObjectVersionsRequest) operation.
listObjectVersionsRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault ListObjectsResponse listObjects(ListObjectsRequest listObjectsRequest) throws NoSuchBucketException, SdkServiceException, SdkClientException, S3Exception
listObjectsRequest - NoSuchBucketException - The specified bucket does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault ListObjectsResponse listObjects(Consumer<ListObjectsRequest.Builder> listObjectsRequest) throws NoSuchBucketException, SdkServiceException, SdkClientException, S3Exception
listObjectsRequest - NoSuchBucketException - The specified bucket does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault ListObjectsV2Response listObjectsV2(ListObjectsV2Request listObjectsV2Request) throws NoSuchBucketException, SdkServiceException, SdkClientException, S3Exception
listObjectsV2Request - NoSuchBucketException - The specified bucket does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault ListObjectsV2Response listObjectsV2(Consumer<ListObjectsV2Request.Builder> listObjectsV2Request) throws NoSuchBucketException, SdkServiceException, SdkClientException, S3Exception
listObjectsV2Request - NoSuchBucketException - The specified bucket does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault ListObjectsV2Iterable listObjectsV2Paginator(ListObjectsV2Request listObjectsV2Request) throws NoSuchBucketException, SdkServiceException, SdkClientException, S3Exception
This is a variant of listObjectsV2(software.amazon.awssdk.services.s3.model.ListObjectsV2Request)
operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will
internally handle making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.s3.paginators.ListObjectsV2Iterable responses = client.listObjectsV2Paginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.s3.paginators.ListObjectsV2Iterable responses = client.listObjectsV2Paginator(request);
for (software.amazon.awssdk.services.s3.model.ListObjectsV2Response response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.s3.paginators.ListObjectsV2Iterable responses = client.listObjectsV2Paginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listObjectsV2(software.amazon.awssdk.services.s3.model.ListObjectsV2Request) operation.
listObjectsV2Request - NoSuchBucketException - The specified bucket does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault ListPartsResponse listParts(ListPartsRequest listPartsRequest) throws SdkServiceException, SdkClientException, S3Exception
listPartsRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault ListPartsResponse listParts(Consumer<ListPartsRequest.Builder> listPartsRequest) throws SdkServiceException, SdkClientException, S3Exception
listPartsRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault ListPartsIterable listPartsPaginator(ListPartsRequest listPartsRequest) throws SdkServiceException, SdkClientException, S3Exception
This is a variant of listParts(software.amazon.awssdk.services.s3.model.ListPartsRequest) operation. The
return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle
making service calls for you.
When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
software.amazon.awssdk.services.s3.paginators.ListPartsIterable responses = client.listPartsPaginator(request);
responses.stream().forEach(....);
2) Using For loop
{
@code
software.amazon.awssdk.services.s3.paginators.ListPartsIterable responses = client.listPartsPaginator(request);
for (software.amazon.awssdk.services.s3.model.ListPartsResponse response : responses) {
// do something;
}
}
3) Use iterator directly
software.amazon.awssdk.services.s3.paginators.ListPartsIterable responses = client.listPartsPaginator(request);
responses.iterator().forEachRemaining(....);
Note: If you prefer to have control on service calls, use the
listParts(software.amazon.awssdk.services.s3.model.ListPartsRequest) operation.
listPartsRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault PutBucketAccelerateConfigurationResponse putBucketAccelerateConfiguration(PutBucketAccelerateConfigurationRequest putBucketAccelerateConfigurationRequest) throws SdkServiceException, SdkClientException, S3Exception
putBucketAccelerateConfigurationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault PutBucketAccelerateConfigurationResponse putBucketAccelerateConfiguration(Consumer<PutBucketAccelerateConfigurationRequest.Builder> putBucketAccelerateConfigurationRequest) throws SdkServiceException, SdkClientException, S3Exception
putBucketAccelerateConfigurationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault PutBucketAclResponse putBucketAcl(PutBucketAclRequest putBucketAclRequest) throws SdkServiceException, SdkClientException, S3Exception
putBucketAclRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault PutBucketAclResponse putBucketAcl(Consumer<PutBucketAclRequest.Builder> putBucketAclRequest) throws SdkServiceException, SdkClientException, S3Exception
putBucketAclRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault PutBucketAnalyticsConfigurationResponse putBucketAnalyticsConfiguration(PutBucketAnalyticsConfigurationRequest putBucketAnalyticsConfigurationRequest) throws SdkServiceException, SdkClientException, S3Exception
putBucketAnalyticsConfigurationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault PutBucketAnalyticsConfigurationResponse putBucketAnalyticsConfiguration(Consumer<PutBucketAnalyticsConfigurationRequest.Builder> putBucketAnalyticsConfigurationRequest) throws SdkServiceException, SdkClientException, S3Exception
putBucketAnalyticsConfigurationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault PutBucketCorsResponse putBucketCors(PutBucketCorsRequest putBucketCorsRequest) throws SdkServiceException, SdkClientException, S3Exception
putBucketCorsRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault PutBucketCorsResponse putBucketCors(Consumer<PutBucketCorsRequest.Builder> putBucketCorsRequest) throws SdkServiceException, SdkClientException, S3Exception
putBucketCorsRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault PutBucketInventoryConfigurationResponse putBucketInventoryConfiguration(PutBucketInventoryConfigurationRequest putBucketInventoryConfigurationRequest) throws SdkServiceException, SdkClientException, S3Exception
putBucketInventoryConfigurationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault PutBucketInventoryConfigurationResponse putBucketInventoryConfiguration(Consumer<PutBucketInventoryConfigurationRequest.Builder> putBucketInventoryConfigurationRequest) throws SdkServiceException, SdkClientException, S3Exception
putBucketInventoryConfigurationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault PutBucketLifecycleResponse putBucketLifecycle(PutBucketLifecycleRequest putBucketLifecycleRequest) throws SdkServiceException, SdkClientException, S3Exception
putBucketLifecycleRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault PutBucketLifecycleResponse putBucketLifecycle(Consumer<PutBucketLifecycleRequest.Builder> putBucketLifecycleRequest) throws SdkServiceException, SdkClientException, S3Exception
putBucketLifecycleRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault PutBucketLifecycleConfigurationResponse putBucketLifecycleConfiguration(PutBucketLifecycleConfigurationRequest putBucketLifecycleConfigurationRequest) throws SdkServiceException, SdkClientException, S3Exception
putBucketLifecycleConfigurationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault PutBucketLifecycleConfigurationResponse putBucketLifecycleConfiguration(Consumer<PutBucketLifecycleConfigurationRequest.Builder> putBucketLifecycleConfigurationRequest) throws SdkServiceException, SdkClientException, S3Exception
putBucketLifecycleConfigurationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault PutBucketLoggingResponse putBucketLogging(PutBucketLoggingRequest putBucketLoggingRequest) throws SdkServiceException, SdkClientException, S3Exception
putBucketLoggingRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault PutBucketLoggingResponse putBucketLogging(Consumer<PutBucketLoggingRequest.Builder> putBucketLoggingRequest) throws SdkServiceException, SdkClientException, S3Exception
putBucketLoggingRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault PutBucketMetricsConfigurationResponse putBucketMetricsConfiguration(PutBucketMetricsConfigurationRequest putBucketMetricsConfigurationRequest) throws SdkServiceException, SdkClientException, S3Exception
putBucketMetricsConfigurationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault PutBucketMetricsConfigurationResponse putBucketMetricsConfiguration(Consumer<PutBucketMetricsConfigurationRequest.Builder> putBucketMetricsConfigurationRequest) throws SdkServiceException, SdkClientException, S3Exception
putBucketMetricsConfigurationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault PutBucketNotificationResponse putBucketNotification(PutBucketNotificationRequest putBucketNotificationRequest) throws SdkServiceException, SdkClientException, S3Exception
putBucketNotificationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault PutBucketNotificationResponse putBucketNotification(Consumer<PutBucketNotificationRequest.Builder> putBucketNotificationRequest) throws SdkServiceException, SdkClientException, S3Exception
putBucketNotificationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault PutBucketNotificationConfigurationResponse putBucketNotificationConfiguration(PutBucketNotificationConfigurationRequest putBucketNotificationConfigurationRequest) throws SdkServiceException, SdkClientException, S3Exception
putBucketNotificationConfigurationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault PutBucketNotificationConfigurationResponse putBucketNotificationConfiguration(Consumer<PutBucketNotificationConfigurationRequest.Builder> putBucketNotificationConfigurationRequest) throws SdkServiceException, SdkClientException, S3Exception
putBucketNotificationConfigurationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault PutBucketPolicyResponse putBucketPolicy(PutBucketPolicyRequest putBucketPolicyRequest) throws SdkServiceException, SdkClientException, S3Exception
putBucketPolicyRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault PutBucketPolicyResponse putBucketPolicy(Consumer<PutBucketPolicyRequest.Builder> putBucketPolicyRequest) throws SdkServiceException, SdkClientException, S3Exception
putBucketPolicyRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault PutBucketReplicationResponse putBucketReplication(PutBucketReplicationRequest putBucketReplicationRequest) throws SdkServiceException, SdkClientException, S3Exception
putBucketReplicationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault PutBucketReplicationResponse putBucketReplication(Consumer<PutBucketReplicationRequest.Builder> putBucketReplicationRequest) throws SdkServiceException, SdkClientException, S3Exception
putBucketReplicationRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault PutBucketRequestPaymentResponse putBucketRequestPayment(PutBucketRequestPaymentRequest putBucketRequestPaymentRequest) throws SdkServiceException, SdkClientException, S3Exception
putBucketRequestPaymentRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault PutBucketRequestPaymentResponse putBucketRequestPayment(Consumer<PutBucketRequestPaymentRequest.Builder> putBucketRequestPaymentRequest) throws SdkServiceException, SdkClientException, S3Exception
putBucketRequestPaymentRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault PutBucketTaggingResponse putBucketTagging(PutBucketTaggingRequest putBucketTaggingRequest) throws SdkServiceException, SdkClientException, S3Exception
putBucketTaggingRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault PutBucketTaggingResponse putBucketTagging(Consumer<PutBucketTaggingRequest.Builder> putBucketTaggingRequest) throws SdkServiceException, SdkClientException, S3Exception
putBucketTaggingRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault PutBucketVersioningResponse putBucketVersioning(PutBucketVersioningRequest putBucketVersioningRequest) throws SdkServiceException, SdkClientException, S3Exception
putBucketVersioningRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault PutBucketVersioningResponse putBucketVersioning(Consumer<PutBucketVersioningRequest.Builder> putBucketVersioningRequest) throws SdkServiceException, SdkClientException, S3Exception
putBucketVersioningRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault PutBucketWebsiteResponse putBucketWebsite(PutBucketWebsiteRequest putBucketWebsiteRequest) throws SdkServiceException, SdkClientException, S3Exception
putBucketWebsiteRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault PutBucketWebsiteResponse putBucketWebsite(Consumer<PutBucketWebsiteRequest.Builder> putBucketWebsiteRequest) throws SdkServiceException, SdkClientException, S3Exception
putBucketWebsiteRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault PutObjectResponse putObject(PutObjectRequest putObjectRequest, RequestBody requestBody) throws SdkServiceException, SdkClientException, S3Exception
putObjectRequest - requestBody - The content to send to the service. A RequestBody can be created using one of several factory
methods for various sources of data. For example, to create a request body from a file you can do the
following.
RequestBody.of(new File("myfile.txt"))
See documentation in RequestBody for additional details and which sources of data are supported.
The service documentation for the request content is as follows 'Object data.'SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault PutObjectResponse putObject(PutObjectRequest putObjectRequest, Path filePath) throws SdkServiceException, SdkClientException, S3Exception
putObjectRequest - path - Path to file containing data to send to the service. File will be read entirely and may be read
multiple times in the event of a retry. If the file does not exist or the current user does not have
access to read it then an exception will be thrown. The service documentation for the request content is
as follows 'Object data.'SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptionputObject(PutObjectRequest, RequestBody)default PutObjectAclResponse putObjectAcl(PutObjectAclRequest putObjectAclRequest) throws NoSuchKeyException, SdkServiceException, SdkClientException, S3Exception
putObjectAclRequest - NoSuchKeyException - The specified key does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault PutObjectAclResponse putObjectAcl(Consumer<PutObjectAclRequest.Builder> putObjectAclRequest) throws NoSuchKeyException, SdkServiceException, SdkClientException, S3Exception
putObjectAclRequest - NoSuchKeyException - The specified key does not exist.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault PutObjectTaggingResponse putObjectTagging(PutObjectTaggingRequest putObjectTaggingRequest) throws SdkServiceException, SdkClientException, S3Exception
putObjectTaggingRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault PutObjectTaggingResponse putObjectTagging(Consumer<PutObjectTaggingRequest.Builder> putObjectTaggingRequest) throws SdkServiceException, SdkClientException, S3Exception
putObjectTaggingRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault RestoreObjectResponse restoreObject(RestoreObjectRequest restoreObjectRequest) throws ObjectAlreadyInActiveTierErrorException, SdkServiceException, SdkClientException, S3Exception
restoreObjectRequest - ObjectAlreadyInActiveTierErrorException - This operation is not allowed against this storage tierSdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault RestoreObjectResponse restoreObject(Consumer<RestoreObjectRequest.Builder> restoreObjectRequest) throws ObjectAlreadyInActiveTierErrorException, SdkServiceException, SdkClientException, S3Exception
restoreObjectRequest - ObjectAlreadyInActiveTierErrorException - This operation is not allowed against this storage tierSdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault UploadPartResponse uploadPart(UploadPartRequest uploadPartRequest, RequestBody requestBody) throws SdkServiceException, SdkClientException, S3Exception
Uploads a part in a multipart upload.
Note: After you initiate multipart upload and upload one or more parts, you must either complete or abort multipart upload in order to stop getting charged for storage of the uploaded parts. Only after you either complete or abort multipart upload, Amazon S3 frees up the parts storage and stops charging you for the parts storage.
uploadPartRequest - requestBody - The content to send to the service. A RequestBody can be created using one of several factory
methods for various sources of data. For example, to create a request body from a file you can do the
following.
RequestBody.of(new File("myfile.txt"))
See documentation in RequestBody for additional details and which sources of data are supported.
The service documentation for the request content is as follows 'Object data.'SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault UploadPartResponse uploadPart(UploadPartRequest uploadPartRequest, Path filePath) throws SdkServiceException, SdkClientException, S3Exception
Uploads a part in a multipart upload.
Note: After you initiate multipart upload and upload one or more parts, you must either complete or abort multipart upload in order to stop getting charged for storage of the uploaded parts. Only after you either complete or abort multipart upload, Amazon S3 frees up the parts storage and stops charging you for the parts storage.
uploadPartRequest - path - Path to file containing data to send to the service. File will be read entirely and may be read
multiple times in the event of a retry. If the file does not exist or the current user does not have
access to read it then an exception will be thrown. The service documentation for the request content is
as follows 'Object data.'SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptionuploadPart(UploadPartRequest, RequestBody)default UploadPartCopyResponse uploadPartCopy(UploadPartCopyRequest uploadPartCopyRequest) throws SdkServiceException, SdkClientException, S3Exception
uploadPartCopyRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptiondefault UploadPartCopyResponse uploadPartCopy(Consumer<UploadPartCopyRequest.Builder> uploadPartCopyRequest) throws SdkServiceException, SdkClientException, S3Exception
uploadPartCopyRequest - SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.S3Exception - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.SdkServiceExceptionstatic ServiceMetadata serviceMetadata()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.