Interface ListSessionsForWorkerResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListSessionsForWorkerResponse.Builder,,ListSessionsForWorkerResponse> DeadlineResponse.Builder,SdkBuilder<ListSessionsForWorkerResponse.Builder,,ListSessionsForWorkerResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListSessionsForWorkerResponse
@Mutable
@NotThreadSafe
public static interface ListSessionsForWorkerResponse.Builder
extends DeadlineResponse.Builder, SdkPojo, CopyableBuilder<ListSessionsForWorkerResponse.Builder,ListSessionsForWorkerResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe token for the next set of results, ornullto start from the beginning.sessions(Collection<WorkerSessionSummary> sessions) The sessions in the response.sessions(Consumer<WorkerSessionSummary.Builder>... sessions) The sessions in the response.sessions(WorkerSessionSummary... sessions) The sessions in the response.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.deadline.model.DeadlineResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
sessions
The sessions in the response.
- Parameters:
sessions- The sessions in the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessions
The sessions in the response.
- Parameters:
sessions- The sessions in the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessions
The sessions in the response.
This is a convenience method that creates an instance of theWorkerSessionSummary.Builderavoiding the need to create one manually viaWorkerSessionSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosessions(List<WorkerSessionSummary>).- Parameters:
sessions- a consumer that will call methods onWorkerSessionSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The token for the next set of results, or
nullto start from the beginning.- Parameters:
nextToken- The token for the next set of results, ornullto start from the beginning.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-