Class ListTasksParams.Builder

java.lang.Object
org.a2aproject.sdk.spec.ListTasksParams.Builder
Enclosing class:
ListTasksParams

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

    • contextId

      public ListTasksParams.Builder contextId(String contextId)
      Sets the contextId.
      Parameters:
      contextId - the contextId
      Returns:
      this builder for method chaining
    • status

      public ListTasksParams.Builder status(TaskState status)
      Sets the status.
      Parameters:
      status - the status
      Returns:
      this builder for method chaining
    • pageSize

      public ListTasksParams.Builder pageSize(Integer pageSize)
      Sets the pageSize.
      Parameters:
      pageSize - the pageSize
      Returns:
      this builder for method chaining
    • pageToken

      public ListTasksParams.Builder pageToken(String pageToken)
      Sets the pageToken.
      Parameters:
      pageToken - the pageToken
      Returns:
      this builder for method chaining
    • historyLength

      public ListTasksParams.Builder historyLength(Integer historyLength)
      Sets the historyLength.
      Parameters:
      historyLength - the historyLength
      Returns:
      this builder for method chaining
    • statusTimestampAfter

      public ListTasksParams.Builder statusTimestampAfter(Instant statusTimestampAfter)
      Sets the statusTimestampAfter.
      Parameters:
      statusTimestampAfter - the statusTimestampAfter
      Returns:
      this builder for method chaining
    • includeArtifacts

      public ListTasksParams.Builder includeArtifacts(Boolean includeArtifacts)
      Sets the includeArtifacts.
      Parameters:
      includeArtifacts - the includeArtifacts
      Returns:
      this builder for method chaining
    • tenant

      public ListTasksParams.Builder tenant(@Nullable String tenant)
      Sets the tenant.
      Parameters:
      tenant - the tenant
      Returns:
      this builder for method chaining
    • build

      public ListTasksParams build()
      Builds the ListTasksParams.
      Returns:
      a new ListTasksParams instance