Package com.openai.models.batches
Class BatchError.Builder
-
- All Implemented Interfaces:
public final class BatchError.BuilderA builder for BatchError.
-
-
Method Summary
Modifier and Type Method Description final BatchError.Buildercode(String code)An error code identifying the error type. final BatchError.Buildercode(JsonField<String> code)An error code identifying the error type. final BatchError.Builderline(Long line)The line number of the input file where the error occurred, if applicable. final BatchError.Builderline(Long line)The line number of the input file where the error occurred, if applicable. final BatchError.Builderline(Optional<Long> line)The line number of the input file where the error occurred, if applicable. final BatchError.Builderline(JsonField<Long> line)The line number of the input file where the error occurred, if applicable. final BatchError.Buildermessage(String message)A human-readable message providing more details about the error. final BatchError.Buildermessage(JsonField<String> message)A human-readable message providing more details about the error. final BatchError.Builderparam(String param)The name of the parameter that caused the error, if applicable. final BatchError.Builderparam(Optional<String> param)The name of the parameter that caused the error, if applicable. final BatchError.Builderparam(JsonField<String> param)The name of the parameter that caused the error, if applicable. final BatchError.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final BatchError.BuilderputAdditionalProperty(String key, JsonValue value)final BatchError.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final BatchError.BuilderremoveAdditionalProperty(String key)final BatchError.BuilderremoveAllAdditionalProperties(Set<String> keys)final BatchErrorbuild()-
-
Method Detail
-
code
final BatchError.Builder code(String code)
An error code identifying the error type.
-
code
final BatchError.Builder code(JsonField<String> code)
An error code identifying the error type.
-
line
final BatchError.Builder line(Long line)
The line number of the input file where the error occurred, if applicable.
-
line
final BatchError.Builder line(Long line)
The line number of the input file where the error occurred, if applicable.
-
line
final BatchError.Builder line(Optional<Long> line)
The line number of the input file where the error occurred, if applicable.
-
line
final BatchError.Builder line(JsonField<Long> line)
The line number of the input file where the error occurred, if applicable.
-
message
final BatchError.Builder message(String message)
A human-readable message providing more details about the error.
-
message
final BatchError.Builder message(JsonField<String> message)
A human-readable message providing more details about the error.
-
param
final BatchError.Builder param(String param)
The name of the parameter that caused the error, if applicable.
-
param
final BatchError.Builder param(Optional<String> param)
The name of the parameter that caused the error, if applicable.
-
param
final BatchError.Builder param(JsonField<String> param)
The name of the parameter that caused the error, if applicable.
-
additionalProperties
final BatchError.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BatchError.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BatchError.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BatchError.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BatchError.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BatchError build()
-
-
-
-