Interface ContentBlockStart.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ContentBlockStart.Builder,ContentBlockStart>,SdkBuilder<ContentBlockStart.Builder,ContentBlockStart>,SdkPojo
- Enclosing class:
- ContentBlockStart
@Mutable @NotThreadSafe public static interface ContentBlockStart.Builder extends SdkPojo, CopyableBuilder<ContentBlockStart.Builder,ContentBlockStart>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ContentBlockStart.Builderimage(Consumer<ImageBlockStart.Builder> image)The initial event indicating the start of a streaming image block.ContentBlockStart.Builderimage(ImageBlockStart image)The initial event indicating the start of a streaming image block.default ContentBlockStart.BuildertoolResult(Consumer<ToolResultBlockStart.Builder> toolResult)TheContentBlockStart.BuildertoolResult(ToolResultBlockStart toolResult)Thedefault ContentBlockStart.BuildertoolUse(Consumer<ToolUseBlockStart.Builder> toolUse)Information about a tool that the model is requesting to use.ContentBlockStart.BuildertoolUse(ToolUseBlockStart toolUse)Information about a tool that the model is requesting to use.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
toolUse
ContentBlockStart.Builder toolUse(ToolUseBlockStart toolUse)
Information about a tool that the model is requesting to use.
- Parameters:
toolUse- Information about a tool that the model is requesting to use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toolUse
default ContentBlockStart.Builder toolUse(Consumer<ToolUseBlockStart.Builder> toolUse)
Information about a tool that the model is requesting to use.
This is a convenience method that creates an instance of theToolUseBlockStart.Builderavoiding the need to create one manually viaToolUseBlockStart.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totoolUse(ToolUseBlockStart).- Parameters:
toolUse- a consumer that will call methods onToolUseBlockStart.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
toolUse(ToolUseBlockStart)
-
toolResult
ContentBlockStart.Builder toolResult(ToolResultBlockStart toolResult)
The
- Parameters:
toolResult- The- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toolResult
default ContentBlockStart.Builder toolResult(Consumer<ToolResultBlockStart.Builder> toolResult)
The
This is a convenience method that creates an instance of theToolResultBlockStart.Builderavoiding the need to create one manually viaToolResultBlockStart.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totoolResult(ToolResultBlockStart).- Parameters:
toolResult- a consumer that will call methods onToolResultBlockStart.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
toolResult(ToolResultBlockStart)
-
image
ContentBlockStart.Builder image(ImageBlockStart image)
The initial event indicating the start of a streaming image block.
- Parameters:
image- The initial event indicating the start of a streaming image block.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
image
default ContentBlockStart.Builder image(Consumer<ImageBlockStart.Builder> image)
The initial event indicating the start of a streaming image block.
This is a convenience method that creates an instance of theImageBlockStart.Builderavoiding the need to create one manually viaImageBlockStart.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toimage(ImageBlockStart).- Parameters:
image- a consumer that will call methods onImageBlockStart.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
image(ImageBlockStart)
-
-