Class TaskQueryParams.Builder

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

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

    • id

      Sets the id.
      Parameters:
      id - the task identifier (required)
      Returns:
      this builder for method chaining
    • historyLength

      public TaskQueryParams.Builder historyLength(Integer historyLength)
      Sets the historyLength.
      Parameters:
      historyLength - the maximum number of history items to include
      Returns:
      this builder for method chaining
    • tenant

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

      public TaskQueryParams build()
      Builds the TaskQueryParams.
      Returns:
      a new TaskQueryParams instance
      Throws:
      IllegalArgumentException - if id is null or historyLength is negative