Interface HarnessToolResultBlock.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<HarnessToolResultBlock.Builder,,HarnessToolResultBlock> SdkBuilder<HarnessToolResultBlock.Builder,,HarnessToolResultBlock> SdkPojo
- Enclosing class:
HarnessToolResultBlock
@Mutable
@NotThreadSafe
public static interface HarnessToolResultBlock.Builder
extends SdkPojo, CopyableBuilder<HarnessToolResultBlock.Builder,HarnessToolResultBlock>
-
Method Summary
Modifier and TypeMethodDescriptioncontent(Collection<HarnessToolResultContentBlock> content) The content of the tool result.content(Consumer<HarnessToolResultContentBlock.Builder>... content) The content of the tool result.content(HarnessToolResultContentBlock... content) The content of the tool result.The status of the tool execution.status(HarnessToolUseStatus status) The status of the tool execution.The tool use ID that this result corresponds to.The type of tool use that produced this result.type(HarnessToolUseType type) The type of tool use that produced this result.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
-
toolUseId
The tool use ID that this result corresponds to.
- Parameters:
toolUseId- The tool use ID that this result corresponds to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
The content of the tool result.
- Parameters:
content- The content of the tool result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
The content of the tool result.
- Parameters:
content- The content of the tool result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
The content of the tool result.
This is a convenience method that creates an instance of theHarnessToolResultContentBlock.Builderavoiding the need to create one manually viaHarnessToolResultContentBlock.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontent(List<HarnessToolResultContentBlock>).- Parameters:
content- a consumer that will call methods onHarnessToolResultContentBlock.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the tool execution.
- Parameters:
status- The status of the tool execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the tool execution.
- Parameters:
status- The status of the tool execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of tool use that produced this result.
- Parameters:
type- The type of tool use that produced this result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of tool use that produced this result.
- Parameters:
type- The type of tool use that produced this result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-