Class RealtimeMcpApprovalResponse.Builder
-
- All Implemented Interfaces:
public final class RealtimeMcpApprovalResponse.Builder
A builder for RealtimeMcpApprovalResponse.
-
-
Method Summary
-
-
Method Detail
-
id
final RealtimeMcpApprovalResponse.Builder id(String id)
The unique ID of the approval response.
-
id
final RealtimeMcpApprovalResponse.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.
-
approvalRequestId
final RealtimeMcpApprovalResponse.Builder approvalRequestId(String approvalRequestId)
The ID of the approval request being answered.
-
approvalRequestId
final RealtimeMcpApprovalResponse.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 RealtimeMcpApprovalResponse.Builder approve(Boolean approve)
Whether the request was approved.
-
approve
final RealtimeMcpApprovalResponse.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 RealtimeMcpApprovalResponse.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.
-
reason
final RealtimeMcpApprovalResponse.Builder reason(String reason)
Optional reason for the decision.
-
reason
final RealtimeMcpApprovalResponse.Builder reason(Optional<String> reason)
Alias for calling Builder.reason with
reason.orElse(null)
.
-
reason
final RealtimeMcpApprovalResponse.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 RealtimeMcpApprovalResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RealtimeMcpApprovalResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RealtimeMcpApprovalResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RealtimeMcpApprovalResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RealtimeMcpApprovalResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RealtimeMcpApprovalResponse build()
Returns an immutable instance of RealtimeMcpApprovalResponse.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .approvalRequestId() .approve()
-
-
-
-