Class PresignedRequest.DefaultBuilder<B extends PresignedRequest.DefaultBuilder<B>>
- java.lang.Object
-
- software.amazon.awssdk.awscore.presigner.PresignedRequest.DefaultBuilder<B>
-
- All Implemented Interfaces:
PresignedRequest.Builder
- Enclosing class:
- PresignedRequest
protected abstract static class PresignedRequest.DefaultBuilder<B extends PresignedRequest.DefaultBuilder<B>> extends Object implements PresignedRequest.Builder
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DefaultBuilder()
protected
DefaultBuilder(PresignedRequest request)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.awscore.presigner.PresignedRequest.Builder
build
-
-
-
-
Constructor Detail
-
DefaultBuilder
protected DefaultBuilder()
-
DefaultBuilder
protected DefaultBuilder(PresignedRequest request)
-
-
Method Detail
-
expiration
public B expiration(Instant expiration)
Description copied from interface:PresignedRequest.Builder
Configure the exact SERVICE time that the request will expire. After this time, attempting to execute the request will fail.- Specified by:
expiration
in interfacePresignedRequest.Builder
-
isBrowserExecutable
public B isBrowserExecutable(Boolean isBrowserExecutable)
Description copied from interface:PresignedRequest.Builder
Configure whether the url returned by the url method can be executed in a browser.- Specified by:
isBrowserExecutable
in interfacePresignedRequest.Builder
-
signedHeaders
public B signedHeaders(Map<String,List<String>> signedHeaders)
Description copied from interface:PresignedRequest.Builder
Configure the subset of headers that were signed, and MUST be included in the presigned request to prevent the request from failing.- Specified by:
signedHeaders
in interfacePresignedRequest.Builder
-
signedPayload
public B signedPayload(SdkBytes signedPayload)
Description copied from interface:PresignedRequest.Builder
Configure the payload that was signed.- Specified by:
signedPayload
in interfacePresignedRequest.Builder
-
httpRequest
public B httpRequest(SdkHttpRequest httpRequest)
Description copied from interface:PresignedRequest.Builder
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.- Specified by:
httpRequest
in interfacePresignedRequest.Builder
-
-