Class ThreadListPageResponse.Builder
-
- All Implemented Interfaces:
public final class ThreadListPageResponse.Builder
A builder for ThreadListPageResponse.
-
-
Method Summary
-
-
Method Detail
-
data
final ThreadListPageResponse.Builder data(List<ChatKitThread> data)
A list of items
-
data
final ThreadListPageResponse.Builder data(JsonField<List<ChatKitThread>> data)
Sets Builder.data to an arbitrary JSON value.
You should usually call Builder.data with a well-typed
List<ChatKitThread>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addData
final ThreadListPageResponse.Builder addData(ChatKitThread data)
Adds a single ChatKitThread to Builder.data.
-
firstId
final ThreadListPageResponse.Builder firstId(String firstId)
The ID of the first item in the list.
-
firstId
final ThreadListPageResponse.Builder firstId(Optional<String> firstId)
Alias for calling Builder.firstId with
firstId.orElse(null)
.
-
firstId
final ThreadListPageResponse.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 ThreadListPageResponse.Builder hasMore(Boolean hasMore)
Whether there are more items available.
-
hasMore
final ThreadListPageResponse.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 ThreadListPageResponse.Builder lastId(String lastId)
The ID of the last item in the list.
-
lastId
final ThreadListPageResponse.Builder lastId(Optional<String> lastId)
Alias for calling Builder.lastId with
lastId.orElse(null)
.
-
lastId
final ThreadListPageResponse.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 ThreadListPageResponse.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 ThreadListPageResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ThreadListPageResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ThreadListPageResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ThreadListPageResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ThreadListPageResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ThreadListPageResponse build()
Returns an immutable instance of ThreadListPageResponse.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.data() .firstId() .hasMore() .lastId()
-
-
-
-