类 InitiateMultipartUploadRequest
- java.lang.Object
-
- com.baidubce.model.AbstractBceRequest
-
- com.baidubce.services.bos.model.GenericBucketRequest
-
- com.baidubce.services.bos.model.GenericObjectRequest
-
- com.baidubce.services.bos.model.InitiateMultipartUploadRequest
-
public class InitiateMultipartUploadRequest extends GenericObjectRequest
The InitiateMultipartUploadRequest contains the parameters used for the InitiateMultipartUpload method.Required Parameters: BucketName, Key
-
-
字段概要
-
从类继承的字段 com.baidubce.services.bos.model.GenericObjectRequest
trafficLimitBitPS
-
-
构造器概要
构造器 构造器 说明 InitiateMultipartUploadRequest(String bucketName, String key)Constructs a request to initiate a new multipart upload in the specified bucket, stored by the specified key.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ObjectMetadatagetObjectMetadata()Returns the additional information about the new object being created, such as content type, content encoding, user metadata, etc.StringgetStorageClass()Gets the storageClass of the input file which is be uploaded to Bos.voidsetObjectMetadata(ObjectMetadata objectMetadata)Sets the additional information about the new object being created, such as content type, content encoding, user metadata, etc.voidsetStorageClass(String storageClass)Sets the storageClass of the object which is be uploaded to Bos.InitiateMultipartUploadRequestwithBucketName(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.InitiateMultipartUploadRequestwithKey(String key)Sets the key by which to store the new multipart upload, and hence, the eventual object created from the multipart upload.InitiateMultipartUploadRequestwithMetadata(ObjectMetadata objectMetadata)Sets the additional information about the new object being created, such as content type, content encoding, user metadata, etc.InitiateMultipartUploadRequestwithRequestCredentials(BceCredentials credentials)InitiateMultipartUploadRequestwithStorageClass(String storageClass)Sets the storageClass of the object which is be uploaded to Bos.-
从类继承的方法 com.baidubce.services.bos.model.GenericObjectRequest
getKey, setKey
-
从类继承的方法 com.baidubce.services.bos.model.GenericBucketRequest
getBucketName, setBucketName
-
从类继承的方法 com.baidubce.model.AbstractBceRequest
getRequestCredentials, setRequestCredentials
-
-
-
-
构造器详细资料
-
InitiateMultipartUploadRequest
public InitiateMultipartUploadRequest(String bucketName, String key)
Constructs a request to initiate a new multipart upload in the specified bucket, stored by the specified 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.
-
-
方法详细资料
-
withRequestCredentials
public InitiateMultipartUploadRequest withRequestCredentials(BceCredentials credentials)
- 指定者:
withRequestCredentials在类中AbstractBceRequest
-
withBucketName
public 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.Returns this updated InitiateMultipartUploadRequest object so that additional method calls can be chained together.
- 指定者:
withBucketName在类中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.- 返回:
- This updated InitiateMultipartUploadRequest object.
-
withKey
public 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.Returns this updated InitiateMultipartUploadRequest object so that additional method calls can be chained together.
- 指定者:
withKey在类中GenericObjectRequest- 参数:
key- The key by which to store the new multipart upload, and hence, the eventual object created from the multipart upload.- 返回:
- This updated InitiateMultipartUploadRequest object.
-
getObjectMetadata
public ObjectMetadata getObjectMetadata()
Returns the additional information about the new object being created, such as content type, content encoding, user metadata, etc.- 返回:
- The additional information about the new object being created, such as content type, content encoding, user metadata, etc.
-
setObjectMetadata
public void setObjectMetadata(ObjectMetadata objectMetadata)
Sets the additional information about the new object being created, such as content type, content encoding, user metadata, etc.- 参数:
objectMetadata- Additional information about the new object being created, such as content type, content encoding, user metadata, etc.
-
withMetadata
public InitiateMultipartUploadRequest withMetadata(ObjectMetadata objectMetadata)
Sets the additional information about the new object being created, such as content type, content encoding, user metadata, etc.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.- 返回:
- This updated InitiateMultipartUploadRequest object.
-
getStorageClass
public String getStorageClass()
Gets the storageClass of the input file which is be uploaded to Bos.- 返回:
- storageClass The StorageClass is an identification that distinguish between infrequent access bos and standard bos.
-
setStorageClass
public void setStorageClass(String storageClass)
Sets the storageClass of the object which is be uploaded to Bos.- 参数:
storageClass- The StorageClass is an identification that distinguish between infrequent access bos and standard bos.
-
withStorageClass
public InitiateMultipartUploadRequest withStorageClass(String storageClass)
Sets the storageClass of the object which is be uploaded to Bos.- 参数:
storageClass- The StorageClass is an identification that distinguish between infrequent access bos and standard bos.- 返回:
- This PutObjectRequest, so that additional method calls can be chained together.
-
-