Class ResponseInputItem.McpApprovalRequest.Builder
-
- All Implemented Interfaces:
public final class ResponseInputItem.McpApprovalRequest.Builder
A builder for McpApprovalRequest.
-
-
Method Summary
-
-
Method Detail
-
id
final ResponseInputItem.McpApprovalRequest.Builder id(String id)
The unique ID of the approval request.
-
id
final ResponseInputItem.McpApprovalRequest.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.
-
arguments
final ResponseInputItem.McpApprovalRequest.Builder arguments(String arguments)
A JSON string of arguments for the tool.
-
arguments
final ResponseInputItem.McpApprovalRequest.Builder arguments(JsonField<String> arguments)
Sets Builder.arguments to an arbitrary JSON value.
You should usually call Builder.arguments with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final ResponseInputItem.McpApprovalRequest.Builder name(String name)
The name of the tool to run.
-
name
final ResponseInputItem.McpApprovalRequest.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.
-
serverLabel
final ResponseInputItem.McpApprovalRequest.Builder serverLabel(String serverLabel)
The label of the MCP server making the request.
-
serverLabel
final ResponseInputItem.McpApprovalRequest.Builder serverLabel(JsonField<String> serverLabel)
Sets Builder.serverLabel to an arbitrary JSON value.
You should usually call Builder.serverLabel 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 ResponseInputItem.McpApprovalRequest.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_approval_request")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ResponseInputItem.McpApprovalRequest.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponseInputItem.McpApprovalRequest.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponseInputItem.McpApprovalRequest.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponseInputItem.McpApprovalRequest.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponseInputItem.McpApprovalRequest.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponseInputItem.McpApprovalRequest build()
Returns an immutable instance of McpApprovalRequest.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .arguments() .name() .serverLabel()
-
-
-
-