Interface CancelJobsResponse.Builder

  • Method Details

    • successful

      CancelJobsResponse.Builder successful(Collection<String> successful)

      A list of the job IDs whose cancellation request was accepted.

      Parameters:
      successful - A list of the job IDs whose cancellation request was accepted.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • successful

      CancelJobsResponse.Builder successful(String... successful)

      A list of the job IDs whose cancellation request was accepted.

      Parameters:
      successful - A list of the job IDs whose cancellation request was accepted.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • errors

      A list of CancelJobsErrorDetail items, one for each job that couldn't be cancelled. Each item includes the job ID along with a code and message that describe why the job wasn't cancelled.

      Parameters:
      errors - A list of CancelJobsErrorDetail items, one for each job that couldn't be cancelled. Each item includes the job ID along with a code and message that describe why the job wasn't cancelled.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • errors

      A list of CancelJobsErrorDetail items, one for each job that couldn't be cancelled. Each item includes the job ID along with a code and message that describe why the job wasn't cancelled.

      Parameters:
      errors - A list of CancelJobsErrorDetail items, one for each job that couldn't be cancelled. Each item includes the job ID along with a code and message that describe why the job wasn't cancelled.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • errors

      A list of CancelJobsErrorDetail items, one for each job that couldn't be cancelled. Each item includes the job ID along with a code and message that describe why the job wasn't cancelled.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to errors(List<CancelJobsErrorDetail>).

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