Example usage for Java com.amazonaws.services.s3.model GeneratePresignedUrlRequest fields, constructors, methods, implement or subclass
The text is from its open source code.
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. |
void | addRequestParameter(String key, String value) Adds an additional request parameter to be included in the pre-signed URL. |
String | getBucketName() Returns the name of the bucket involved in this request. |
Date | getExpiration() The expiration date at which point the new pre-signed URL will no longer be accepted by Amazon S3. |
String | getKey() Returns the key of the object involved in this request. |
HttpMethod | getMethod() The HTTP method (GET, PUT, DELETE, HEAD) to be used in this request. |
String | putCustomRequestHeader(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. |
void | setContentType(String contentType) Sets the expected content-type of the request. |
void | setExpiration(Date expiration) Sets the expiration date at which point the new pre-signed URL will no longer be accepted by Amazon S3. |
void | setMethod(HttpMethod method) Sets the HTTP method (GET, PUT, DELETE, HEAD) to be used in this request. |
void | setResponseHeaders(ResponseHeaderOverrides responseHeaders) Sets the headers to be overridden in the service response. |
GeneratePresignedUrlRequest | withContentType(String contentType) Sets the expected content-type of the request and returns this object, for method chaining. |