类 DeleteObjectsRequest

java.lang.Object
com.obs.services.model.GenericRequest
com.obs.services.model.DeleteObjectsRequest

public class DeleteObjectsRequest extends GenericRequest
Parameters in an object batch deletion request
  • 构造器详细资料

    • DeleteObjectsRequest

      public DeleteObjectsRequest()
    • DeleteObjectsRequest

      public DeleteObjectsRequest(String bucketName)
      Constructor
      参数:
      bucketName - Bucket name
    • DeleteObjectsRequest

      public DeleteObjectsRequest(String bucketName, boolean quiet, KeyAndVersion[] keyAndVersions)
      Constructor
      参数:
      bucketName - Bucket name
      quiet - Deletion response mode. "false" indicates that the "verbose" mode is used and "true" indicates that the "quiet" mode is used.
      keyAndVersions - To-be-deleted object array
    • DeleteObjectsRequest

      public DeleteObjectsRequest(String bucketName, boolean quiet, KeyAndVersion[] keyAndVersions, String encodingType)
      Constructor
      参数:
      bucketName - Bucket name
      quiet - Deletion response mode. "false" indicates that the "verbose" mode is used and "true" indicates that the "quiet" mode is used.
      keyAndVersions - To-be-deleted object array
      encodingType - The encoding type use for encode objectKey.
  • 方法详细资料

    • isQuiet

      public boolean isQuiet()
      Obtain the response mode of the batch deletion. "false" indicates that the "verbose" mode is used and "true" indicates that the "quiet" mode is used.
      返回:
      Response mode of the object batch deletion request
    • setQuiet

      public void setQuiet(boolean quiet)
      Set the response mode for the batch deletion. "false" indicates that the "verbose" mode is used and "true" indicates that the "quiet" mode is used.
      参数:
      quiet - Response mode of the object batch deletion request
    • setEncodingType

      public void setEncodingType(String encodingType)
      Set the encoding type that used for encode objectkey
      参数:
      encodingType - could chose url.
    • getEncodingType

      public String getEncodingType()
      Get the encoding type that used for encode objectkey
      返回:
      encodingType
    • getKeyAndVersionsList

      public List<KeyAndVersion> getKeyAndVersionsList()
      Obtain the list of to-be-deleted objects.
      返回:
      List of to-be-deleted objects
    • addKeyAndVersion

      public KeyAndVersion addKeyAndVersion(String objectKey, String versionId)
      Add an object to be deleted.
      参数:
      objectKey - Object name
      versionId - Version ID of the object
      返回:
      Object newly added to the deletion list
    • addKeyAndVersion

      public KeyAndVersion addKeyAndVersion(String objectKey)
      Add an object to be deleted.
      参数:
      objectKey - Object name
      返回:
      Object newly added to the deletion list
    • getKeyAndVersions

      public KeyAndVersion[] getKeyAndVersions()
      Obtain the to-be-deleted object array.
      返回:
      To-be-deleted object array
    • setKeyAndVersions

      public void setKeyAndVersions(KeyAndVersion[] keyAndVersions)
      Specify the to-be-deleted object array.
      参数:
      keyAndVersions - To-be-deleted object array
    • toString

      public String toString()
      覆盖:
      toString 在类中 GenericRequest