Interface TerminateJobsResponse.Builder

  • Method Details

    • successful

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

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

      TerminateJobsResponse.Builder successful(String... successful)

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

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

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

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

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

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

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

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

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

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