Interface CompletedDownload.UntypedBuilder
- Enclosing class:
CompletedDownload<ResultT>
public static interface CompletedDownload.UntypedBuilder
Initial calls to
Instead, the type may be inferred as part of specifying the
CompletedDownload.builder()
return an CompletedDownload.UntypedBuilder
, where the builder is not yet
parameterized with the generic type associated with CompletedDownload
. This prevents the otherwise awkward syntax
of having to explicitly cast the builder type, e.g.,
CompletedDownload.<ResponseBytes<GetObjectResponse>>builder()
result(Object)
parameter, at which point the builder
chain will return a new CompletedDownload.TypedBuilder
.-
Method Summary
Modifier and TypeMethodDescriptionresult
(T result) Specifies the result of the completed download.
-
Method Details
-
result
Specifies the result of the completed download. This method also infers the generic type ofCompletedDownload
to create.- Type Parameters:
T
- the type ofCompletedDownload
to create- Parameters:
result
- the result of the completed download, as transformed by anAsyncResponseTransformer
- Returns:
- a reference to this object so that method calls can be chained together.
-