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 Summary
Modifier and TypeMethodDescriptionSets the value of the NextToken property for this object.workers
(Collection<Worker> workers) Sets the value of the Workers property for this object.workers
(Consumer<Worker.Builder>... workers) Sets the value of the Workers property for this object.Sets the value of the Workers property for this object.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.iotroborunner.model.IotRoboRunnerResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
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
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 theWorker.Builder
avoiding the need to create one manually viaWorker.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toworkers(List<Worker>)
.- Parameters:
workers
- a consumer that will call methods onWorker.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-