Java com.amazonaws.services.s3 AmazonS3 fields, constructors, methods, implement or subclass

Example usage for Java com.amazonaws.services.s3 AmazonS3 fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.amazonaws.services.s3 AmazonS3.

The text is from its open source code.

Implementation

com.amazonaws.services.s3.AmazonS3 has the following implementations.
Click this link to see all its implementation.

Method

voidabortMultipartUpload(AbortMultipartUploadRequest request)
Aborts a multipart upload.
voidchangeObjectStorageClass(String bucketName, String key, StorageClass newStorageClass)

Changes the Amazon S3 storage class for a specified object.

CompleteMultipartUploadResultcompleteMultipartUpload(CompleteMultipartUploadRequest request)
Completes a multipart upload by assembling previously uploaded parts.
CopyObjectResultcopyObject(String sourceBucketName, String sourceKey, String destinationBucketName, String destinationKey)

Copies a source object to a new destination in Amazon S3.

CopyObjectResultcopyObject(CopyObjectRequest copyObjectRequest)

Copies a source object to a new destination in Amazon S3.

CopyPartResultcopyPart(CopyPartRequest copyPartRequest)
Copies a source object to a part of a multipart upload.
BucketcreateBucket(CreateBucketRequest createBucketRequest)

Creates a new Amazon S3 bucket in the region that the client was created in.

BucketcreateBucket(String bucketName)

Creates a new Amazon S3 bucket with the specified name in the region that the client was created in.

BucketcreateBucket(String bucketName, Region region)

Creates a new Amazon S3 bucket with the specified name in the specified Amazon S3 region.

BucketcreateBucket(String bucketName, String region)

Creates a new Amazon S3 bucket with the specified name in the specified Amazon S3 region.

voiddeleteBucket(DeleteBucketRequest deleteBucketRequest)

Deletes the specified bucket.

voiddeleteBucket(String bucketName)

Deletes the specified bucket.

voiddeleteBucketLifecycleConfiguration(String bucketName)
Removes the lifecycle configuration for the bucket specified.
voiddeleteBucketLifecycleConfiguration( DeleteBucketLifecycleConfigurationRequest deleteBucketLifecycleConfigurationRequest)
Removes the lifecycle configuration for the bucket specified.
voiddeleteBucketPolicy(String bucketName)

Deletes the policy associated with the specified bucket.

voiddeleteBucketPolicy(DeleteBucketPolicyRequest deleteBucketPolicyRequest)

Deletes the policy associated with the specified bucket.

voiddeleteBucketWebsiteConfiguration(String bucketName)
This operation removes the website configuration for a bucket.
voiddeleteBucketWebsiteConfiguration( DeleteBucketWebsiteConfigurationRequest deleteBucketWebsiteConfigurationRequest)
This operation removes the website configuration for a bucket.
voiddeleteObject(String bucketName, String key)

Deletes the specified object in the specified bucket.

voiddeleteObject(DeleteObjectRequest deleteObjectRequest)

Deletes the specified object in the specified bucket.

DeleteObjectsResultdeleteObjects(DeleteObjectsRequest deleteObjectsRequest)
Deletes multiple objects in a single bucket from S3.
voiddeleteVersion(String bucketName, String key, String versionId)

Deletes a specific version of the specified object in the specified bucket.

voiddeleteVersion(DeleteVersionRequest deleteVersionRequest)

Deletes a specific version of an object in the specified bucket.

voiddisableRequesterPays(String bucketName)
Allows Amazon S3 bucket owner to disable the Requester Pays for the given bucket name.
booleandoesBucketExist(String bucketName)
Checks if the specified bucket exists.
booleandoesBucketExistV2(String bucketName)
Checks if the specified bucket exists.
booleandoesObjectExist(String bucketName, String objectName)
voidenableRequesterPays(String bucketName)
Allows Amazon S3 bucket owner to enable the Requester Pays for the given bucket name.
URLgeneratePresignedUrl(GeneratePresignedUrlRequest generatePresignedUrlRequest)

Returns a pre-signed URL for accessing an Amazon S3 resource.

URLgeneratePresignedUrl(String bucketName, String key, Date expiration)

Returns a pre-signed URL for accessing an Amazon S3 resource.

AccessControlListgetBucketAcl(String bucketName)

Gets the AccessControlList (ACL) for the specified Amazon S3 bucket.

