Interface PresignedRequest.Builder
-
- All Known Implementing Classes:
PresignedRequest.DefaultBuilder
- Enclosing class:
- PresignedRequest
public static interface PresignedRequest.Builder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PresignedRequest
build()
PresignedRequest.Builder
expiration(Instant expiration)
Configure the exact SERVICE time that the request will expire.PresignedRequest.Builder
httpRequest(SdkHttpRequest httpRequest)
Configure the entire SigV4 query-parameter signed request (minus the payload), that can be transmitted as-is to a service using any HTTP client that implement the SDK's HTTP client SPI.PresignedRequest.Builder
isBrowserExecutable(Boolean isBrowserExecutable)
Configure whether the url returned by the url method can be executed in a browser.PresignedRequest.Builder
signedHeaders(Map<String,List<String>> signedHeaders)
Configure the subset of headers that were signed, and MUST be included in the presigned request to prevent the request from failing.PresignedRequest.Builder
signedPayload(SdkBytes signedPayload)
Configure the payload that was signed.
-
-
-
Method Detail
-
expiration
PresignedRequest.Builder expiration(Instant expiration)
Configure the exact SERVICE time that the request will expire. After this time, attempting to execute the request will fail.
-
isBrowserExecutable
PresignedRequest.Builder isBrowserExecutable(Boolean isBrowserExecutable)
Configure whether the url returned by the url method can be executed in a browser.
-
signedHeaders
PresignedRequest.Builder signedHeaders(Map<String,List<String>> signedHeaders)
Configure the subset of headers that were signed, and MUST be included in the presigned request to prevent the request from failing.
-
signedPayload
PresignedRequest.Builder signedPayload(SdkBytes signedPayload)
Configure the payload that was signed.
-
httpRequest
PresignedRequest.Builder httpRequest(SdkHttpRequest httpRequest)
Configure the entire SigV4 query-parameter signed request (minus the payload), that can be transmitted as-is to a service using any HTTP client that implement the SDK's HTTP client SPI.
-
build
PresignedRequest build()
-
-