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