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.
|
void |
setObjectMetadata(ObjectMetadata objectMetadata)
Sets the additional information about the new object being created, such
as content type, content encoding, user metadata, etc.
|
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) |
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.Copyright © 2016. All rights reserved.