Interface PollForJobsResponse.Builder

    • Method Detail

      • jobs

        PollForJobsResponse.Builder jobs​(Collection<Job> jobs)

        Information about the jobs to take action on.

        Parameters:
        jobs - Information about the jobs to take action on.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • jobs

        PollForJobsResponse.Builder jobs​(Job... jobs)

        Information about the jobs to take action on.

        Parameters:
        jobs - Information about the jobs to take action on.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • jobs

        PollForJobsResponse.Builder jobs​(Consumer<Job.Builder>... jobs)

        Information about the jobs to take action on.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #jobs(List).

        Parameters:
        jobs - a consumer that will call methods on Job.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #jobs(java.util.Collection)