Class ResourceListPageResponse.Builder
-
- All Implemented Interfaces:
public final class ResourceListPageResponse.BuilderA builder for ResourceListPageResponse.
-
-
Method Summary
-
-
Method Detail
-
data
final ResourceListPageResponse.Builder data(List<BetaManagedAgentsSessionResource> data)
Resources for the session, ordered by
created_at.
-
data
final ResourceListPageResponse.Builder data(JsonField<List<BetaManagedAgentsSessionResource>> data)
Sets Builder.data to an arbitrary JSON value.
You should usually call Builder.data with a well-typed
List<BetaManagedAgentsSessionResource>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addData
final ResourceListPageResponse.Builder addData(BetaManagedAgentsSessionResource data)
Adds a single BetaManagedAgentsSessionResource to Builder.data.
-
addData
final ResourceListPageResponse.Builder addData(BetaManagedAgentsGitHubRepositoryResource githubRepository)
Alias for calling addData with
BetaManagedAgentsSessionResource.ofGitHubRepository(githubRepository).
-
addData
final ResourceListPageResponse.Builder addData(BetaManagedAgentsFileResource file)
Alias for calling addData with
BetaManagedAgentsSessionResource.ofFile(file).
-
addData
final ResourceListPageResponse.Builder addData(BetaManagedAgentsMemoryStoreResource memoryStore)
Alias for calling addData with
BetaManagedAgentsSessionResource.ofMemoryStore(memoryStore).
-
addMemoryStoreData
final ResourceListPageResponse.Builder addMemoryStoreData(String memoryStoreId)
Alias for calling addData with the following:
BetaManagedAgentsMemoryStoreResource.builder() .type(BetaManagedAgentsMemoryStoreResource.Type.MEMORY_STORE) .memoryStoreId(memoryStoreId) .build()
-
nextPage
final ResourceListPageResponse.Builder nextPage(String nextPage)
Opaque cursor for the next page. Null when no more results.
-
nextPage
final ResourceListPageResponse.Builder nextPage(Optional<String> nextPage)
Alias for calling Builder.nextPage with
nextPage.orElse(null).
-
nextPage
final ResourceListPageResponse.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 ResourceListPageResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResourceListPageResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResourceListPageResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResourceListPageResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResourceListPageResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResourceListPageResponse build()
Returns an immutable instance of ResourceListPageResponse.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.data()
-
-
-
-