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