Class ToolSearchToolResultError.Builder
-
- All Implemented Interfaces:
public final class ToolSearchToolResultError.BuilderA builder for ToolSearchToolResultError.
-
-
Method Summary
-
-
Method Detail
-
errorCode
final ToolSearchToolResultError.Builder errorCode(ToolSearchToolResultErrorCode errorCode)
-
errorCode
final ToolSearchToolResultError.Builder errorCode(JsonField<ToolSearchToolResultErrorCode> errorCode)
Sets Builder.errorCode to an arbitrary JSON value.
You should usually call Builder.errorCode with a well-typed ToolSearchToolResultErrorCode value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
errorMessage
final ToolSearchToolResultError.Builder errorMessage(String errorMessage)
-
errorMessage
final ToolSearchToolResultError.Builder errorMessage(Optional<String> errorMessage)
Alias for calling Builder.errorMessage with
errorMessage.orElse(null).
-
errorMessage
final ToolSearchToolResultError.Builder errorMessage(JsonField<String> errorMessage)
Sets Builder.errorMessage to an arbitrary JSON value.
You should usually call Builder.errorMessage 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 ToolSearchToolResultError.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("tool_search_tool_result_error")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ToolSearchToolResultError.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ToolSearchToolResultError.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ToolSearchToolResultError.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ToolSearchToolResultError.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ToolSearchToolResultError.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ToolSearchToolResultError build()
Returns an immutable instance of ToolSearchToolResultError.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.errorCode() .errorMessage()
-
-
-
-