添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
public class GeneratePresignedUrlRequest
extends java.lang.Object
This class wraps all the information needed to generate a presigned URl. And it's not the real "request" class.
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.

GeneratePresignedUrlRequest

public GeneratePresignedUrlRequest(java.lang.String bucketName,
                                   java.lang.String key)
Constructor with GET as the httpMethod
bucketName - Bucket name.
key - Object key.

GeneratePresignedUrlRequest

public GeneratePresignedUrlRequest(java.lang.String bucketName,
                                   java.lang.String key,
                                   long expiration)
Constructor.
bucketName - Bucket name.
key - Object key.
expiration -

GeneratePresignedUrlRequest

public GeneratePresignedUrlRequest(java.lang.String bucketName,
                                   java.lang.String key,
                                   long expiration,
                                   HttpMethod method)
Constructor.
bucketName - Bucket name.
key - Object key.
expiration -
method - HttpMethod.GET

setContentType

public void setContentType(java.lang.String contentType)
Sets the content-type header which indicates the file's type.
contentType - The file's content type.

setContentMD5

public void setContentMD5(java.lang.String contentMD5)
Sets the file's MD5 value.
contentMD5 - The target file's MD5 value.

setExpiration

public void setExpiration(long expiration)
Sets the expiration time of the Url
expiration - The expiration time of the Url.

getQueryParameter

public java.util.Map<java.lang.String,java.lang.String> getQueryParameter()
Gets the query parameters.
Query parameters.

setQueryParameter

public void setQueryParameter(java.util.Map<java.lang.String,java.lang.String> queryParam)
Sets the query parameters.
queryParam - Query parameters.

addQueryParameter

public void addQueryParameter(java.lang.String key,
                              java.lang.String value)
key -
value -