|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.s3.model.DeleteObjectsRequest
public class DeleteObjectsRequest
Provides options for deleting multiple objects in a specified bucket. Once deleted, the object(s) can only be restored if versioning was enabled when the object(s) was deleted.
AmazonS3.deleteObjects(DeleteObjectsRequest)
Nested Class Summary | |
---|---|
static class |
DeleteObjectsRequest.KeyVersion
A key to delete, with an optional version attribute. |
Constructor Summary | |
---|---|
DeleteObjectsRequest(String bucketName)
Constructs a new DeleteObjectsRequest , specifying the objects'
bucket name. |
Method Summary | |
---|---|
String |
getBucketName()
Gets the name of the Amazon S3 bucket containing the object(s) to delete. |
List<DeleteObjectsRequest.KeyVersion> |
getKeys()
Returns the list of keys to delete from this bucket. |
MultiFactorAuthentication |
getMfa()
Gets the optional Multi-Factor Authentication information included with this request. |
boolean |
getQuiet()
Returns the quiet element for this request. |
void |
setBucketName(String bucketName)
Sets the name of the Amazon S3 bucket containing the object(s) to delete. |
void |
setKeys(List<DeleteObjectsRequest.KeyVersion> keys)
Sets the list of keys to delete from this bucket, clearing any existing list of keys. |
void |
setMfa(MultiFactorAuthentication mfa)
Sets the optional Multi-Factor Authentication information to include with this request. |
void |
setQuiet(boolean quiet)
Sets the quiet element for this request. |
DeleteObjectsRequest |
withBucketName(String bucketName)
Sets the name of the Amazon S3 bucket containing the object(s) to delete and returns this object, enabling additional method calls to be chained together. |
DeleteObjectsRequest |
withKeys(List<DeleteObjectsRequest.KeyVersion> keys)
Sets the list of keys to delete from this bucket, clearing any existing list of keys. |
DeleteObjectsRequest |
withKeys(String... keys)
Convenience method to specify a set of keys without versions. |
DeleteObjectsRequest |
withMfa(MultiFactorAuthentication mfa)
Sets the optional Multi-Factor Authentication information to include with this request Returns this, enabling additional method calls to be chained together. |
DeleteObjectsRequest |
withQuiet(boolean quiet)
Sets the quiet element for this request. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DeleteObjectsRequest(String bucketName)
DeleteObjectsRequest
, specifying the objects'
bucket name.
bucketName
- The name of the Amazon S3 bucket containing the object(s) to
delete.Method Detail |
---|
public String getBucketName()
setBucketName(String)
public void setBucketName(String bucketName)
bucketName
- The name of the Amazon S3 bucket containing the object(s) to
delete.getBucketName()
public DeleteObjectsRequest withBucketName(String bucketName)
bucketName
- The name of the Amazon S3 bucket containing the object(s) to
delete.
DeleteObjectsRequest
object, enabling
additional method calls to be chained together.public MultiFactorAuthentication getMfa()
Gets the optional Multi-Factor Authentication information included with this request.
Multi-Factor Authentication is required when deleting an object version from a bucket which has MFADelete enabled in its bucket versioning configuration.
See BucketVersioningConfiguration.setMfaDeleteEnabled(Boolean)
for more information on MFADelete.
public void setMfa(MultiFactorAuthentication mfa)
Sets the optional Multi-Factor Authentication information to include with this request.
Multi-Factor Authentication is required when deleting an object version from a bucket which has MFADelete enabled in its bucket versioning configuration.
See BucketVersioningConfiguration.setMfaDeleteEnabled(Boolean)
for more information on MFADelete.
mfa
- The optional Multi-Factor Authentication information to
include with this request.public DeleteObjectsRequest withMfa(MultiFactorAuthentication mfa)
Sets the optional Multi-Factor Authentication information to include with this request Returns this, enabling additional method calls to be chained together.
Multi-Factor Authentication is required when deleting an object version from a bucket which has MFADelete enabled in its bucket versioning configuration
See BucketVersioningConfiguration.setMfaDeleteEnabled(Boolean)
for more information on MFADelete.
mfa
- The optional Multi-Factor Authentication information to
include with this request.
public void setQuiet(boolean quiet)
public boolean getQuiet()
public DeleteObjectsRequest withQuiet(boolean quiet)
public void setKeys(List<DeleteObjectsRequest.KeyVersion> keys)
keys
- The list of keys to delete from this bucketpublic DeleteObjectsRequest withKeys(List<DeleteObjectsRequest.KeyVersion> keys)
keys
- The list of keys to delete from this bucket
public List<DeleteObjectsRequest.KeyVersion> getKeys()
public DeleteObjectsRequest withKeys(String... keys)
withKeys(List)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |