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, ornull
to 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
copy
Methods inherited from interface software.amazon.awssdk.services.deadline.model.DeadlineResponse.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, sdkFieldNameToField, sdkFields
Methods 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.Builder
avoiding the need to create one manually viaWorkerSessionSummary.builder()
.When the
Consumer
completes,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
null
to start from the beginning.- Parameters:
nextToken
- The token for the next set of results, ornull
to start from the beginning.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-