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
Modifier and TypeMethodDescriptiondefault ContentBlockStart.BuildertoolUse(Consumer<ToolUseBlockStart.Builder> toolUse) Information about a tool that the model is requesting to use.toolUse(ToolUseBlockStart toolUse) Information about a tool that the model is requesting to use.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
-
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
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:
-