Class BetaMcpToolUseBlockParam.Builder
-
- All Implemented Interfaces:
public final class BetaMcpToolUseBlockParam.BuilderA builder for BetaMcpToolUseBlockParam.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaMcpToolUseBlockParam.Builder id(String id)
-
id
final BetaMcpToolUseBlockParam.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 BetaMcpToolUseBlockParam.Builder input(JsonValue input)
-
name
final BetaMcpToolUseBlockParam.Builder name(String name)
-
name
final BetaMcpToolUseBlockParam.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 BetaMcpToolUseBlockParam.Builder serverName(String serverName)
The name of the MCP server
-
serverName
final BetaMcpToolUseBlockParam.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 BetaMcpToolUseBlockParam.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.
-
cacheControl
final BetaMcpToolUseBlockParam.Builder cacheControl(BetaCacheControlEphemeral cacheControl)
Create a cache control breakpoint at this content block.
-
cacheControl
final BetaMcpToolUseBlockParam.Builder cacheControl(Optional<BetaCacheControlEphemeral> cacheControl)
Alias for calling Builder.cacheControl with
cacheControl.orElse(null).
-
cacheControl
final BetaMcpToolUseBlockParam.Builder cacheControl(JsonField<BetaCacheControlEphemeral> cacheControl)
Sets Builder.cacheControl to an arbitrary JSON value.
You should usually call Builder.cacheControl with a well-typed BetaCacheControlEphemeral value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaMcpToolUseBlockParam.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaMcpToolUseBlockParam.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaMcpToolUseBlockParam.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaMcpToolUseBlockParam.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaMcpToolUseBlockParam.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaMcpToolUseBlockParam build()
Returns an immutable instance of BetaMcpToolUseBlockParam.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .input() .name() .serverName()
-
-
-
-