Interface ListJobsResponse.Builder

    • Method Detail

      • jobs

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

        A list of jobs that are defined.

        Parameters:
        jobs - A list of jobs that are defined.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • jobs

        ListJobsResponse.Builder jobs​(Job... jobs)

        A list of jobs that are defined.

        Parameters:
        jobs - A list of jobs that are defined.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • jobs

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

        A list of jobs that are defined.

        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)
      • nextToken

        ListJobsResponse.Builder nextToken​(String nextToken)

        A token that you can use in a subsequent call to retrieve the next set of results.

        Parameters:
        nextToken - A token that you can use in a subsequent call to retrieve the next set of results.
        Returns:
        Returns a reference to this object so that method calls can be chained together.