public class PutObjectRequest extends OSSRequest
OSSRequest.CRC64Config
构造器和说明 |
---|
PutObjectRequest(java.lang.String bucketName,
java.lang.String objectKey,
byte[] uploadData)
Constructor
|
PutObjectRequest(java.lang.String bucketName,
java.lang.String objectKey,
byte[] uploadData,
ObjectMetadata metadata)
Constructor
|
PutObjectRequest(java.lang.String bucketName,
java.lang.String objectKey,
java.lang.String uploadFilePath)
Constructor
|
PutObjectRequest(java.lang.String bucketName,
java.lang.String objectKey,
java.lang.String uploadFilePath,
ObjectMetadata metadata)
Constructor
|
PutObjectRequest(java.lang.String bucketName,
java.lang.String objectKey,
Uri uploadUri) |
PutObjectRequest(java.lang.String bucketName,
java.lang.String objectKey,
Uri uploadUri,
ObjectMetadata metadata) |
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getBucketName()
Gets the bucket name
|
java.util.Map<java.lang.String,java.lang.String> |
getCallbackParam() |
java.util.Map<java.lang.String,java.lang.String> |
getCallbackVars() |
ObjectMetadata |
getMetadata() |
java.lang.String |
getObjectKey()
Gets the object key
|
OSSProgressCallback<PutObjectRequest> |
getProgressCallback() |
OSSRetryCallback |
getRetryCallback() |
byte[] |
getUploadData() |
java.lang.String |
getUploadFilePath() |
Uri |
getUploadUri()
Sets the upload Uri
|
void |
setBucketName(java.lang.String bucketName)
Sets the bucket name
|
void |
setCallbackParam(java.util.Map<java.lang.String,java.lang.String> callbackParam)
Sets the callback parameters
|
void |
setCallbackVars(java.util.Map<java.lang.String,java.lang.String> callbackVars)
Sets the callback variables
|
void |
setMetadata(ObjectMetadata metadata)
Sets the metadata of the target object
|
void |
setObjectKey(java.lang.String objectKey)
Sets the object key
|
void |
setProgressCallback(OSSProgressCallback<PutObjectRequest> progressCallback)
Sets the upload progress callback
|
void |
setRetryCallback(OSSRetryCallback retryCallback)
Sets the upload retry request callback
|
void |
setUploadData(byte[] uploadData)
Sets the upload data
|
void |
setUploadFilePath(java.lang.String uploadFilePath)
Sets the local upload file path
|
void |
setUploadUri(Uri uploadUri) |
getCRC64, isAuthorizationRequired, setCRC64, setIsAuthorizationRequired
public PutObjectRequest(java.lang.String bucketName, java.lang.String objectKey, java.lang.String uploadFilePath)
bucketName
- The bucket nameobjectKey
- The object keyuploadFilePath
- The local file path to upload frompublic PutObjectRequest(java.lang.String bucketName, java.lang.String objectKey, java.lang.String uploadFilePath, ObjectMetadata metadata)
bucketName
- The bucket nameobjectKey
- The object keyuploadFilePath
- The local file pathmetadata
- The metadata information of the target objectpublic PutObjectRequest(java.lang.String bucketName, java.lang.String objectKey, byte[] uploadData)
bucketName
- The bucket nameobjectKey
- The object keyuploadData
- The in-memory data to uploadpublic PutObjectRequest(java.lang.String bucketName, java.lang.String objectKey, byte[] uploadData, ObjectMetadata metadata)
bucketName
- The bucket nameobjectKey
- The object keyuploadData
- The in-memory data to uploadmetadata
- The metadata information of the target objectpublic PutObjectRequest(java.lang.String bucketName, java.lang.String objectKey, Uri uploadUri)
public PutObjectRequest(java.lang.String bucketName, java.lang.String objectKey, Uri uploadUri, ObjectMetadata metadata)
public java.lang.String getBucketName()
public void setBucketName(java.lang.String bucketName)
public java.lang.String getObjectKey()
public void setObjectKey(java.lang.String objectKey)
public java.lang.String getUploadFilePath()
public void setUploadFilePath(java.lang.String uploadFilePath)
uploadFilePath
- The local upload file pathpublic byte[] getUploadData()
public void setUploadData(byte[] uploadData)
uploadData
- public ObjectMetadata getMetadata()
public Uri getUploadUri()
uploadUri
- public void setUploadUri(Uri uploadUri)
public void setMetadata(ObjectMetadata metadata)
metadata
- the target object metadatapublic OSSProgressCallback<PutObjectRequest> getProgressCallback()
public void setProgressCallback(OSSProgressCallback<PutObjectRequest> progressCallback)
progressCallback
- public OSSRetryCallback getRetryCallback()
public void setRetryCallback(OSSRetryCallback retryCallback)
retryCallback
- public java.util.Map<java.lang.String,java.lang.String> getCallbackParam()
public void setCallbackParam(java.util.Map<java.lang.String,java.lang.String> callbackParam)
public java.util.Map<java.lang.String,java.lang.String> getCallbackVars()
public void setCallbackVars(java.util.Map<java.lang.String,java.lang.String> callbackVars)