Class BetaMcpToolUseBlock.Builder
-
- All Implemented Interfaces:
public final class BetaMcpToolUseBlock.BuilderA builder for BetaMcpToolUseBlock.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaMcpToolUseBlock.Builder id(String id)
-
id
final BetaMcpToolUseBlock.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
input
final BetaMcpToolUseBlock.Builder input(JsonValue input)
-
name
final BetaMcpToolUseBlock.Builder name(String name)
The name of the MCP tool
-
name
final BetaMcpToolUseBlock.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
serverName
final BetaMcpToolUseBlock.Builder serverName(String serverName)
The name of the MCP server
-
serverName
final BetaMcpToolUseBlock.Builder serverName(JsonField<String> serverName)
Sets Builder.serverName to an arbitrary JSON value.
You should usually call Builder.serverName with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaMcpToolUseBlock.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("mcp_tool_use")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaMcpToolUseBlock.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaMcpToolUseBlock.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaMcpToolUseBlock.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaMcpToolUseBlock.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaMcpToolUseBlock.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaMcpToolUseBlock build()
Returns an immutable instance of BetaMcpToolUseBlock.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .input() .name() .serverName()
-
-
-
-