Interface ModelInput.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ModelInput.Builder,,ModelInput> SdkBuilder<ModelInput.Builder,,ModelInput> SdkPojo
- Enclosing class:
ModelInput
@Mutable
@NotThreadSafe
public static interface ModelInput.Builder
extends SdkPojo, CopyableBuilder<ModelInput.Builder,ModelInput>
-
Method Summary
Modifier and TypeMethodDescriptionchunks(Collection<EncodedTextChunk> chunks) The ordered list of encoded text chunks forming the input sequence.chunks(Consumer<EncodedTextChunk.Builder>... chunks) The ordered list of encoded text chunks forming the input sequence.chunks(EncodedTextChunk... chunks) The ordered list of encoded text chunks forming the input sequence.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
-
chunks
The ordered list of encoded text chunks forming the input sequence.
- Parameters:
chunks- The ordered list of encoded text chunks forming the input sequence.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
chunks
The ordered list of encoded text chunks forming the input sequence.
- Parameters:
chunks- The ordered list of encoded text chunks forming the input sequence.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
chunks
The ordered list of encoded text chunks forming the input sequence.
This is a convenience method that creates an instance of theEncodedTextChunk.Builderavoiding the need to create one manually viaEncodedTextChunk.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tochunks(List<EncodedTextChunk>).- Parameters:
chunks- a consumer that will call methods onEncodedTextChunk.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-