public class InitiateMultipartUploadRequest extends GenericObjectRequest
Required Parameters: BucketName, Key
| Constructor and Description |
|---|
InitiateMultipartUploadRequest(String bucketName,
String key)
Constructs a request to initiate a new multipart upload in the specified
bucket, stored by the specified key.
|
| Modifier and Type | Method and Description |
|---|---|
ObjectMetadata |
getObjectMetadata()
Returns the additional information about the new object being created,
such as content type, content encoding, user metadata, etc.
|
String |
getStorageClass()
Gets the storageClass of the input file which is be uploaded to Bos.
|
void |
setObjectMetadata(ObjectMetadata objectMetadata)
Sets the additional information about the new object being created, such
as content type, content encoding, user metadata, etc.
|
void |
setStorageClass(String storageClass)
Sets the storageClass of the object which is be uploaded to Bos.
|
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 |
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 |
withMetadata(ObjectMetadata objectMetadata)
Sets the additional information about the new object being created, such
as content type, content encoding, user metadata, etc.
|
InitiateMultipartUploadRequest |
withRequestCredentials(BceCredentials credentials) |
InitiateMultipartUploadRequest |
withStorageClass(String storageClass)
Sets the storageClass of the object which is be uploaded to Bos.
|
getKey, setKeygetBucketName, setBucketNamegetRequestCredentials, setRequestCredentialspublic 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 withRequestCredentials(BceCredentials credentials)
withRequestCredentials in class AbstractBceRequestpublic InitiateMultipartUploadRequest withBucketName(String bucketName)
Returns this updated InitiateMultipartUploadRequest object so that additional method calls can be chained together.
withBucketName in class GenericBucketRequestbucketName - 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 withKey(String key)
Returns this updated InitiateMultipartUploadRequest object so that additional method calls can be chained together.
withKey in class GenericObjectRequestkey - The key by which to store the new multipart upload, and hence,
the eventual object created from the multipart upload.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 withMetadata(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 String getStorageClass()
public void setStorageClass(String storageClass)
storageClass - The StorageClass is an identification that distinguish between infrequent access bos
and standard bos.public InitiateMultipartUploadRequest withStorageClass(String storageClass)
storageClass - The StorageClass is an identification that distinguish between infrequent access bos
and standard bos.Copyright © 2022. All rights reserved.