Class MemoryListPageResponse.Builder
-
- All Implemented Interfaces:
public final class MemoryListPageResponse.BuilderA builder for MemoryListPageResponse.
-
-
Method Summary
-
-
Method Detail
-
data
final MemoryListPageResponse.Builder data(List<BetaManagedAgentsMemoryListItem> data)
One page of results. Each item is either a
memoryobject or, whendepthwas set, amemory_prefixrollup marker. Items appear in the requestedorder_by/order.
-
data
final MemoryListPageResponse.Builder data(JsonField<List<BetaManagedAgentsMemoryListItem>> data)
Sets Builder.data to an arbitrary JSON value.
You should usually call Builder.data with a well-typed
List<BetaManagedAgentsMemoryListItem>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addData
final MemoryListPageResponse.Builder addData(BetaManagedAgentsMemoryListItem data)
Adds a single BetaManagedAgentsMemoryListItem to Builder.data.
-
addData
final MemoryListPageResponse.Builder addData(BetaManagedAgentsMemory memory)
Alias for calling addData with
BetaManagedAgentsMemoryListItem.ofMemory(memory).
-
addData
final MemoryListPageResponse.Builder addData(BetaManagedAgentsMemoryPrefix memoryPrefix)
Alias for calling addData with
BetaManagedAgentsMemoryListItem.ofMemoryPrefix(memoryPrefix).
-
addMemoryPrefixData
final MemoryListPageResponse.Builder addMemoryPrefixData(String path)
Alias for calling addData with the following:
BetaManagedAgentsMemoryPrefix.builder() .type(BetaManagedAgentsMemoryPrefix.Type.MEMORY_PREFIX) .path(path) .build()
-
nextPage
final MemoryListPageResponse.Builder nextPage(String nextPage)
Opaque cursor for the next page (a
page_...value), ornullif there are no more results. Pass aspageon the next request.
-
nextPage
final MemoryListPageResponse.Builder nextPage(Optional<String> nextPage)
Alias for calling Builder.nextPage with
nextPage.orElse(null).
-
nextPage
final MemoryListPageResponse.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 MemoryListPageResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final MemoryListPageResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final MemoryListPageResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final MemoryListPageResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final MemoryListPageResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final MemoryListPageResponse build()
Returns an immutable instance of MemoryListPageResponse.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-