Class ResponseInputItem.McpApprovalResponse.Builder
-
- All Implemented Interfaces:
public final class ResponseInputItem.McpApprovalResponse.Builder
A builder for McpApprovalResponse.
-
-
Method Summary
-
-
Method Detail
-
approvalRequestId
final ResponseInputItem.McpApprovalResponse.Builder approvalRequestId(String approvalRequestId)
The ID of the approval request being answered.
-
approvalRequestId
final ResponseInputItem.McpApprovalResponse.Builder approvalRequestId(JsonField<String> approvalRequestId)
Sets Builder.approvalRequestId to an arbitrary JSON value.
You should usually call Builder.approvalRequestId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
approve
final ResponseInputItem.McpApprovalResponse.Builder approve(Boolean approve)
Whether the request was approved.
-
approve
final ResponseInputItem.McpApprovalResponse.Builder approve(JsonField<Boolean> approve)
Sets Builder.approve to an arbitrary JSON value.
You should usually call Builder.approve with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final ResponseInputItem.McpApprovalResponse.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_response")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
id
final ResponseInputItem.McpApprovalResponse.Builder id(String id)
The unique ID of the approval response
-
id
final ResponseInputItem.McpApprovalResponse.Builder id(Optional<String> id)
Alias for calling Builder.id with
id.orElse(null)
.
-
id
final ResponseInputItem.McpApprovalResponse.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.
-
reason
final ResponseInputItem.McpApprovalResponse.Builder reason(String reason)
Optional reason for the decision.
-
reason
final ResponseInputItem.McpApprovalResponse.Builder reason(Optional<String> reason)
Alias for calling Builder.reason with
reason.orElse(null)
.
-
reason
final ResponseInputItem.McpApprovalResponse.Builder reason(JsonField<String> reason)
Sets Builder.reason to an arbitrary JSON value.
You should usually call Builder.reason with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ResponseInputItem.McpApprovalResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponseInputItem.McpApprovalResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponseInputItem.McpApprovalResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponseInputItem.McpApprovalResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponseInputItem.McpApprovalResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponseInputItem.McpApprovalResponse build()
Returns an immutable instance of McpApprovalResponse.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.approvalRequestId() .approve()
-
-
-
-