Interface ListWorkersResponse.Builder

    • Method Detail

      • nextToken

        ListWorkersResponse.Builder nextToken​(String nextToken)
        Sets the value of the NextToken property for this object.
        Parameters:
        nextToken - The new value for the NextToken property for this object.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • workers

        ListWorkersResponse.Builder workers​(Collection<Worker> workers)
        Sets the value of the Workers property for this object.
        Parameters:
        workers - The new value for the Workers property for this object.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • workers

        ListWorkersResponse.Builder workers​(Worker... workers)
        Sets the value of the Workers property for this object.
        Parameters:
        workers - The new value for the Workers property for this object.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • workers

        ListWorkersResponse.Builder workers​(Consumer<Worker.Builder>... workers)
        Sets the value of the Workers property for this object. This is a convenience method that creates an instance of the Worker.Builder avoiding the need to create one manually via Worker.builder().

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

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