Class ChatCompletionListPageResponse.Builder
-
- All Implemented Interfaces:
public final class ChatCompletionListPageResponse.BuilderA builder for ChatCompletionListPageResponse.
-
-
Method Summary
-
-
Method Detail
-
data
final ChatCompletionListPageResponse.Builder data(List<ChatCompletion> data)
An array of chat completion objects.
-
data
final ChatCompletionListPageResponse.Builder data(JsonField<List<ChatCompletion>> data)
Sets Builder.data to an arbitrary JSON value.
You should usually call Builder.data with a well-typed
List<ChatCompletion>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addData
final ChatCompletionListPageResponse.Builder addData(ChatCompletion data)
Adds a single ChatCompletion to Builder.data.
-
firstId
final ChatCompletionListPageResponse.Builder firstId(String firstId)
The identifier of the first chat completion in the data array.
-
firstId
final ChatCompletionListPageResponse.Builder firstId(JsonField<String> firstId)
Sets Builder.firstId to an arbitrary JSON value.
You should usually call Builder.firstId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
hasMore
final ChatCompletionListPageResponse.Builder hasMore(Boolean hasMore)
Indicates whether there are more Chat Completions available.
-
hasMore
final ChatCompletionListPageResponse.Builder hasMore(JsonField<Boolean> hasMore)
Sets Builder.hasMore to an arbitrary JSON value.
You should usually call Builder.hasMore with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
lastId
final ChatCompletionListPageResponse.Builder lastId(String lastId)
The identifier of the last chat completion in the data array.
-
lastId
final ChatCompletionListPageResponse.Builder lastId(JsonField<String> lastId)
Sets Builder.lastId to an arbitrary JSON value.
You should usually call Builder.lastId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
object_
final ChatCompletionListPageResponse.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 ChatCompletionListPageResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ChatCompletionListPageResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ChatCompletionListPageResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ChatCompletionListPageResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ChatCompletionListPageResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ChatCompletionListPageResponse build()
Returns an immutable instance of ChatCompletionListPageResponse.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.data() .firstId() .hasMore() .lastId()
-
-
-
-