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