|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.baidubce.model.AbstractBceRequest
com.baidubce.services.bos.model.GenericBucketRequest
com.baidubce.services.bos.model.GenericObjectRequest
com.baidubce.services.bos.model.InitiateMultipartUploadRequest
public class InitiateMultipartUploadRequest
The InitiateMultipartUploadRequest contains the parameters used for the InitiateMultipartUpload method.
Required Parameters: BucketName, Key
Constructor Summary | |
---|---|
InitiateMultipartUploadRequest(String bucketName,
String key)
Constructs a request to initiate a new multipart upload in the specified bucket, stored by the specified key. |
Method Summary | |
---|---|
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. |
Methods inherited from class com.baidubce.services.bos.model.GenericObjectRequest |
---|
getKey, setKey |
Methods inherited from class com.baidubce.services.bos.model.GenericBucketRequest |
---|
getBucketName, setBucketName |
Methods inherited from class com.baidubce.model.AbstractBceRequest |
---|
getRequestCredentials, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
public InitiateMultipartUploadRequest withRequestCredentials(BceCredentials credentials)
withRequestCredentials
in class AbstractBceRequest
public InitiateMultipartUploadRequest withBucketName(String bucketName)
Returns this updated InitiateMultipartUploadRequest object so that additional method calls can be chained together.
withBucketName
in class GenericBucketRequest
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 withKey(String key)
Returns this updated InitiateMultipartUploadRequest object so that additional method calls can be chained together.
withKey
in class GenericObjectRequest
key
- 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |