Interface ToolAdditionBlock.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ToolAdditionBlock.Builder,,ToolAdditionBlock> SdkBuilder<ToolAdditionBlock.Builder,,ToolAdditionBlock> SdkPojo
- Enclosing class:
ToolAdditionBlock
@Mutable
@NotThreadSafe
public static interface ToolAdditionBlock.Builder
extends SdkPojo, CopyableBuilder<ToolAdditionBlock.Builder,ToolAdditionBlock>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ToolAdditionBlock.Buildertool(Consumer<ToolReference.Builder> tool) A reference to the tool to add to the available tool set.tool(ToolReference tool) A reference to the tool to add to the available tool set.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
-
tool
A reference to the tool to add to the available tool set.
- Parameters:
tool- A reference to the tool to add to the available tool set.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tool
A reference to the tool to add to the available tool set.
This is a convenience method that creates an instance of theToolReference.Builderavoiding the need to create one manually viaToolReference.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totool(ToolReference).- Parameters:
tool- a consumer that will call methods onToolReference.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-