Class BetaMcpToolListingBlock.Builder
-
- All Implemented Interfaces:
public final class BetaMcpToolListingBlock.BuilderA builder for BetaMcpToolListingBlock.
-
-
Method Summary
-
-
Method Detail
-
mcpServerName
final BetaMcpToolListingBlock.Builder mcpServerName(String mcpServerName)
-
mcpServerName
final BetaMcpToolListingBlock.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.
-
tools
final BetaMcpToolListingBlock.Builder tools(List<BetaMcpTool> tools)
-
tools
final BetaMcpToolListingBlock.Builder tools(JsonField<List<BetaMcpTool>> tools)
Sets Builder.tools to an arbitrary JSON value.
You should usually call Builder.tools with a well-typed
List<BetaMcpTool>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaMcpToolListingBlock.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_listing")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaMcpToolListingBlock.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
addTool
final BetaMcpToolListingBlock.Builder addTool(BetaMcpTool tool)
Adds a single BetaMcpTool to tools.
-
putAdditionalProperty
final BetaMcpToolListingBlock.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaMcpToolListingBlock.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaMcpToolListingBlock.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaMcpToolListingBlock.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaMcpToolListingBlock build()
Returns an immutable instance of BetaMcpToolListingBlock.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.mcpServerName() .tools()
-
-
-
-