Interface BatchGetTaskError.Builder

  • Method Details

    • key

      The identifier of the task that the operation could not retrieve.

      Parameters:
      key - The identifier of the task that the operation could not retrieve.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • key

      The identifier of the task that the operation could not retrieve.

      This is a convenience method that creates an instance of the TaskKey.Builder avoiding the need to create one manually via TaskKey.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to key(TaskKey).

      Parameters:
      key - a consumer that will call methods on TaskKey.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • code

      The error code. Known values: NOT_FOUND, ACCESS_DENIED, THROTTLED, INTERNAL_ERROR.

      Parameters:
      code - The error code. Known values: NOT_FOUND, ACCESS_DENIED, THROTTLED, INTERNAL_ERROR.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • message

      A human-readable explanation of why the operation could not return this task. Intended for display and logging; match on code for programmatic handling.

      Parameters:
      message - A human-readable explanation of why the operation could not return this task. Intended for display and logging; match on code for programmatic handling.
      Returns:
      Returns a reference to this object so that method calls can be chained together.