Interface ListSessionsForWorkerResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListSessionsForWorkerResponse.Builder,ListSessionsForWorkerResponse>,DeadlineResponse.Builder,SdkBuilder<ListSessionsForWorkerResponse.Builder,ListSessionsForWorkerResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- ListSessionsForWorkerResponse
public static interface ListSessionsForWorkerResponse.Builder extends DeadlineResponse.Builder, SdkPojo, CopyableBuilder<ListSessionsForWorkerResponse.Builder,ListSessionsForWorkerResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListSessionsForWorkerResponse.BuildernextToken(String nextToken)The token for the next set of results, ornullto start from the beginning.ListSessionsForWorkerResponse.Buildersessions(Collection<WorkerSessionSummary> sessions)The sessions in the response.ListSessionsForWorkerResponse.Buildersessions(Consumer<WorkerSessionSummary.Builder>... sessions)The sessions in the response.ListSessionsForWorkerResponse.Buildersessions(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, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
nextToken
ListSessionsForWorkerResponse.Builder nextToken(String 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.
-
sessions
ListSessionsForWorkerResponse.Builder sessions(Collection<WorkerSessionSummary> 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
ListSessionsForWorkerResponse.Builder sessions(WorkerSessionSummary... 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
ListSessionsForWorkerResponse.Builder sessions(Consumer<WorkerSessionSummary.Builder>... 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 to#sessions(List.) - 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:
#sessions(java.util.Collection)
-
-