Class BetaMcpToolset.Builder
-
- All Implemented Interfaces:
public final class BetaMcpToolset.BuilderA builder for BetaMcpToolset.
-
-
Method Summary
-
-
Method Detail
-
mcpServerName
final BetaMcpToolset.Builder mcpServerName(String mcpServerName)
Name of the MCP server to configure tools for
-
mcpServerName
final BetaMcpToolset.Builder mcpServerName(JsonField<String> mcpServerName)
Sets Builder.mcpServerName to an arbitrary JSON value.
You should usually call Builder.mcpServerName 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 BetaMcpToolset.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_toolset")This method is primarily for setting the field to an undocumented or not yet supported value.
-
cacheControl
final BetaMcpToolset.Builder cacheControl(BetaCacheControlEphemeral cacheControl)
Create a cache control breakpoint at this content block.
-
cacheControl
final BetaMcpToolset.Builder cacheControl(Optional<BetaCacheControlEphemeral> cacheControl)
Alias for calling Builder.cacheControl with
cacheControl.orElse(null).
-
cacheControl
final BetaMcpToolset.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.
-
configs
final BetaMcpToolset.Builder configs(BetaMcpToolset.Configs configs)
Configuration overrides for specific tools, keyed by tool name
-
configs
final BetaMcpToolset.Builder configs(Optional<BetaMcpToolset.Configs> configs)
Alias for calling Builder.configs with
configs.orElse(null).
-
configs
final BetaMcpToolset.Builder configs(JsonField<BetaMcpToolset.Configs> configs)
Sets Builder.configs to an arbitrary JSON value.
You should usually call Builder.configs with a well-typed Configs value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
defaultConfig
final BetaMcpToolset.Builder defaultConfig(BetaMcpToolDefaultConfig defaultConfig)
Default configuration applied to all tools from this server
-
defaultConfig
final BetaMcpToolset.Builder defaultConfig(JsonField<BetaMcpToolDefaultConfig> defaultConfig)
Sets Builder.defaultConfig to an arbitrary JSON value.
You should usually call Builder.defaultConfig with a well-typed BetaMcpToolDefaultConfig value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaMcpToolset.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaMcpToolset.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaMcpToolset.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaMcpToolset.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaMcpToolset.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaMcpToolset build()
Returns an immutable instance of BetaMcpToolset.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.mcpServerName()
-
-
-
-