Class ListTasksResult.Builder
java.lang.Object
org.a2aproject.sdk.jsonrpc.common.wrappers.ListTasksResult.Builder
- Enclosing class:
- ListTasksResult
Builder for constructing instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the ListTasksResult.nextPageToken(String nextPageToken) Sets the nextPageToken.pageSize(int pageSize) Sets the pageSize.Sets the tasks list.totalSize(int totalSize) Sets the totalSize.
-
Method Details
-
tasks
Sets the tasks list.- Parameters:
tasks- the list of tasks- Returns:
- this builder for method chaining
-
totalSize
Sets the totalSize.- Parameters:
totalSize- the totalSize- Returns:
- this builder for method chaining
-
pageSize
Sets the pageSize.- Parameters:
pageSize- the pageSize- Returns:
- this builder for method chaining
-
nextPageToken
Sets the nextPageToken.- Parameters:
nextPageToken- the nextPageToken- Returns:
- this builder for method chaining
-
build
Builds the ListTasksResult.- Returns:
- a new ListTasksResult instance
- Throws:
IllegalArgumentException- if validation fails
-