Package com.anthropic.models.messages
Class WebSearchToolRequestError.Builder
-
- All Implemented Interfaces:
public final class WebSearchToolRequestError.BuilderA builder for WebSearchToolRequestError.
-
-
Method Summary
Modifier and Type Method Description final WebSearchToolRequestError.BuildererrorCode(WebSearchToolRequestError.ErrorCode errorCode)final WebSearchToolRequestError.BuildererrorCode(JsonField<WebSearchToolRequestError.ErrorCode> errorCode)Sets Builder.errorCode to an arbitrary JSON value. final WebSearchToolRequestError.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final WebSearchToolRequestError.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final WebSearchToolRequestError.BuilderputAdditionalProperty(String key, JsonValue value)final WebSearchToolRequestError.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final WebSearchToolRequestError.BuilderremoveAdditionalProperty(String key)final WebSearchToolRequestError.BuilderremoveAllAdditionalProperties(Set<String> keys)final WebSearchToolRequestErrorbuild()Returns an immutable instance of WebSearchToolRequestError. -
-
Method Detail
-
errorCode
final WebSearchToolRequestError.Builder errorCode(WebSearchToolRequestError.ErrorCode errorCode)
-
errorCode
final WebSearchToolRequestError.Builder errorCode(JsonField<WebSearchToolRequestError.ErrorCode> errorCode)
Sets Builder.errorCode to an arbitrary JSON value.
You should usually call Builder.errorCode with a well-typed ErrorCode value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final WebSearchToolRequestError.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("web_search_tool_result_error")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final WebSearchToolRequestError.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final WebSearchToolRequestError.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final WebSearchToolRequestError.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final WebSearchToolRequestError.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final WebSearchToolRequestError.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final WebSearchToolRequestError build()
Returns an immutable instance of WebSearchToolRequestError.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.errorCode()
-
-
-
-