Class DefaultAsyncResponseTransformerSplitResult.DefaultBuilder<ResponseT,ResultT>
java.lang.Object
software.amazon.awssdk.core.internal.async.DefaultAsyncResponseTransformerSplitResult.DefaultBuilder<ResponseT,ResultT>
- All Implemented Interfaces:
AsyncResponseTransformer.SplitResult.Builder<ResponseT,,ResultT> Buildable,CopyableBuilder<AsyncResponseTransformer.SplitResult.Builder<ResponseT,,ResultT>, AsyncResponseTransformer.SplitResult<ResponseT, ResultT>> SdkBuilder<AsyncResponseTransformer.SplitResult.Builder<ResponseT,ResultT>, AsyncResponseTransformer.SplitResult<ResponseT, ResultT>>
- Enclosing class:
DefaultAsyncResponseTransformerSplitResult<ResponseT,ResultT>
public static class DefaultAsyncResponseTransformerSplitResult.DefaultBuilder<ResponseT,ResultT>
extends Object
implements AsyncResponseTransformer.SplitResult.Builder<ResponseT,ResultT>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()An immutable object that is created from the properties that have been set on the builder.publisher(SdkPublisher<AsyncResponseTransformer<ResponseT, ResponseT>> publisher) Sets the publisher publishing the individualAsyncResponseTransformerresultFuture(CompletableFuture<ResultT> future) Sets the future that will be completed when the future returned by calling theAsyncResponseTransformer.prepare()method on the AsyncResponseTransformer which was split completes.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation
-
Method Details
-
publisher
- Specified by:
publisherin interfaceAsyncResponseTransformer.SplitResult.Builder<ResponseT,ResultT> - Returns:
- the publisher which was configured on this Builder instance.
-
publisher
public AsyncResponseTransformer.SplitResult.Builder<ResponseT,ResultT> publisher(SdkPublisher<AsyncResponseTransformer<ResponseT, ResponseT>> publisher) Description copied from interface:AsyncResponseTransformer.SplitResult.BuilderSets the publisher publishing the individualAsyncResponseTransformer- Specified by:
publisherin interfaceAsyncResponseTransformer.SplitResult.Builder<ResponseT,ResultT> - Parameters:
publisher- the publisher- Returns:
- an instance of this Builder
-
resultFuture
- Specified by:
resultFuturein interfaceAsyncResponseTransformer.SplitResult.Builder<ResponseT,ResultT> - Returns:
- The future which was configured an this Builder instance.
-
resultFuture
public AsyncResponseTransformer.SplitResult.Builder<ResponseT,ResultT> resultFuture(CompletableFuture<ResultT> future) Description copied from interface:AsyncResponseTransformer.SplitResult.BuilderSets the future that will be completed when the future returned by calling theAsyncResponseTransformer.prepare()method on the AsyncResponseTransformer which was split completes.- Specified by:
resultFuturein interfaceAsyncResponseTransformer.SplitResult.Builder<ResponseT,ResultT> - Parameters:
future- the future- Returns:
- an instance of this Builder
-
build
Description copied from interface:SdkBuilderAn immutable object that is created from the properties that have been set on the builder.
-