Interface S3Client
-
- All Known Implementing Classes:
S3EncryptionClient
,S3JerseyClient
public interface S3Client
Represents all S3 operations supported by the ECS platform of the corresponding version of this library. Note that ECS does not implement all S3 operations in the API specification. Some methods have yet to be implemented, while many do not apply to a private cloud infrastructure. ECS also extends the S3 API by providing methods not included in the original specification, such as mutable objects (byte-range update) and atomic appends (returning offset).Any calls resulting in an error will throw S3Exception. All available information from the error will be included in the exception instance. If an exception is not thrown, you may assume the call was successful.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
abortMultipartUpload(AbortMultipartUploadRequest request)
long
appendObject(java.lang.String bucketName, java.lang.String key, java.lang.Object content)
Atomically appends to the end of objectkey
in bucketbucketName
withcontent
and returns the starting offset of the append operationboolean
bucketExists(java.lang.String bucketName)
Returns whetherbucketName
exists in the user's namespace (or the configured namespace of the client).CompleteMultipartUploadResult
completeMultipartUpload(CompleteMultipartUploadRequest request)
CopyObjectResult
copyObject(CopyObjectRequest request)
Remotely copies an object using the parameters specified inrequest
CopyObjectResult
copyObject(java.lang.String sourceBucketName, java.lang.String sourceKey, java.lang.String bucketName, java.lang.String key)
Remotely copies objectsourceKey
in bucketsourceBucketName
tokey
inbucketName
CopyPartResult
copyPart(CopyPartRequest request)
CopyRangeResult
copyRange(CopyRangeRequest request)
This API is an ECS extension API.void
createBucket(CreateBucketRequest request)
Creates a bucket using the parameters specified inrequest
void
createBucket(java.lang.String bucketName)
Creates a bucket with the specified name in the default namespace and with the default replication groupvoid
deleteBucket(DeleteBucketRequest request)
DeletesbucketName
.void
deleteBucket(java.lang.String bucketName)
DeletesbucketName
.void
deleteBucketCors(java.lang.String bucketName)
Removes the CORS configuration forbucketName
void
deleteBucketLifecycle(java.lang.String bucketName)
Deletes the lifecycle configuration forbucketName
void
deleteBucketPolicy(java.lang.String bucketName)
Deletes the bucket policy forbucketName
void
deleteObject(DeleteObjectRequest request)
Deletes object using the parameters specified inrequest
void
deleteObject(java.lang.String bucketName, java.lang.String key)
Deletes objectkey
from bucketbucketName
DeleteObjectsResult
deleteObjects(DeleteObjectsRequest request)
Deletes objects using the parameters specified inrequest
void
deleteObjectTagging(DeleteObjectTaggingRequest request)
void
deleteVersion(java.lang.String bucketName, java.lang.String key, java.lang.String versionId)
Delets versionversionId
of objectkey
in bucketbucketName
.void
destroy()
Always call .destroy() when finished with a client to ensure that any attached resources and background processes are released/terminated (i.e.void
enableObjectLock(java.lang.String bucketName)
Enable Object Lock for bucketbucketName
.void
extendRetentionPeriod(java.lang.String bucketName, java.lang.String key, java.lang.Long period)
Extend retentionperiod
(seconds) on objectkey
in bucketbucketName
.AccessControlList
getBucketAcl(java.lang.String bucketName)
Retrieves the ACL ofbucketName
CorsConfiguration
getBucketCors(java.lang.String bucketName)
Retrieves the CORS configuration forbucketName
.BucketDeletionStatus
getBucketDeletionStatus(java.lang.String bucketName)
Gets status of background bucket cleanup tasks forbucketName
if presentBucketInfo
getBucketInfo(java.lang.String bucketName)
Gets information about a bucketLifecycleConfiguration
getBucketLifecycle(java.lang.String bucketName)
Retrieves the lifecycle configuration forbucketName
.LocationConstraint
getBucketLocation(java.lang.String bucketName)
Gets the location ofbucketName
.BucketPolicy
getBucketPolicy(java.lang.String bucketName)
Gets the bucket policy forbucketName
VersioningConfiguration
getBucketVersioning(java.lang.String bucketName)
Retrieves the versioning status ofbucketName
(none, enabled or suspended)<T> GetObjectResult<T>
getObject(GetObjectRequest request, java.lang.Class<T> objectType)
Gets an object using the parameters specified inrequest
.GetObjectResult<java.io.InputStream>
getObject(java.lang.String bucketName, java.lang.String key)
Gets objectkey
in bucketbucketName
.AccessControlList
getObjectAcl(GetObjectAclRequest request)
AccessControlList
getObjectAcl(java.lang.String bucketName, java.lang.String key)
ObjectLockLegalHold
getObjectLegalHold(GetObjectLegalHoldRequest request)
Get Object Legal Hold configuration using parameters inrequest
.ObjectLockConfiguration
getObjectLockConfiguration(java.lang.String bucketName)
Get the Object Lock configuration for bucketbucketName
.S3ObjectMetadata
getObjectMetadata(GetObjectMetadataRequest request)
Gets metadata using the parameters specified inrequest
S3ObjectMetadata
getObjectMetadata(java.lang.String bucketName, java.lang.String key)
Gets metadata for objectkey
in bucketbucketName
ObjectLockRetention
getObjectRetention(GetObjectRetentionRequest request)
Get Object Lock Retention using parameters inrequest
.ObjectTagging
getObjectTagging(GetObjectTaggingRequest request)
java.net.URL
getPresignedUrl(PresignedUrlRequest request)
Generates a pre-signed URL using the parameters specified inrequest
java.net.URL
getPresignedUrl(java.lang.String bucketName, java.lang.String key, java.util.Date expirationTime)
Generates a pre-signed URL to read objectkey
in bucketbucketName
.InitiateMultipartUploadResult
initiateMultipartUpload(InitiateMultipartUploadRequest request)
java.lang.String
initiateMultipartUpload(java.lang.String bucketName, java.lang.String key)
MetadataSearchList
listBucketMetadataSearchKeys(java.lang.String bucketName)
Lists the metadata search keys associated with the givne bucket.ListBucketsResult
listBuckets()
Lists the buckets owned by the userListBucketsResult
listBuckets(ListBucketsRequest request)
List the buckets owned by the user using the parameters specified inrequest
ListDataNode
listDataNodes()
Lists all of the data nodes in the current VDCListObjectsResult
listMoreObjects(ListObjectsResult lastResult)
Gets the next page of objects using the results of a previous list-objects callListVersionsResult
listMoreVersions(ListVersionsResult lastResult)
Gets the next page of object versions using the results of a previous list-versions callListMultipartUploadsResult
listMultipartUploads(ListMultipartUploadsRequest request)
ListMultipartUploadsResult
listMultipartUploads(java.lang.String bucketName)
ListObjectsResult
listObjects(ListObjectsRequest request)
Lists objects in a bucket using parameters specified inrequest
ListObjectsResult
listObjects(java.lang.String bucketName)
Lists all objects inbucketName
with no restrictionsListObjectsResult
listObjects(java.lang.String bucketName, java.lang.String prefix)
Lists objects inbucketName
that start withprefix
ListPartsResult
listParts(ListPartsRequest request)
ListPartsResult
listParts(java.lang.String bucketName, java.lang.String key, java.lang.String uploadId)
MetadataSearchList
listSystemMetadataSearchKeys()
Lists the system metadata search keys.ListVersionsResult
listVersions(ListVersionsRequest request)
Lists all versions of all objects in a bucket using the parameters specified inrequest
ListVersionsResult
listVersions(java.lang.String bucketName, java.lang.String prefix)
Lists all versions of all objects inbucketName
that start withprefix
PingResponse
pingNode(Protocol protocol, java.lang.String host, int port)
Issues an unauthenticated ping request to the given host using the given protocol and port.PingResponse
pingNode(java.lang.String host)
Issues an unauthenticated ping request to the specified host.PutObjectResult
putObject(PutObjectRequest request)
Creates or updates an object using the parameters specified inrequest
void
putObject(java.lang.String bucketName, java.lang.String key, Range range, java.lang.Object content)
Updates objectkey
in bucketbucketName
at the specified byterange
with newcontent
void
putObject(java.lang.String bucketName, java.lang.String key, java.lang.Object content, java.lang.String contentType)
Creates or overwrites an object inbucketName
namedkey
containingcontent
and havingcontentType
void
putObjectTagging(PutObjectTaggingRequest request)
QueryObjectsResult
queryMoreObjects(QueryObjectsResult lastResult)
Gets the next page of objects using the results of a previous query-objects callQueryObjectsResult
queryObjects(QueryObjectsRequest request)
Queries objects in a bucket using parameters specified inrequest
<T> T
readObject(java.lang.String bucketName, java.lang.String key, java.lang.Class<T> objectType)
Reads objectkey
in bucketbucketName
and converts it toobjectType
, provided the conversion is supported by the implementation.<T> T
readObject(java.lang.String bucketName, java.lang.String key, java.lang.String versionId, java.lang.Class<T> objectType)
Reads versionversionId
of objectkey
in bucketbucketName
and converts it toobjectType
, provided the conversion is supported by the implementation.java.io.InputStream
readObjectStream(java.lang.String bucketName, java.lang.String key, Range range)
Readsrange
bytes of objectkey
in bucketbucketName
as a stream.void
setBucketAcl(SetBucketAclRequest request)
Sets the ACL of a bucket using parameters inrequest
void
setBucketAcl(java.lang.String bucketName, AccessControlList acl)
Sets the specified ACL onbucketName
void
setBucketAcl(java.lang.String bucketName, CannedAcl cannedAcl)
Sets the specified canned ACL onbucketName
void
setBucketCors(java.lang.String bucketName, CorsConfiguration corsConfiguration)
Sets the CORS configuration forbucketName
void
setBucketLifecycle(java.lang.String bucketName, LifecycleConfiguration lifecycleConfiguration)
Sets the lifecycle configuration forbucketName
void
setBucketPolicy(java.lang.String bucketName, BucketPolicy policy)
Sets the bucket policy forbucketName
void
setBucketStaleReadAllowed(java.lang.String bucketName, boolean staleReadsAllowed)
Sets whether stale reads are allowed onbucketName
.void
setBucketVersioning(java.lang.String bucketName, VersioningConfiguration versioningConfiguration)
Enables or suspends versioning onbucketName
void
setObjectAcl(SetObjectAclRequest request)
void
setObjectAcl(java.lang.String bucketName, java.lang.String key, AccessControlList acl)
void
setObjectAcl(java.lang.String bucketName, java.lang.String key, CannedAcl cannedAcl)
void
setObjectLegalHold(SetObjectLegalHoldRequest request)
Set Object Legal Hold configuration using parameters inrequest
.void
setObjectLockConfiguration(java.lang.String bucketName, ObjectLockConfiguration objectLockConfiguration)
Set Object Lock Configuration for bucketbucketName
using parameters inobjectLockConfiguration
.void
setObjectMetadata(java.lang.String bucketName, java.lang.String key, S3ObjectMetadata objectMetadata)
Sets metadata on objectkey
in bucketbucketName
void
setObjectRetention(SetObjectRetentionRequest request)
Set Object Lock Retention using parameters inrequest
.void
shutdown()
Deprecated.(2.0.3) use destroy() insteadMultipartPartETag
uploadPart(UploadPartRequest request)
-
-
-
Method Detail
-
destroy
void destroy()
Always call .destroy() when finished with a client to ensure that any attached resources and background processes are released/terminated (i.e. polling threads, host list providers and connection pools)
-
shutdown
void shutdown()
Deprecated.(2.0.3) use destroy() instead
-
listDataNodes
ListDataNode listDataNodes()
Lists all of the data nodes in the current VDC
-
pingNode
PingResponse pingNode(java.lang.String host)
Issues an unauthenticated ping request to the specified host.
-
pingNode
PingResponse pingNode(Protocol protocol, java.lang.String host, int port)
Issues an unauthenticated ping request to the given host using the given protocol and port.
-
listBuckets
ListBucketsResult listBuckets()
Lists the buckets owned by the user
-
listBuckets
ListBucketsResult listBuckets(ListBucketsRequest request)
List the buckets owned by the user using the parameters specified inrequest
-
bucketExists
boolean bucketExists(java.lang.String bucketName)
Returns whetherbucketName
exists in the user's namespace (or the configured namespace of the client). This call will return true if the bucket exists even if the user does not have access to the bucket. If this call returns false, a subsequent call to createBucket with the same name should succeed
-
createBucket
void createBucket(java.lang.String bucketName)
Creates a bucket with the specified name in the default namespace and with the default replication group
-
createBucket
void createBucket(CreateBucketRequest request)
Creates a bucket using the parameters specified inrequest
- See Also:
CreateBucketRequest
-
getBucketInfo
BucketInfo getBucketInfo(java.lang.String bucketName)
Gets information about a bucket
-
deleteBucket
void deleteBucket(java.lang.String bucketName)
DeletesbucketName
. The bucket must be empty of all objects and versions before it can be deleted
-
deleteBucket
void deleteBucket(DeleteBucketRequest request)
DeletesbucketName
. The bucket could contain objects and versions before it can be deleted
-
getBucketDeletionStatus
BucketDeletionStatus getBucketDeletionStatus(java.lang.String bucketName)
Gets status of background bucket cleanup tasks forbucketName
if present
-
setBucketAcl
void setBucketAcl(java.lang.String bucketName, AccessControlList acl)
Sets the specified ACL onbucketName
- See Also:
AccessControlList
-
setBucketAcl
void setBucketAcl(java.lang.String bucketName, CannedAcl cannedAcl)
Sets the specified canned ACL onbucketName
- See Also:
CannedAcl
-
setBucketAcl
void setBucketAcl(SetBucketAclRequest request)
Sets the ACL of a bucket using parameters inrequest
- See Also:
SetBucketAclRequest
-
getBucketAcl
AccessControlList getBucketAcl(java.lang.String bucketName)
Retrieves the ACL ofbucketName
- See Also:
AccessControlList
-
setBucketCors
void setBucketCors(java.lang.String bucketName, CorsConfiguration corsConfiguration)
Sets the CORS configuration forbucketName
- See Also:
CorsConfiguration
-
getBucketCors
CorsConfiguration getBucketCors(java.lang.String bucketName)
Retrieves the CORS configuration forbucketName
. If no CORS configuration exists for the specified bucket,null
is returned- See Also:
CorsConfiguration
-
deleteBucketCors
void deleteBucketCors(java.lang.String bucketName)
Removes the CORS configuration forbucketName
-
setBucketLifecycle
void setBucketLifecycle(java.lang.String bucketName, LifecycleConfiguration lifecycleConfiguration)
Sets the lifecycle configuration forbucketName
- See Also:
LifecycleConfiguration
-
getBucketLifecycle
LifecycleConfiguration getBucketLifecycle(java.lang.String bucketName)
Retrieves the lifecycle configuration forbucketName
. If no lifecycle exists for the specified bucket,null
is returned- See Also:
LifecycleConfiguration
-
deleteBucketLifecycle
void deleteBucketLifecycle(java.lang.String bucketName)
Deletes the lifecycle configuration forbucketName
-
setBucketPolicy
void setBucketPolicy(java.lang.String bucketName, BucketPolicy policy)
Sets the bucket policy forbucketName
- See Also:
BucketPolicy
-
getBucketPolicy
BucketPolicy getBucketPolicy(java.lang.String bucketName)
Gets the bucket policy forbucketName
- See Also:
BucketPolicy
-
deleteBucketPolicy
void deleteBucketPolicy(java.lang.String bucketName)
Deletes the bucket policy forbucketName
- See Also:
BucketPolicy
-
getBucketLocation
LocationConstraint getBucketLocation(java.lang.String bucketName)
Gets the location ofbucketName
. This call will return the name of the primary VDC of the bucket
-
setBucketVersioning
void setBucketVersioning(java.lang.String bucketName, VersioningConfiguration versioningConfiguration)
Enables or suspends versioning onbucketName
-
getBucketVersioning
VersioningConfiguration getBucketVersioning(java.lang.String bucketName)
Retrieves the versioning status ofbucketName
(none, enabled or suspended)
-
setBucketStaleReadAllowed
void setBucketStaleReadAllowed(java.lang.String bucketName, boolean staleReadsAllowed)
Sets whether stale reads are allowed onbucketName
. If true, during a temporary site outage (TSO), objects in the bucket may still be read from secondary sites, but these reads are not guaranteed to be strongly consistent (they may be stale if the primary site is inaccessible). Note that stale reads are not supported onfilesystem
buckets.
-
listSystemMetadataSearchKeys
MetadataSearchList listSystemMetadataSearchKeys()
Lists the system metadata search keys.
-
listBucketMetadataSearchKeys
MetadataSearchList listBucketMetadataSearchKeys(java.lang.String bucketName)
Lists the metadata search keys associated with the givne bucket.
-
queryObjects
QueryObjectsResult queryObjects(QueryObjectsRequest request)
Queries objects in a bucket using parameters specified inrequest
-
queryMoreObjects
QueryObjectsResult queryMoreObjects(QueryObjectsResult lastResult)
Gets the next page of objects using the results of a previous query-objects call
-
listObjects
ListObjectsResult listObjects(java.lang.String bucketName)
Lists all objects inbucketName
with no restrictions
-
listObjects
ListObjectsResult listObjects(java.lang.String bucketName, java.lang.String prefix)
Lists objects inbucketName
that start withprefix
-
listObjects
ListObjectsResult listObjects(ListObjectsRequest request)
Lists objects in a bucket using parameters specified inrequest
-
listMoreObjects
ListObjectsResult listMoreObjects(ListObjectsResult lastResult)
Gets the next page of objects using the results of a previous list-objects call
-
listVersions
ListVersionsResult listVersions(java.lang.String bucketName, java.lang.String prefix)
Lists all versions of all objects inbucketName
that start withprefix
-
listVersions
ListVersionsResult listVersions(ListVersionsRequest request)
Lists all versions of all objects in a bucket using the parameters specified inrequest
-
listMoreVersions
ListVersionsResult listMoreVersions(ListVersionsResult lastResult)
Gets the next page of object versions using the results of a previous list-versions call
-
putObject
void putObject(java.lang.String bucketName, java.lang.String key, java.lang.Object content, java.lang.String contentType)
Creates or overwrites an object inbucketName
namedkey
containingcontent
and havingcontentType
-
putObject
void putObject(java.lang.String bucketName, java.lang.String key, Range range, java.lang.Object content)
Updates objectkey
in bucketbucketName
at the specified byterange
with newcontent
-
putObject
PutObjectResult putObject(PutObjectRequest request)
Creates or updates an object using the parameters specified inrequest
-
appendObject
long appendObject(java.lang.String bucketName, java.lang.String key, java.lang.Object content)
Atomically appends to the end of objectkey
in bucketbucketName
withcontent
and returns the starting offset of the append operation
-
copyObject
CopyObjectResult copyObject(java.lang.String sourceBucketName, java.lang.String sourceKey, java.lang.String bucketName, java.lang.String key)
Remotely copies objectsourceKey
in bucketsourceBucketName
tokey
inbucketName
-
copyObject
CopyObjectResult copyObject(CopyObjectRequest request)
Remotely copies an object using the parameters specified inrequest
-
readObject
<T> T readObject(java.lang.String bucketName, java.lang.String key, java.lang.Class<T> objectType)
Reads objectkey
in bucketbucketName
and converts it toobjectType
, provided the conversion is supported by the implementation.Note: this method will return
null
for 304 and 412 responses (failed preconditions).
-
readObject
<T> T readObject(java.lang.String bucketName, java.lang.String key, java.lang.String versionId, java.lang.Class<T> objectType)
Reads versionversionId
of objectkey
in bucketbucketName
and converts it toobjectType
, provided the conversion is supported by the implementation.Note: this method will return
null
for 304 and 412 responses (failed preconditions).
-
readObjectStream
java.io.InputStream readObjectStream(java.lang.String bucketName, java.lang.String key, Range range)
Readsrange
bytes of objectkey
in bucketbucketName
as a stream.Note: this method will return
null
for 304 and 412 responses (failed preconditions).
-
getObject
GetObjectResult<java.io.InputStream> getObject(java.lang.String bucketName, java.lang.String key)
Gets objectkey
in bucketbucketName
. Object details as well as the data stream (obtained fromGetObjectResult.getObject()
are contained in theGetObjectResult
instance.Note: this method will return
null
for 304 and 412 responses (failed preconditions). This method will open a stream for the object data. Be sure to callgetObject()
and, if requesting anInputStream
, properly close the stream to release the connection.
-
getObject
<T> GetObjectResult<T> getObject(GetObjectRequest request, java.lang.Class<T> objectType)
Gets an object using the parameters specified inrequest
. Object details as well as the translated data (converted toobjectType
) are contained in theGetObjectResult
instance.Note: this method will return
null
for 304 and 412 responses (failed preconditions). This method will open a stream for the object data. Be sure to callgetObject()
and, if requesting anInputStream
, properly close the stream to release the connection.
-
getPresignedUrl
java.net.URL getPresignedUrl(java.lang.String bucketName, java.lang.String key, java.util.Date expirationTime)
Generates a pre-signed URL to read objectkey
in bucketbucketName
. The URL will be valid untilexpirationTime
-
getPresignedUrl
java.net.URL getPresignedUrl(PresignedUrlRequest request)
Generates a pre-signed URL using the parameters specified inrequest
-
deleteObject
void deleteObject(java.lang.String bucketName, java.lang.String key)
Deletes objectkey
from bucketbucketName
-
deleteObject
void deleteObject(DeleteObjectRequest request)
Deletes object using the parameters specified inrequest
-
deleteVersion
void deleteVersion(java.lang.String bucketName, java.lang.String key, java.lang.String versionId)
Delets versionversionId
of objectkey
in bucketbucketName
.Note: versioning must be enabled in the bucket.
-
deleteObjects
DeleteObjectsResult deleteObjects(DeleteObjectsRequest request)
Deletes objects using the parameters specified inrequest
-
setObjectMetadata
void setObjectMetadata(java.lang.String bucketName, java.lang.String key, S3ObjectMetadata objectMetadata)
Sets metadata on objectkey
in bucketbucketName
-
getObjectMetadata
S3ObjectMetadata getObjectMetadata(java.lang.String bucketName, java.lang.String key)
Gets metadata for objectkey
in bucketbucketName
-
getObjectMetadata
S3ObjectMetadata getObjectMetadata(GetObjectMetadataRequest request)
Gets metadata using the parameters specified inrequest
-
setObjectAcl
void setObjectAcl(java.lang.String bucketName, java.lang.String key, AccessControlList acl)
-
setObjectAcl
void setObjectAcl(java.lang.String bucketName, java.lang.String key, CannedAcl cannedAcl)
-
setObjectAcl
void setObjectAcl(SetObjectAclRequest request)
-
getObjectAcl
AccessControlList getObjectAcl(java.lang.String bucketName, java.lang.String key)
-
getObjectAcl
AccessControlList getObjectAcl(GetObjectAclRequest request)
-
extendRetentionPeriod
void extendRetentionPeriod(java.lang.String bucketName, java.lang.String key, java.lang.Long period)
Extend retentionperiod
(seconds) on objectkey
in bucketbucketName
. Note: New retention period value can only be increased. That is, it can be the same as the current or greater value. If the new retention period value is -1, infinite retention applies on that object.
-
listMultipartUploads
ListMultipartUploadsResult listMultipartUploads(java.lang.String bucketName)
-
listMultipartUploads
ListMultipartUploadsResult listMultipartUploads(ListMultipartUploadsRequest request)
-
initiateMultipartUpload
java.lang.String initiateMultipartUpload(java.lang.String bucketName, java.lang.String key)
-
initiateMultipartUpload
InitiateMultipartUploadResult initiateMultipartUpload(InitiateMultipartUploadRequest request)
-
listParts
ListPartsResult listParts(java.lang.String bucketName, java.lang.String key, java.lang.String uploadId)
-
listParts
ListPartsResult listParts(ListPartsRequest request)
-
uploadPart
MultipartPartETag uploadPart(UploadPartRequest request)
-
copyPart
CopyPartResult copyPart(CopyPartRequest request)
-
completeMultipartUpload
CompleteMultipartUploadResult completeMultipartUpload(CompleteMultipartUploadRequest request)
-
abortMultipartUpload
void abortMultipartUpload(AbortMultipartUploadRequest request)
-
setObjectLockConfiguration
void setObjectLockConfiguration(java.lang.String bucketName, ObjectLockConfiguration objectLockConfiguration)
Set Object Lock Configuration for bucketbucketName
using parameters inobjectLockConfiguration
.
-
getObjectLockConfiguration
ObjectLockConfiguration getObjectLockConfiguration(java.lang.String bucketName)
Get the Object Lock configuration for bucketbucketName
. If Object Lock Configuration is not set,null
is returned.
-
enableObjectLock
void enableObjectLock(java.lang.String bucketName)
Enable Object Lock for bucketbucketName
.
-
setObjectLegalHold
void setObjectLegalHold(SetObjectLegalHoldRequest request)
Set Object Legal Hold configuration using parameters inrequest
.
-
getObjectLegalHold
ObjectLockLegalHold getObjectLegalHold(GetObjectLegalHoldRequest request)
Get Object Legal Hold configuration using parameters inrequest
.
-
setObjectRetention
void setObjectRetention(SetObjectRetentionRequest request)
Set Object Lock Retention using parameters inrequest
.
-
getObjectRetention
ObjectLockRetention getObjectRetention(GetObjectRetentionRequest request)
Get Object Lock Retention using parameters inrequest
.
-
copyRange
CopyRangeResult copyRange(CopyRangeRequest request)
This API is an ECS extension API. IN addition to standard UploadPartCopy, it can source from multiple objects and reference ranges inside those objects. And it can work though with many Internet proxy servers, web servers (ECS included), and load balancers which may have a limit on HTTP headers.
-
putObjectTagging
void putObjectTagging(PutObjectTaggingRequest request)
-
getObjectTagging
ObjectTagging getObjectTagging(GetObjectTaggingRequest request)
-
deleteObjectTagging
void deleteObjectTagging(DeleteObjectTaggingRequest request)
-
-