public class PutObjectsRequest extends AbstractBulkRequest
taskQueueNum, taskThreadNumbucketName, cancelHandler, httpMethod, userHeaders| 构造器 | 说明 |
|---|---|
PutObjectsRequest(String bucketName,
List<String> filePaths) |
Constructor
|
PutObjectsRequest(String bucketName,
String folderPath) |
Constructor
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
AccessControlList |
getAcl() |
Obtain the ACL of the object.
|
Set<ExtensionObjectPermissionEnum> |
getAllGrantPermissions() |
Obtain all OBS extended permissions.
|
long |
getBigfileThreshold() |
Obtain the threshold size of a file for starting multipart upload.
|
TaskCallback<PutObjectResult,PutObjectBasicRequest> |
getCallback() |
Obtain the callback object of an upload task.
|
long |
getDetailProgressInterval() |
Obtain the callback threshold of the data transfer listener.
|
Set<String> |
getDomainIdsByGrantPermission(ExtensionObjectPermissionEnum extensionPermissionEnum) |
Obtain the list of user IDs with the specified OBS extension permissions.
|
Map<ExtensionObjectPermissionEnum,Set<String>> |
getExtensionPermissionMap() |
Obtain the set of relationships between users and OBS extension
permissions.
|
List<String> |
getFilePaths() |
Obtain the list of local paths of the batch uploaded files.
|
String |
getFolderPath() |
Obtain the local path of the uploaded folder.
|
Set<ExtensionObjectPermissionEnum> |
getGrantPermissionsByDomainId(String domainId) |
Obtain the OBS extension permissions of a specified user.
|
long |
getPartSize() |
Obtain the part size set for uploading an object.
|
String |
getPrefix() |
Obtain the specific folder to which the file is uploaded.
|
SseCHeader |
getSseCHeader() |
Obtain SSE-C encryption headers of the object.
|
SseKmsHeader |
getSseKmsHeader() |
Obtain SSE-KMS encryption headers of the object.
|
String |
getSuccessRedirectLocation() |
Obtain the redirection address after a successfully responded request.
|
int |
getTaskNum() |
Obtain the maximum number of threads used for processing upload tasks
concurrently.
|
long |
getTaskProgressInterval() |
Obtain the interval for updating the task progress information.
|
UploadObjectsProgressListener |
getUploadObjectsProgressListener() |
Obtain the progress listener of the bulk task.
|
void |
grantExtensionPermission(String domainId,
ExtensionObjectPermissionEnum extensionPermissionEnum) |
Grant the OBS extension permissions to a user.
|
void |
setAcl(AccessControlList acl) |
Set the object ACL.
|
void |
setBigfileThreshold(long bigfileThreshold) |
Set the threshold size of a file for starting multipart upload.
|
void |
setCallback(TaskCallback<PutObjectResult,PutObjectBasicRequest> callback) |
Set the callback object of an upload task.
|
void |
setDetailProgressInterval(long detailProgressInterval) |
Set the callback threshold of the data transfer listener.
|
void |
setExtensionPermissionMap(Map<ExtensionObjectPermissionEnum,Set<String>> extensionPermissionMap) |
Set the set of relationships between users and OBS extension permissions.
|
void |
setPartSize(long partSize) |
Set the part size for uploading the object.
|
void |
setPrefix(String prefix) |
Set the specific folder to which the file is uploaded.
|
void |
setSseCHeader(SseCHeader sseCHeader) |
Set SSE-C encryption headers of the object.
|
void |
setSseKmsHeader(SseKmsHeader sseKmsHeader) |
Set SSE-KMS encryption headers of the object.
|
void |
setSuccessRedirectLocation(String successRedirectLocation) |
Set the redirection address after a successfully responded request.
|
void |
setTaskNum(int taskNum) |
Set the maximum number of threads used for processing upload tasks
concurrently.
|
void |
setTaskProgressInterval(long taskProgressInterval) |
Set the interval for updating the task progress information.
|
void |
setUploadObjectsProgressListener(UploadObjectsProgressListener listener) |
Set the progress listener of the bulk task.
|
String |
toString() |
|
void |
withdrawExtensionPermission(String domainId,
ExtensionObjectPermissionEnum extensionPermissionEnum) |
Withdraw the OBS extension permissions from a user.
|
void |
withdrawExtensionPermissions(String domainId) |
Withdraw all OBS extension permissions from a user.
|
getProgressInterval, getProgressListener, getTaskQueueNum, getTaskThreadNum, setProgressInterval, setProgressListener, setTaskQueueNum, setTaskThreadNumaddUserHeaders, getBucketName, getCancelHandler, getHttpMethod, getUserHeaders, isRequesterPays, setBucketName, setCancelHandler, setRequesterPays, setUserHeaderspublic PutObjectsRequest(String bucketName, String folderPath)
bucketName - Bucket namefolderPath - Local path from which the folder is uploadedpublic String getFolderPath()
public List<String> getFilePaths()
public TaskCallback<PutObjectResult,PutObjectBasicRequest> getCallback()
public void setCallback(TaskCallback<PutObjectResult,PutObjectBasicRequest> callback)
callback - Callback objectpublic long getPartSize()
public void setPartSize(long partSize)
partSize - Part sizepublic long getBigfileThreshold()
public void setBigfileThreshold(long bigfileThreshold)
bigfileThreshold - Threshold size of a file for multipart uploadpublic int getTaskNum()
public void setTaskNum(int taskNum)
taskNum - Maximum number of threads used for processing upload tasks
concurrentlypublic String getPrefix()
public void setPrefix(String prefix)
prefix - Folderpublic UploadObjectsProgressListener getUploadObjectsProgressListener()
public void setUploadObjectsProgressListener(UploadObjectsProgressListener listener)
listener - Progress listenerpublic long getTaskProgressInterval()
public void setTaskProgressInterval(long taskProgressInterval)
taskProgressInterval - Interval for updating the task progresspublic long getDetailProgressInterval()
public void setDetailProgressInterval(long detailProgressInterval)
detailProgressInterval - Callback threshold of the data transfer listenerpublic SseKmsHeader getSseKmsHeader()
public void setSseKmsHeader(SseKmsHeader sseKmsHeader)
sseKmsHeader - SSE-KMS encryption headerspublic SseCHeader getSseCHeader()
public void setSseCHeader(SseCHeader sseCHeader)
sseCHeader - SSE-C encryption headerspublic AccessControlList getAcl()
public void setAcl(AccessControlList acl)
acl - Object ACLpublic String getSuccessRedirectLocation()
public void setSuccessRedirectLocation(String successRedirectLocation)
successRedirectLocation - Redirection addresspublic void grantExtensionPermission(String domainId, ExtensionObjectPermissionEnum extensionPermissionEnum)
domainId - User's domain IDextensionPermissionEnum - OBS extension permissionspublic void withdrawExtensionPermission(String domainId, ExtensionObjectPermissionEnum extensionPermissionEnum)
domainId - User's domain IDextensionPermissionEnum - OBS extension permissionspublic void withdrawExtensionPermissions(String domainId)
domainId - User's domain IDpublic Set<ExtensionObjectPermissionEnum> getAllGrantPermissions()
public Set<String> getDomainIdsByGrantPermission(ExtensionObjectPermissionEnum extensionPermissionEnum)
extensionPermissionEnum - OBS extension permissionspublic Set<ExtensionObjectPermissionEnum> getGrantPermissionsByDomainId(String domainId)
domainId - User IDpublic Map<ExtensionObjectPermissionEnum,Set<String>> getExtensionPermissionMap()
public void setExtensionPermissionMap(Map<ExtensionObjectPermissionEnum,Set<String>> extensionPermissionMap)
extensionPermissionMap - Set of relationships between users and OBS extended
permissionspublic String toString()
toString 在类中 GenericRequestCopyright © 2025. All rights reserved.