AccessControlListgetBucketAcl(GetBucketAclRequest getBucketAclRequest)
Gets the AccessControlList (ACL) for the specified Amazon S3 bucket.
BucketLifecycleConfigurationgetBucketLifecycleConfiguration(String bucketName)
Gets the lifecycle configuration for the specified bucket, or null if the specified bucket does not exist or if no configuration has been established.
BucketLifecycleConfigurationgetBucketLifecycleConfiguration( GetBucketLifecycleConfigurationRequest getBucketLifecycleConfigurationRequest)
Gets the lifecycle configuration for the specified bucket, or null if the specified bucket does not exist or if no configuration has been established.
StringgetBucketLocation(String bucketName)

Gets the geographical region where Amazon S3 stores the specified bucket.

StringgetBucketLocation(GetBucketLocationRequest getBucketLocationRequest)

Gets the geographical region where Amazon S3 stores the specified bucket.

BucketPolicygetBucketPolicy(String bucketName)

Gets the policy for the specified bucket.

BucketPolicygetBucketPolicy(GetBucketPolicyRequest getBucketPolicyRequest)

Gets the policy for the specified bucket.

BucketVersioningConfigurationgetBucketVersioningConfiguration(String bucketName)

Returns the versioning configuration for the specified bucket.

BucketVersioningConfigurationgetBucketVersioningConfiguration( GetBucketVersioningConfigurationRequest getBucketVersioningConfigurationRequest)

Returns the versioning configuration for the specified bucket.

BucketWebsiteConfigurationgetBucketWebsiteConfiguration(String bucketName)
Returns the website configuration for the specified bucket.
BucketWebsiteConfigurationgetBucketWebsiteConfiguration( GetBucketWebsiteConfigurationRequest getBucketWebsiteConfigurationRequest)
Returns the website configuration for the specified bucket.
S3ResponseMetadatagetCachedResponseMetadata(AmazonWebServiceRequest request)
Gets additional metadata for a previously executed successful request.
S3ObjectgetObject(GetObjectRequest getObjectRequest)

Gets the object stored in Amazon S3 under the specified bucket and key.

S3ObjectgetObject(String bucketName, String key)

Gets the object stored in Amazon S3 under the specified bucket and key.

ObjectMetadatagetObject(GetObjectRequest getObjectRequest, File destinationFile)

Gets the object metadata for the object stored in Amazon S3 under the specified bucket and key, and saves the object contents to the specified file.

AccessControlListgetObjectAcl(String bucketName, String key)

Gets the AccessControlList (ACL) for the specified object in Amazon S3.

StringgetObjectAsString(String bucketName, String key)

Retrieves and decodes the contents of an S3 object to a String.

ObjectMetadatagetObjectMetadata(String bucketName, String key)

Gets the metadata for the specified Amazon S3 object without actually fetching the object itself.

ObjectMetadatagetObjectMetadata(GetObjectMetadataRequest getObjectMetadataRequest)

Gets the metadata for the specified Amazon S3 object without actually fetching the object itself.

GetObjectTaggingResultgetObjectTagging(GetObjectTaggingRequest getObjectTaggingRequest)
Returns the tags for the specified object.
RegiongetRegion()
Returns the region with which the client is configured.
OwnergetS3AccountOwner()

Gets the current owner of the AWS account that the authenticated sender of the request is using.

URLgetUrl(String bucketName, String key)
Returns an URL for the object stored in the specified bucket and key.
InitiateMultipartUploadResultinitiateMultipartUpload(InitiateMultipartUploadRequest request)
Initiates a multipart upload and returns an InitiateMultipartUploadResult which contains an upload ID.
ListlistBuckets()

Returns a list of all Amazon S3 buckets that the authenticated sender of the request owns.

MultipartUploadListinglistMultipartUploads(ListMultipartUploadsRequest request)
Lists in-progress multipart uploads.
ObjectListinglistNextBatchOfObjects(ObjectListing previousObjectListing)

Provides an easy way to continue a truncated object listing and retrieve the next page of results.

ObjectListinglistNextBatchOfObjects(ListNextBatchOfObjectsRequest listNextBatchOfObjectsRequest)

Provides an easy way to continue a truncated object listing and retrieve the next page of results.

VersionListinglistNextBatchOfVersions(VersionListing previousVersionListing)

Provides an easy way to continue a truncated VersionListing and retrieve the next page of results.

