Package com.openai.models
Class Run.LastError.Builder
-
- All Implemented Interfaces:
public final class Run.LastError.BuilderA builder for LastError.
-
-
Method Summary
Modifier and Type Method Description final Run.LastError.Buildercode(Run.LastError.Code code)One of server_error,rate_limit_exceeded, orinvalid_prompt.final Run.LastError.Buildercode(JsonField<Run.LastError.Code> code)One of server_error,rate_limit_exceeded, orinvalid_prompt.final Run.LastError.Buildermessage(String message)A human-readable description of the error. final Run.LastError.Buildermessage(JsonField<String> message)A human-readable description of the error. final Run.LastError.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final Run.LastError.BuilderputAdditionalProperty(String key, JsonValue value)final Run.LastError.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final Run.LastError.BuilderremoveAdditionalProperty(String key)final Run.LastError.BuilderremoveAllAdditionalProperties(Set<String> keys)final Run.LastErrorbuild()-
-
Method Detail
-
code
final Run.LastError.Builder code(Run.LastError.Code code)
One of
server_error,rate_limit_exceeded, orinvalid_prompt.
-
code
final Run.LastError.Builder code(JsonField<Run.LastError.Code> code)
One of
server_error,rate_limit_exceeded, orinvalid_prompt.
-
message
final Run.LastError.Builder message(String message)
A human-readable description of the error.
-
message
final Run.LastError.Builder message(JsonField<String> message)
A human-readable description of the error.
-
additionalProperties
final Run.LastError.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final Run.LastError.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final Run.LastError.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final Run.LastError.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final Run.LastError.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final Run.LastError build()
-
-
-
-