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