Class ThreadListPageResponse.Builder
-
- All Implemented Interfaces:
public final class ThreadListPageResponse.BuilderA builder for ThreadListPageResponse.
-
-
Method Summary
-
-
Method Detail
-
data
final ThreadListPageResponse.Builder data(List<BetaManagedAgentsSessionThread> data)
Threads in the session, primary first then children in spawn order.
-
data
final ThreadListPageResponse.Builder data(JsonField<List<BetaManagedAgentsSessionThread>> data)
Sets Builder.data to an arbitrary JSON value.
You should usually call Builder.data with a well-typed
List<BetaManagedAgentsSessionThread>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addData
final ThreadListPageResponse.Builder addData(BetaManagedAgentsSessionThread data)
Adds a single BetaManagedAgentsSessionThread to Builder.data.
-
nextPage
final ThreadListPageResponse.Builder nextPage(String nextPage)
Opaque cursor for the next page. Null when no more results.
-
nextPage
final ThreadListPageResponse.Builder nextPage(Optional<String> nextPage)
Alias for calling Builder.nextPage with
nextPage.orElse(null).
-
nextPage
final ThreadListPageResponse.Builder nextPage(JsonField<String> nextPage)
Sets Builder.nextPage to an arbitrary JSON value.
You should usually call Builder.nextPage with a well-typed String value instead. 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.
-
-
-
-