com.netease.cloud.services.nos.model
public class InitiateMultipartUploadRequest extends WebServiceRequest
Required Parameters: BucketName, Key
Modifier and Type | Field and Description |
---|---|
ObjectMetadata |
objectMetadata
Additional information about the new object being created, such as
content type, content encoding, user metadata, etc.
|
logID, logSeq
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.
|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
String |
getKey()
Returns the key by which to store the new multipart upload, and hence,
the eventual object created from the multipart upload.
|
String |
getMD5Digest() |
ObjectMetadata |
getObjectMetadata()
Returns the additional information about the new object being created,
such as content type, content encoding, user metadata, etc.
|
StorageClass |
getStorageClass()
Returns the optional storage class to use when storing this upload's data
in nos.
|
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 |
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 |
setMD5Digest(String mD5Digest) |
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(StorageClass storageClass)
Sets the optional storage class to use when storing this upload's data in
Nos.
|
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 |
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 |
withStorageClass(StorageClass storageClass)
Sets the optional storage class to use when storing this upload's data in
Nos.
|
addSpecialHeader, copyPrivateRequestParameters, getAndIncrementLogSeq, getLogID, getLogSeq, getRequestClientOptions, getRequestCredentials, getToken, needSetLogInfo, setLogID, setLogSeq, setRequestCredentials, setToken
public 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, 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 String getMD5Digest()
public void setMD5Digest(String mD5Digest)
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()
CannedAccessControlList
public 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.CannedAccessControlList
public 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 StorageClass getStorageClass()
If not specified, the default is StorageClass.Standard
.
StorageClass
public 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 Nos. If not specified, the default storage class is
used.StorageClass
public 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 Nos. If not specified, the default storage class is
used.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.Copyright © 2017. All Rights Reserved.