类 ListMultipartUploadsRequest
- java.lang.Object
-
- com.baidubce.model.AbstractBceRequest
-
- com.baidubce.services.bos.model.GenericBucketRequest
-
- com.baidubce.services.bos.model.ListMultipartUploadsRequest
-
public class ListMultipartUploadsRequest extends GenericBucketRequest
Container for the parameters of the ListMultipartUploads operation.Required Parameters: BucketName
-
-
构造器概要
构造器 构造器 说明 ListMultipartUploadsRequest(String bucketName)Constructs a new ListMultipartUploadsRequest to list the multipart uploads from the specified bucket.ListMultipartUploadsRequest(String bucketName, String prefix)Constructs a new ListMultipartUploadsRequest to list the multipart uploads from the specified bucket.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetDelimiter()Returns the optional delimiter parameter that causes multipart uploads for keys that contain the same string between the prefix and the first occurrence of the delimiter to be combined into a single result element.StringgetKeyMarker()Returns the optional key marker indicating where in the results to begin listing.intgetMaxUploads()Returns the optional maximum number of uploads to return, or null if no maximum number of uploads has been set for this request.StringgetPrefix()Returns the optional prefix parameter that restricts the response to multipart uploads for keys that begin with the specified prefix.voidsetDelimiter(String delimiter)Sets the optional delimiter parameter that causes multipart uploads for keys that contain the same string between the prefix and the first occurrence of the delimiter to be combined into a single result element.voidsetKeyMarker(String keyMarker)Sets the optional key marker indicating where in the results to begin listing.voidsetMaxUploads(int maxUploads)Sets the optional maximum number of uploads to return.voidsetPrefix(String prefix)Sets the optional prefix parameter, restricting the response to multipart uploads for keys that begin with the specified prefix.ListMultipartUploadsRequestwithBucketName(String bucketName)Sets The name of the bucket containing the uploads to list, and returns this updated ListMultipartUploadsRequest object so that additional method calls can be chained together.ListMultipartUploadsRequestwithDelimiter(String delimiter)Sets the optional delimiter parameter that causes multipart uploads for keys that contain the same string between the prefix and the first occurrence of the delimiter to be rolled up into a single result element.ListMultipartUploadsRequestwithKeyMarker(String keyMarker)Sets the KeyMarker property for this request.ListMultipartUploadsRequestwithMaxUploads(int maxUploads)Sets the optional maximum number of uploads to return and returns this updated ListMultipartUploadsRequest object so that additional method calls can be chained together.ListMultipartUploadsRequestwithPrefix(String prefix)Sets the optional prefix parameter restricting the response to multipart uploads for keys that begin with the specified prefix.ListMultipartUploadsRequestwithRequestCredentials(BceCredentials credentials)-
从类继承的方法 com.baidubce.services.bos.model.GenericBucketRequest
getBucketName, setBucketName
-
从类继承的方法 com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
-
-
-
-
构造器详细资料
-
ListMultipartUploadsRequest
public ListMultipartUploadsRequest(String bucketName)
Constructs a new ListMultipartUploadsRequest to list the multipart uploads from the specified bucket.- 参数:
bucketName- The name of the bucket containing the uploads to list.
-
ListMultipartUploadsRequest
public ListMultipartUploadsRequest(String bucketName, String prefix)
Constructs a new ListMultipartUploadsRequest to list the multipart uploads from the specified bucket.- 参数:
bucketName- The name of the bucket containing the uploads to list.prefix- The prefix of the object.
-
-
方法详细资料
-
withRequestCredentials
public ListMultipartUploadsRequest withRequestCredentials(BceCredentials credentials)
- 指定者:
withRequestCredentials在类中AbstractBceRequest
-
withBucketName
public ListMultipartUploadsRequest withBucketName(String bucketName)
Sets The name of the bucket containing the uploads to list, and returns this updated ListMultipartUploadsRequest object so that additional method calls can be chained together.- 指定者:
withBucketName在类中GenericBucketRequest- 参数:
bucketName- The name of the bucket containing the uploads to list.- 返回:
- This updated ListMultipartUploadsRequest object.
-
getMaxUploads
public int getMaxUploads()
Returns the optional maximum number of uploads to return, or null if no maximum number of uploads has been set for this request.- 返回:
- The optional maximum number of uploads to return.
-
setMaxUploads
public void setMaxUploads(int maxUploads)
Sets the optional maximum number of uploads to return.- 参数:
maxUploads- The maximum number of uploads to return.
-
withMaxUploads
public ListMultipartUploadsRequest withMaxUploads(int maxUploads)
Sets the optional maximum number of uploads to return and returns this updated ListMultipartUploadsRequest object so that additional method calls can be chained together.- 参数:
maxUploads- The optional maximum number of uploads to return.- 返回:
- This updated ListMultipartUploadsRequest object.
-
getKeyMarker
public String getKeyMarker()
Returns the optional key marker indicating where in the results to begin listing.Together with the upload ID marker, specifies the multipart upload after which listing should begin.
If the upload ID marker is not specified, only the keys lexicographically greater than the specified key-marker will be included in the list.
If the upload ID marker is specified, any multipart uploads for a key equal to the key-marker may also be included, provided those multipart uploads have upload IDs lexicographically greater than the specified marker.
- 返回:
- The optional key marker indicating where in the results to begin listing.
-
setKeyMarker
public void setKeyMarker(String keyMarker)
Sets the optional key marker indicating where in the results to begin listing.Together with the upload ID marker, specifies the multipart upload after which listing should begin.
If the upload ID marker is not specified, only the keys lexicographically greater than the specified key-marker will be included in the list.
If the upload ID marker is specified, any multipart uploads for a key equal to the key-marker may also be included, provided those multipart uploads have upload IDs lexicographically greater than the specified marker.
- 参数:
keyMarker- The optional key marker indicating where in the results to begin listing.
-
withKeyMarker
public ListMultipartUploadsRequest withKeyMarker(String keyMarker)
Sets the KeyMarker property for this request.- 参数:
keyMarker- The value that KeyMarker is set to- 返回:
- the request with the KeyMarker set
-
getDelimiter
public String getDelimiter()
Returns the optional delimiter parameter that causes multipart uploads for keys that contain the same string between the prefix and the first occurrence of the delimiter to be combined into a single result element. These combined keys are not returned elsewhere in the response. The most commonly used delimiter is "/", which simulates a hierarchical organization similar to a file system directory structure.- 返回:
- The optional delimiter parameter that causes multipart uploads for keys that contain the same string between the prefix and the first occurrence of the delimiter to be combined into a single result element.
-
setDelimiter
public void setDelimiter(String delimiter)
Sets the optional delimiter parameter that causes multipart uploads for keys that contain the same string between the prefix and the first occurrence of the delimiter to be combined into a single result element.- 参数:
delimiter- The optional delimiter parameter that causes multipart uploads for keys that contain the same string between the prefix and the first occurrence of the delimiter to be combined into a single result element.
-
withDelimiter
public ListMultipartUploadsRequest withDelimiter(String delimiter)
Sets the optional delimiter parameter that causes multipart uploads for keys that contain the same string between the prefix and the first occurrence of the delimiter to be rolled up into a single result element. Returns thisListMultipartUploadsRequest, enabling additional method calls to be chained together.- 参数:
delimiter- The optional delimiter parameter that causes multipart uploads for keys that contain the same string between the prefix and the first occurrence of the delimiter to be rolled up into a single result element.- 返回:
- This
ListMultipartUploadsRequest, enabling additional method calls to be chained together.
-
getPrefix
public String getPrefix()
Returns the optional prefix parameter that restricts the response to multipart uploads for keys that begin with the specified prefix. Use prefixes to separate a bucket into different sets of keys, similar to how a file system organizes files into directories.- 返回:
- The optional prefix parameter restricting the response to multipart uploads for keys that begin with the specified prefix.
-
setPrefix
public void setPrefix(String prefix)
Sets the optional prefix parameter, restricting the response to multipart uploads for keys that begin with the specified prefix.- 参数:
prefix- The optional prefix parameter, restricting the response to multipart uploads for keys that begin with the specified prefix.
-
withPrefix
public ListMultipartUploadsRequest withPrefix(String prefix)
Sets the optional prefix parameter restricting the response to multipart uploads for keys that begin with the specified prefix. Returns thisListMultipartUploadsRequest, enabling additional method calls to be chained together.- 参数:
prefix- The optional prefix parameter restricting the response to multipart uploads for keys that begin with the specified prefix.- 返回:
- This
ListMultipartUploadsRequest, enabling additional method calls to be chained together.
-
-