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