public class GeneratePresignedUrlRequest
extends java.lang.Object
构造器和说明 |
---|
GeneratePresignedUrlRequest(java.lang.String bucketName,
java.lang.String key)
Constructor with GET as the httpMethod
|
GeneratePresignedUrlRequest(java.lang.String bucketName,
java.lang.String key,
long expiration)
Constructor.
|
GeneratePresignedUrlRequest(java.lang.String bucketName,
java.lang.String key,
long expiration,
HttpMethod method)
Constructor.
|
限定符和类型 | 方法和说明 |
---|---|
void |
addQueryParameter(java.lang.String key,
java.lang.String value) |
java.lang.String |
getBucketName() |
java.lang.String |
getContentMD5()
Gets the file's MD5 value.
|
java.lang.String |
getContentType()
Gets the content type header.
|
long |
getExpiration()
Gets the expiration time of the Url
|
java.lang.String |
getKey() |
HttpMethod |
getMethod()
Gets Http method.
|
java.lang.String |
getProcess()
Gets the process header.
|
java.util.Map<java.lang.String,java.lang.String> |
getQueryParameter()
Gets the query parameters.
|
void |
setBucketName(java.lang.String bucketName) |
void |
setContentMD5(java.lang.String contentMD5)
Sets the file's MD5 value.
|
void |
setContentType(java.lang.String contentType)
Sets the content-type header which indicates the file's type.
|
void |
setExpiration(long expiration)
Sets the expiration time of the Url
|
void |
setKey(java.lang.String key) |
void |
setMethod(HttpMethod method)
Sets Http method.
|
void |
setProcess(java.lang.String process)
Sets the process header.
|
void |
setQueryParameter(java.util.Map<java.lang.String,java.lang.String> queryParam)
Sets the query parameters.
|
public GeneratePresignedUrlRequest(java.lang.String bucketName, java.lang.String key)
bucketName
- Bucket name.key
- Object key.public GeneratePresignedUrlRequest(java.lang.String bucketName, java.lang.String key, long expiration)
bucketName
- Bucket name.key
- Object key.expiration
- public GeneratePresignedUrlRequest(java.lang.String bucketName, java.lang.String key, long expiration, HttpMethod method)
bucketName
- Bucket name.key
- Object key.expiration
- method
- HttpMethod.GET
。public java.lang.String getContentType()
public void setContentType(java.lang.String contentType)
contentType
- The file's content type.public java.lang.String getContentMD5()
public void setContentMD5(java.lang.String contentMD5)
contentMD5
- The target file's MD5 value.public HttpMethod getMethod()
public void setMethod(HttpMethod method)
method
- HTTP method.public java.lang.String getBucketName()
public void setBucketName(java.lang.String bucketName)
bucketName
- public java.lang.String getKey()
public void setKey(java.lang.String key)
key
- public long getExpiration()
public void setExpiration(long expiration)
expiration
- The expiration time of the Url.public java.util.Map<java.lang.String,java.lang.String> getQueryParameter()
public void setQueryParameter(java.util.Map<java.lang.String,java.lang.String> queryParam)
queryParam
- Query parameters.public void addQueryParameter(java.lang.String key, java.lang.String value)
key
- value
- public java.lang.String getProcess()
public void setProcess(java.lang.String process)
process
- The process header.