Interface ContentSource.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ContentSource.Builder,,ContentSource> SdkBuilder<ContentSource.Builder,,ContentSource> SdkPojo
- Enclosing class:
ContentSource
@Mutable
@NotThreadSafe
public static interface ContentSource.Builder
extends SdkPojo, CopyableBuilder<ContentSource.Builder,ContentSource>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ContentSource.Builderretriever(Consumer<RetrieverContentSource.Builder> retriever) The retriever to use as the content source.retriever(RetrieverContentSource retriever) The retriever to use as the content source.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
retriever
The retriever to use as the content source.
- Parameters:
retriever- The retriever to use as the content source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retriever
The retriever to use as the content source.
This is a convenience method that creates an instance of theRetrieverContentSource.Builderavoiding the need to create one manually viaRetrieverContentSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toretriever(RetrieverContentSource).- Parameters:
retriever- a consumer that will call methods onRetrieverContentSource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-