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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AsyncResponseTransformer.SplitResult<ResponseT,ResultT>build()SdkPublisher<AsyncResponseTransformer<ResponseT,ResponseT>>publisher()AsyncResponseTransformer.SplitResult.Builder<ResponseT,ResultT>publisher(SdkPublisher<AsyncResponseTransformer<ResponseT,ResponseT>> publisher)Sets the publisher publishing the individualAsyncResponseTransformerCompletableFuture<ResultT>resultFuture()AsyncResponseTransformer.SplitResult.Builder<ResponseT,ResultT>resultFuture(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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation
-
-
-
-
Method Detail
-
publisher
public SdkPublisher<AsyncResponseTransformer<ResponseT,ResponseT>> 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
public CompletableFuture<ResultT> 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
public AsyncResponseTransformer.SplitResult<ResponseT,ResultT> build()
-
-