VersionListinglistNextBatchOfVersions(ListNextBatchOfVersionsRequest listNextBatchOfVersionsRequest)

Provides an easy way to continue a truncated VersionListing and retrieve the next page of results.

ObjectListinglistObjects(String bucketName)

Returns a list of summary information about the objects in the specified buckets.

ObjectListinglistObjects(ListObjectsRequest listObjectsRequest)

Returns a list of summary information about the objects in the specified bucket.

ObjectListinglistObjects(String bucketName, String prefix)

Returns a list of summary information about the objects in the specified bucket.

ListObjectsV2ResultlistObjectsV2(String bucketName)
ListObjectsV2ResultlistObjectsV2(ListObjectsV2Request listObjectsV2Request)
VersionListinglistVersions(ListVersionsRequest listVersionsRequest)

Returns a list of summary information about the versions in the specified bucket.

VersionListinglistVersions(String bucketName, String prefix)

Returns a list of summary information about the versions in the specified bucket.

VersionListinglistVersions(String bucketName, String prefix, String keyMarker, String versionIdMarker, String delimiter, Integer maxResults)

Returns a list of summary information about the versions in the specified bucket.

PutObjectResultputObject(PutObjectRequest putObjectRequest)

Uploads a new object to the specified Amazon S3 bucket.

PutObjectResultputObject(String bucketName, String key, File file)

Uploads the specified file to Amazon S3 under the specified bucket and key name.

PutObjectResultputObject(String bucketName, String key, String content)

Encodes a String into the contents of an S3 object.

PutObjectResultputObject(String bucketName, String key, InputStream input, ObjectMetadata metadata)

Uploads the specified input stream and object metadata to Amazon S3 under the specified bucket and key name.

voidrestoreObject(RestoreObjectRequest request)
Restore an object, which was transitioned to Amazon Glacier from Amazon S3 when it was expired, into Amazon S3 again.
SelectObjectContentResultselectObjectContent(SelectObjectContentRequest selectRequest)
This operation filters the contents of an Amazon S3 object based on a simple Structured Query Language (SQL) statement.
voidsetBucketAcl(String bucketName, AccessControlList acl)

Sets the AccessControlList for the specified Amazon S3 bucket.

voidsetBucketAcl(String bucketName, CannedAccessControlList acl)

Sets the CannedAccessControlList for the specified Amazon S3 bucket using one of the pre-configured CannedAccessControlLists.

voidsetBucketCrossOriginConfiguration(String bucketName, BucketCrossOriginConfiguration bucketCrossOriginConfiguration)
Sets the cross origin configuration for the specified bucket.
voidsetBucketLifecycleConfiguration(String bucketName, BucketLifecycleConfiguration bucketLifecycleConfiguration)
Sets the lifecycle configuration for the specified bucket.
voidsetBucketNotificationConfiguration(String bucketName, BucketNotificationConfiguration bucketNotificationConfiguration)
Sets the notification configuration for the specified bucket.
voidsetBucketPolicy(String bucketName, String policyText)

Sets the policy associated with the specified bucket.

voidsetBucketVersioningConfiguration( SetBucketVersioningConfigurationRequest setBucketVersioningConfigurationRequest)

Sets the versioning configuration for the specified bucket.

voidsetBucketWebsiteConfiguration(String bucketName, BucketWebsiteConfiguration configuration)
Sets the website configuration for the specified bucket.
voidsetEndpoint(String endpoint)

Overrides the default endpoint for this client.

voidsetObjectAcl(String bucketName, String key, AccessControlList acl)

Sets the AccessControlList for the specified object in Amazon S3.

voidsetObjectAcl(String bucketName, String key, CannedAccessControlList acl)

Sets the CannedAccessControlList for the specified object in Amazon S3 using one of the pre-configured CannedAccessControlLists.

SetObjectTaggingResultsetObjectTagging(SetObjectTaggingRequest setObjectTaggingRequest)
Set the tags for the specified object.
voidsetRegion(com.amazonaws.regions.Region region)
An alternative to AmazonS3#setEndpoint(String) , sets the regional endpoint for this client's service calls.
voidsetS3ClientOptions(S3ClientOptions clientOptions)

Override the default S3 client options for this client.

voidshutdown()
Shuts down this client object, releasing any resources that might be held open.
UploadPartResultuploadPart(UploadPartRequest request)
Uploads a part in a multipart upload.