protected abstract static class PresignedRequest.DefaultBuilder<B extends PresignedRequest.DefaultBuilder<B>> extends Object implements PresignedRequest.Builder
Modifier | Constructor and Description |
---|---|
protected |
DefaultBuilder() |
protected |
DefaultBuilder(PresignedRequest request) |
Modifier and Type | Method and Description |
---|---|
B |
expiration(Instant expiration)
Configure the exact SERVICE time that the request will expire.
|
B |
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.
|
B |
isBrowserExecutable(Boolean isBrowserExecutable)
Configure whether the url returned by the url method can be executed in a browser.
|
B |
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.
|
B |
signedPayload(SdkBytes signedPayload)
Configure the payload that was signed.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
build
protected DefaultBuilder()
protected DefaultBuilder(PresignedRequest request)
public B expiration(Instant expiration)
PresignedRequest.Builder
expiration
in interface PresignedRequest.Builder
public B isBrowserExecutable(Boolean isBrowserExecutable)
PresignedRequest.Builder
isBrowserExecutable
in interface PresignedRequest.Builder
public B signedHeaders(Map<String,List<String>> signedHeaders)
PresignedRequest.Builder
signedHeaders
in interface PresignedRequest.Builder
public B signedPayload(SdkBytes signedPayload)
PresignedRequest.Builder
signedPayload
in interface PresignedRequest.Builder
public B httpRequest(SdkHttpRequest httpRequest)
PresignedRequest.Builder
httpRequest
in interface PresignedRequest.Builder
Copyright © 2021. All rights reserved.