com.baidubce.services.bos.model
Class DeleteMultipleObjectsRequest

java.lang.Object
  extended by com.baidubce.model.AbstractBceRequest
      extended by com.baidubce.services.bos.model.GenericBucketRequest
          extended by com.baidubce.services.bos.model.GenericObjectRequest
              extended by com.baidubce.services.bos.model.DeleteMultipleObjectsRequest

public class DeleteMultipleObjectsRequest
extends GenericObjectRequest

Provides options for deleting a multiple objects.


Constructor Summary
DeleteMultipleObjectsRequest()
           
 
Method Summary
 String getJsonDeleteObjects()
          Gets the jsonDeleteObjects expected to be deleted.
 List<String> getObjectKeys()
          Gets the object key list expected to be deleted.
 void setJsonDeleteObjects(String jsonDeleteObjects)
          Sets the jsonDeleteObjects expected to be deleted.
 void setObjectKeys(List<String> objectKeys)
          Sets the object key list expected to be deleted.
 DeleteMultipleObjectsRequest withBucketName(String bucketName)
           
 DeleteMultipleObjectsRequest withKey(String key)
           
 DeleteMultipleObjectsRequest withRequestCredentials(BceCredentials credentials)
           
 
Methods inherited from class com.baidubce.services.bos.model.GenericObjectRequest
getKey, setKey
 
Methods inherited from class com.baidubce.services.bos.model.GenericBucketRequest
getBucketName, setBucketName
 
Methods inherited from class com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteMultipleObjectsRequest

public DeleteMultipleObjectsRequest()
Method Detail

getJsonDeleteObjects

public String getJsonDeleteObjects()
Gets the jsonDeleteObjects expected to be deleted.

Returns:
json format for delete multiple objects.

setJsonDeleteObjects

public void setJsonDeleteObjects(String jsonDeleteObjects)
Sets the jsonDeleteObjects expected to be deleted.

Parameters:
jsonDeleteObjects - The json format for delete multiple objects.

getObjectKeys

public List<String> getObjectKeys()
Gets the object key list expected to be deleted.

Returns:
the object key list expected to be deleted.

setObjectKeys

public void setObjectKeys(List<String> objectKeys)
Sets the object key list expected to be deleted.

Parameters:
objectKeys - The object key list expected to be deleted.

withRequestCredentials

public DeleteMultipleObjectsRequest withRequestCredentials(BceCredentials credentials)
Specified by:
withRequestCredentials in class AbstractBceRequest

withBucketName

public DeleteMultipleObjectsRequest withBucketName(String bucketName)
Specified by:
withBucketName in class GenericBucketRequest

withKey

public DeleteMultipleObjectsRequest withKey(String key)
Specified by:
withKey in class GenericObjectRequest


Copyright © 2018. All rights reserved.