Package com.openai.models
Class ResponseFormatJsonObject.Builder
-
- All Implemented Interfaces:
public final class ResponseFormatJsonObject.Builder
A builder for ResponseFormatJsonObject.
-
-
Method Summary
Modifier and Type Method Description final ResponseFormatJsonObject.Builder
type(JsonValue type)
Sets the field to an arbitrary JSON value. final ResponseFormatJsonObject.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final ResponseFormatJsonObject.Builder
putAdditionalProperty(String key, JsonValue value)
final ResponseFormatJsonObject.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final ResponseFormatJsonObject.Builder
removeAdditionalProperty(String key)
final ResponseFormatJsonObject.Builder
removeAllAdditionalProperties(Set<String> keys)
final ResponseFormatJsonObject
build()
Returns an immutable instance of ResponseFormatJsonObject. -
-
Method Detail
-
type
final ResponseFormatJsonObject.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("json_object")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ResponseFormatJsonObject.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponseFormatJsonObject.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponseFormatJsonObject.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponseFormatJsonObject.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponseFormatJsonObject.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponseFormatJsonObject build()
Returns an immutable instance of ResponseFormatJsonObject.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-