public class DeleteObjectRequest extends GenericRequest
Constructor and Description |
---|
DeleteObjectRequest() |
DeleteObjectRequest(String bucketName,
String objectKey)
Constructor
|
DeleteObjectRequest(String bucketName,
String objectKey,
String versionId)
Constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getBucketName()
Obtain the name of the bucket to which the to-be-deleted object belongs.
|
String |
getObjectKey()
Obtain the name of the object to be deleted.
|
String |
getVersionId()
Obtain the version ID of the object to be deleted.
|
void |
setBucketName(String bucketName)
Set the name of the bucket to which the to-be-deleted object belongs.
|
void |
setObjectKey(String objectKey)
Set the name of the object to be deleted.
|
void |
setVersionId(String versionId)
Set the version ID of the object to be deleted.
|
String |
toString() |
isRequesterPays, setRequesterPays
public DeleteObjectRequest()
public DeleteObjectRequest(String bucketName, String objectKey)
bucketName
- Bucket nameobjectKey
- Object namepublic String getVersionId()
public void setVersionId(String versionId)
versionId
- Version ID of the object to be deletedpublic String getBucketName()
public void setBucketName(String bucketName)
bucketName
- Name of the bucket to which the to-be-deleted object belongspublic String getObjectKey()
public void setObjectKey(String objectKey)
objectKey
- Name of the object to be deletedpublic String toString()
toString
in class GenericRequest
Copyright © 2021. All rights reserved.