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