Package com.openai.models.models
Class ModelListPageResponse.Builder
-
- All Implemented Interfaces:
public final class ModelListPageResponse.BuilderA builder for ModelListPageResponse.
-
-
Method Summary
Modifier and Type Method Description final ModelListPageResponse.Builderdata(List<Model> data)final ModelListPageResponse.Builderdata(JsonField<List<Model>> data)Sets Builder.data to an arbitrary JSON value. final ModelListPageResponse.BuilderaddData(Model data)Adds a single Model to Builder.data. final ModelListPageResponse.Builderobject_(JsonValue object_)Sets the field to an arbitrary JSON value. final ModelListPageResponse.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final ModelListPageResponse.BuilderputAdditionalProperty(String key, JsonValue value)final ModelListPageResponse.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final ModelListPageResponse.BuilderremoveAdditionalProperty(String key)final ModelListPageResponse.BuilderremoveAllAdditionalProperties(Set<String> keys)final ModelListPageResponsebuild()Returns an immutable instance of ModelListPageResponse. -
-
Method Detail
-
data
final ModelListPageResponse.Builder data(List<Model> data)
-
data
final ModelListPageResponse.Builder data(JsonField<List<Model>> data)
Sets Builder.data to an arbitrary JSON value.
You should usually call Builder.data with a well-typed
List<Model>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addData
final ModelListPageResponse.Builder addData(Model data)
Adds a single Model to Builder.data.
-
object_
final ModelListPageResponse.Builder object_(JsonValue object_)
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("list")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ModelListPageResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ModelListPageResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ModelListPageResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ModelListPageResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ModelListPageResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ModelListPageResponse build()
Returns an immutable instance of ModelListPageResponse.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.data()
-
-
-
-