Interface ListWorkersResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, CopyableBuilder<ListWorkersResponse.Builder,ListWorkersResponse>, IotRoboRunnerResponse.Builder, SdkBuilder<ListWorkersResponse.Builder,ListWorkersResponse>, SdkPojo, SdkResponse.Builder
Enclosing class:
ListWorkersResponse

public static interface ListWorkersResponse.Builder extends IotRoboRunnerResponse.Builder, SdkPojo, CopyableBuilder<ListWorkersResponse.Builder,ListWorkersResponse>
  • Method Details

    • 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

      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

      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<Worker>).

      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: