Class ListTasksResult.Builder

java.lang.Object
org.a2aproject.sdk.jsonrpc.common.wrappers.ListTasksResult.Builder
Enclosing class:
ListTasksResult

public static class ListTasksResult.Builder extends Object
Builder for constructing instances.
  • Method Details

    • tasks

      public ListTasksResult.Builder tasks(List<org.a2aproject.sdk.spec.Task> tasks)
      Sets the tasks list.
      Parameters:
      tasks - the list of tasks
      Returns:
      this builder for method chaining
    • totalSize

      public ListTasksResult.Builder totalSize(int totalSize)
      Sets the totalSize.
      Parameters:
      totalSize - the totalSize
      Returns:
      this builder for method chaining
    • pageSize

      public ListTasksResult.Builder pageSize(int pageSize)
      Sets the pageSize.
      Parameters:
      pageSize - the pageSize
      Returns:
      this builder for method chaining
    • nextPageToken

      public ListTasksResult.Builder nextPageToken(String nextPageToken)
      Sets the nextPageToken.
      Parameters:
      nextPageToken - the nextPageToken
      Returns:
      this builder for method chaining
    • build

      public ListTasksResult build()
      Builds the ListTasksResult.
      Returns:
      a new ListTasksResult instance
      Throws:
      IllegalArgumentException - if validation fails