|
||||||||||
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.DeleteObjectRequest
public class DeleteObjectRequest
Deletes the specified object in the specified bucket. Once deleted, the object can only be restored if versioning was enabled when the object was deleted.
Note: If you delete an object that does not exist, Amazon S3 will return a success (not an error message).
Constructor Summary | |
---|---|
DeleteObjectRequest(String bucketName,
String key)
Constructs a new DeleteObjectRequest, ready to be executed and delete the specified object. |
Method Summary | |
---|---|
String |
getBucketName()
Returns the name of the Amazon S3 bucket containing the object to delete. |
String |
getKey()
Returns the key of the object to delete. |
void |
setBucketName(String bucketName)
Sets the name of the Amazon S3 bucket containing the object to delete. |
void |
setKey(String key)
Sets the key of the object to delete. |
DeleteObjectRequest |
withBucketName(String bucketName)
Sets the name of the Amazon S3 bucket containing the object to delete, and returns this object so that additional method calls may be chained together. |
DeleteObjectRequest |
withKey(String key)
Sets the key of the object to delete, and returns this object so that additional method calls may be chained together. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DeleteObjectRequest(String bucketName, String key)
bucketName
- The name of the Amazon S3 bucket containing the object to
delete.key
- The key of the object to delete.Method Detail |
---|
public String getBucketName()
public void setBucketName(String bucketName)
bucketName
- The name of the Amazon S3 bucket containing the object to
delete.public DeleteObjectRequest withBucketName(String bucketName)
bucketName
- The name of the Amazon S3 bucket containing the object to
delete.
public String getKey()
public void setKey(String key)
key
- The key of the object to delete.public DeleteObjectRequest withKey(String key)
key
- The key of the object to delete.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |