public class InitiateMultipartUploadRequest extends CosServiceRequest implements SSECustomerKeyProvider, SSECOSKeyManagementParamsProvider, Serializable
| 限定符和类型 | 字段和说明 |
|---|---|
ObjectMetadata |
objectMetadata
Additional information about the new object being created, such as content type, content
encoding, user metadata, etc.
|
| 构造器和说明 |
|---|
InitiateMultipartUploadRequest(String bucketName,
String key)
Constructs a request to initiate a new multipart upload in the specified bucket, stored by
the specified key.
|
InitiateMultipartUploadRequest(String bucketName,
String key,
long dataSize,
long partSize)
Constructs a request to initiate a new multipart upload in the specified bucket, stored by
the specified key, and with the additional specified data size and part size.
|
InitiateMultipartUploadRequest(String bucketName,
String key,
ObjectMetadata objectMetadata)
Constructs a request to initiate a new multipart upload in the specified bucket, stored by
the specified key, and with the additional specified object metadata.
|
| 限定符和类型 | 方法和说明 |
|---|---|
AccessControlList |
getAccessControlList()
Returns the optional access control list for the new upload.
|
String |
getBucketName()
Returns the name of the bucket in which to create the new multipart upload, and hence, the
eventual object created from the multipart upload.
|
CannedAccessControlList |
getCannedACL()
Returns the optional canned Access Control List (ACL) to set permissions for the new object
created when the multipart upload is completed.
|
long |
getDataSize() |
String |
getKey()
Returns the key by which to store the new multipart upload, and hence, the eventual object
created from the multipart upload.
|
ObjectMetadata |
getObjectMetadata()
Returns the additional information about the new object being created, such as content type,
content encoding, user metadata, etc.
|
long |
getPartSize() |
String |
getRedirectLocation()
Gets the optional redirect location for the new object.
|
SSECOSKeyManagementParams |
getSSECOSKeyManagementParams()
Returns the COS Key Management System parameters used to encrypt the object on server side.
|
SSECustomerKey |
getSSECustomerKey()
Returns the optional customer-provided server-side encryption key to use
to encrypt the uploaded object.
|
StorageClass |
getStorageClass()
Returns the optional storage class to use when storing this upload's data in COS.
|
void |
setAccessControlList(AccessControlList accessControlList)
Sets the optional access control list for the new upload.
|
void |
setBucketName(String bucketName)
Sets the name of the bucket in which to create the new multipart upload, and hence, the
eventual object created from the multipart upload.
|
void |
setCannedACL(CannedAccessControlList cannedACL)
Sets the optional canned Access Control List (ACL) to set permissions for the new object
created when the multipart upload is completed.
|
void |
setDataSizePartSize(long dataSize,
long partSize)
Sets the data size and part size of this multipart upload request;
|
void |
setKey(String key)
Sets the key by which to store the new multipart upload, and hence, the eventual object
created from the multipart upload.
|
void |
setObjectMetadata(ObjectMetadata objectMetadata)
Sets the additional information about the new object being created, such as content type,
content encoding, user metadata, etc.
|
void |
setRedirectLocation(String redirectLocation)
Sets the optional redirect location for the new object.
|
void |
setSSECOSKeyManagementParams(SSECOSKeyManagementParams params)
Sets the COS Key Management System parameters used to encrypt the object on server side.
|
void |
setSSECustomerKey(SSECustomerKey sseKey)
Sets the optional customer-provided server-side encryption key to use to encrypt the upload
being started.
|
void |
setStorageClass(StorageClass storageClass)
Sets the optional storage class to use when storing this upload's data in COS.
|
InitiateMultipartUploadRequest |
withAccessControlList(AccessControlList accessControlList)
Sets the optional access control list for the new upload.
|
InitiateMultipartUploadRequest |
withBucketName(String bucketName)
Sets the name of the bucket in which to create the new multipart upload, and hence, the
eventual object created from the multipart upload.
|
InitiateMultipartUploadRequest |
withCannedACL(CannedAccessControlList acl)
Sets the optional canned Access Control List (ACL) to set permissions for the new object
created when the multipart upload is completed.
|
InitiateMultipartUploadRequest |
withDataSizePartSize(long dataSize,
long partSize)
Sets the data size and part size of this multipart upload request;
|
InitiateMultipartUploadRequest |
withKey(String key)
Sets the key by which to store the new multipart upload, and hence, the eventual object
created from the multipart upload.
|
InitiateMultipartUploadRequest |
withObjectMetadata(ObjectMetadata objectMetadata)
Sets the additional information about the new object being created, such as content type,
content encoding, user metadata, etc.
|
InitiateMultipartUploadRequest |
withRedirectLocation(String redirectLocation)
Sets the optional redirect location for the new object.
|
InitiateMultipartUploadRequest |
withSSECOSKeyManagementParams(SSECOSKeyManagementParams sseCOSKeyManagementParams)
Sets the COS Key Management System parameters used to encrypt the object on server side.
|
InitiateMultipartUploadRequest |
withSSECustomerKey(SSECustomerKey sseKey)
Sets the optional customer-provided server-side encryption key to use to encrypt the upload
being started, and returns the updated InitiateMultipartUploadRequest so that additional
method calls may be chained together.
|
InitiateMultipartUploadRequest |
withStorageClass(StorageClass storageClass)
Sets the optional storage class to use when storing this upload's data in COS.
|
InitiateMultipartUploadRequest |
withStorageClass(String storageClass) |
clone, copyBaseTo, getCloneRoot, getCloneSource, getCosCredentials, getCustomQueryParameters, getCustomRequestHeaders, getFixedEndpointAddr, getGeneralProgressListener, getReadLimit, getRequestClientOptions, putCustomQueryParameter, putCustomRequestHeader, setCosCredentials, setFixedEndpointAddr, setGeneralProgressListener, withGeneralProgressListenerpublic ObjectMetadata objectMetadata
public InitiateMultipartUploadRequest(String bucketName, String key)
bucketName - The name of the bucket in which to create the new multipart upload, and
hence, the eventual object created from the multipart upload.key - The key by which to store the new multipart upload, and hence, the eventual object
created from the multipart upload.public InitiateMultipartUploadRequest(String bucketName, String key, long dataSize, long partSize)
bucketName - The name of the bucket in which to create the new multipart upload, and
hence, the eventual object created from the multipart upload.key - The key by which to store the new multipart upload, and hence, the eventual object
created from the multipart upload.dataSize - Size of the data upload to cos. When use encryption client, it is necessary.partSize - Size of a part in the multipart uplaod. When use encryption client, it is necessary.public InitiateMultipartUploadRequest(String bucketName, String key, ObjectMetadata objectMetadata)
bucketName - The name of the bucket in which to create the new multipart upload, and
hence, the eventual object created from the multipart upload.key - The key by which to store the new multipart upload, and hence, the eventual object
created from the multipart upload.objectMetadata - Additional information about the new object being created, such as
content type, content encoding, user metadata, etc.public String getBucketName()
public void setBucketName(String bucketName)
bucketName - The name of the bucket in which to create the new multipart upload, and
hence, the eventual object created from the multipart upload.public InitiateMultipartUploadRequest withBucketName(String bucketName)
Returns this updated InitiateMultipartUploadRequest object so that additional method calls can be chained together.
bucketName - The name of the bucket in which to create the new multipart upload, and
hence, the eventual object created from the multipart upload.public String getKey()
public void setKey(String key)
key - The key by which to store the new multipart upload, and hence, the eventual object
created from the multipart upload.public InitiateMultipartUploadRequest withKey(String key)
Returns this updated InitiateMultipartUploadRequest object so that additional method calls can be chained together.
key - The key by which to store the new multipart upload, and hence, the eventual object
created from the multipart upload.public CannedAccessControlList getCannedACL()
CannedAccessControlListpublic void setCannedACL(CannedAccessControlList cannedACL)
cannedACL - The canned Access Control List (ACL) to set permissions for the new object
created when the multipart upload is completed.CannedAccessControlListpublic InitiateMultipartUploadRequest withCannedACL(CannedAccessControlList acl)
Returns this updated InitiateMultipartUploadRequest object so that additional method calls can be chained together.
acl - The optional canned Access Control List (ACL) to set permissions for the new
object created when the multipart upload is completed.public AccessControlList getAccessControlList()
public void setAccessControlList(AccessControlList accessControlList)
accessControlList - The access control list for the new upload.public InitiateMultipartUploadRequest withAccessControlList(AccessControlList accessControlList)
InitiateMultipartUploadRequest, enabling additional method
calls to be chained together.accessControlList - The access control list for the new upload.public StorageClass getStorageClass()
If not specified, the default is StorageClass.Standard.
StorageClasspublic void setStorageClass(StorageClass storageClass)
If not specified, the default is StorageClass.Standard.
storageClass - The optional storage class to use when storing this upload's data in COS.
If not specified, the default storage class is used.StorageClasspublic InitiateMultipartUploadRequest withStorageClass(StorageClass storageClass)
Returns this updated InitiateMultipartUploadRequest object so that additional method calls can be chained together.
storageClass - The optional storage class to use when storing this upload's data in COS.
If not specified, the default storage class is used.public InitiateMultipartUploadRequest withStorageClass(String storageClass)
public ObjectMetadata getObjectMetadata()
public void setObjectMetadata(ObjectMetadata objectMetadata)
objectMetadata - Additional information about the new object being created, such as
content type, content encoding, user metadata, etc.public InitiateMultipartUploadRequest withObjectMetadata(ObjectMetadata objectMetadata)
Returns this updated InitiateMultipartUploadRequest object so that additional method calls can be chained together.
objectMetadata - Additional information about the new object being created, such as
content type, content encoding, user metadata, etc.public void setRedirectLocation(String redirectLocation)
redirectLocation - The redirect location for the new object.public String getRedirectLocation()
public InitiateMultipartUploadRequest withRedirectLocation(String redirectLocation)
InitiateMultipartUploadRequest, enabling additional method calls to be chained
together.redirectLocation - The redirect location for the new object.public SSECustomerKey getSSECustomerKey()
SSECustomerKeyProvidergetSSECustomerKey 在接口中 SSECustomerKeyProviderpublic void setSSECustomerKey(SSECustomerKey sseKey)
sseKey - The optional customer-provided server-side encryption key to use to encrypt the
upload being started.public InitiateMultipartUploadRequest withSSECustomerKey(SSECustomerKey sseKey)
sseKey - The optional customer-provided server-side encryption key to use to encrypt the
upload being started.public SSECOSKeyManagementParams getSSECOSKeyManagementParams()
getSSECOSKeyManagementParams 在接口中 SSECOSKeyManagementParamsProviderpublic void setSSECOSKeyManagementParams(SSECOSKeyManagementParams params)
public InitiateMultipartUploadRequest withSSECOSKeyManagementParams(SSECOSKeyManagementParams sseCOSKeyManagementParams)
public void setDataSizePartSize(long dataSize,
long partSize)
dataSize - partSize - public InitiateMultipartUploadRequest withDataSizePartSize(long dataSize, long partSize)
dataSize - partSize - public long getDataSize()
public long getPartSize()
Copyright © 2022. All rights reserved.