Package com.openai.models
Class BatchError.Builder
-
- All Implemented Interfaces:
public final class BatchError.Builder
-
-
Constructor Summary
Constructors Constructor Description BatchError.Builder()
-
Method Summary
Modifier and Type Method Description final BatchError.Builder
code(String code)
An error code identifying the error type. final BatchError.Builder
code(JsonField<String> code)
An error code identifying the error type. final BatchError.Builder
line(Long line)
The line number of the input file where the error occurred, if applicable. final BatchError.Builder
line(Long line)
The line number of the input file where the error occurred, if applicable. final BatchError.Builder
line(Optional<Long> line)
The line number of the input file where the error occurred, if applicable. final BatchError.Builder
line(JsonField<Long> line)
The line number of the input file where the error occurred, if applicable. final BatchError.Builder
message(String message)
A human-readable message providing more details about the error. final BatchError.Builder
message(JsonField<String> message)
A human-readable message providing more details about the error. final BatchError.Builder
param(String param)
The name of the parameter that caused the error, if applicable. final BatchError.Builder
param(Optional<String> param)
The name of the parameter that caused the error, if applicable. final BatchError.Builder
param(JsonField<String> param)
The name of the parameter that caused the error, if applicable. final BatchError.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final BatchError.Builder
putAdditionalProperty(String key, JsonValue value)
final BatchError.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final BatchError.Builder
removeAdditionalProperty(String key)
final BatchError.Builder
removeAllAdditionalProperties(Set<String> keys)
final BatchError
build()
-
-
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()
-
-
-
-