Java com.amazonaws.services.s3.model GeneratePresignedUrlRequest fields, constructors, methods, implement or subclass

Example usage for Java com.amazonaws.services.s3.model GeneratePresignedUrlRequest fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.amazonaws.services.s3.model GeneratePresignedUrlRequest.

The text is from its open source code.

Constructor

GeneratePresignedUrlRequest(String bucketName, String key)
Creates a new request for generating a pre-signed URL that can be used as part of an HTTP GET request to access the Amazon S3 object stored under the specified key in the specified bucket.
GeneratePresignedUrlRequest(String bucketName, String key, HttpMethod method)

Creates a new request for generating a pre-signed URL that can be used as part of an HTTP request to access the specified Amazon S3 resource.

Method

voidaddRequestParameter(String key, String value)
Adds an additional request parameter to be included in the pre-signed URL.
StringgetBucketName()
Returns the name of the bucket involved in this request.
DategetExpiration()
The expiration date at which point the new pre-signed URL will no longer be accepted by Amazon S3.
StringgetKey()
Returns the key of the object involved in this request.
HttpMethodgetMethod()
The HTTP method (GET, PUT, DELETE, HEAD) to be used in this request.
StringputCustomRequestHeader(String name, String value)
Put a new custom header to the map of custom header names to custom header values, and return the previous value if the header has already been set in this map.
voidsetContentType(String contentType)
Sets the expected content-type of the request.
voidsetExpiration(Date expiration)
Sets the expiration date at which point the new pre-signed URL will no longer be accepted by Amazon S3.
voidsetMethod(HttpMethod method)
Sets the HTTP method (GET, PUT, DELETE, HEAD) to be used in this request.
voidsetResponseHeaders(ResponseHeaderOverrides responseHeaders)
Sets the headers to be overridden in the service response.
GeneratePresignedUrlRequestwithContentType(String contentType)
Sets the expected content-type of the request and returns this object, for method chaining.