Package com.openai.models.beta.responses
Class BetaResponseError.Builder
-
- All Implemented Interfaces:
public final class BetaResponseError.BuilderA builder for BetaResponseError.
-
-
Method Summary
Modifier and Type Method Description final BetaResponseError.Buildercode(BetaResponseError.Code code)The error code for the response. final BetaResponseError.Buildercode(JsonField<BetaResponseError.Code> code)Sets Builder.code to an arbitrary JSON value. final BetaResponseError.Buildermessage(String message)A human-readable description of the error. final BetaResponseError.Buildermessage(JsonField<String> message)Sets Builder.message to an arbitrary JSON value. final BetaResponseError.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final BetaResponseError.BuilderputAdditionalProperty(String key, JsonValue value)final BetaResponseError.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final BetaResponseError.BuilderremoveAdditionalProperty(String key)final BetaResponseError.BuilderremoveAllAdditionalProperties(Set<String> keys)final BetaResponseErrorbuild()Returns an immutable instance of BetaResponseError. -
-
Method Detail
-
code
final BetaResponseError.Builder code(BetaResponseError.Code code)
The error code for the response.
-
code
final BetaResponseError.Builder code(JsonField<BetaResponseError.Code> code)
Sets Builder.code to an arbitrary JSON value.
You should usually call Builder.code with a well-typed Code value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
message
final BetaResponseError.Builder message(String message)
A human-readable description of the error.
-
message
final BetaResponseError.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.
-
additionalProperties
final BetaResponseError.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaResponseError.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaResponseError.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaResponseError.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaResponseError.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaResponseError build()
Returns an immutable instance of BetaResponseError.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.code() .message()
-
-
-
-