Interface ListSessionsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListSessionsResponse.Builder,
,ListSessionsResponse> SdkBuilder<ListSessionsResponse.Builder,
,ListSessionsResponse> SdkPojo
,SdkResponse.Builder
,WorkSpacesWebResponse.Builder
- Enclosing class:
ListSessionsResponse
@Mutable
@NotThreadSafe
public static interface ListSessionsResponse.Builder
extends WorkSpacesWebResponse.Builder, SdkPojo, CopyableBuilder<ListSessionsResponse.Builder,ListSessionsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe pagination token used to retrieve the next page of results for this operation.sessions
(Collection<SessionSummary> sessions) The sessions in a list.sessions
(Consumer<SessionSummary.Builder>... sessions) The sessions in a list.sessions
(SessionSummary... sessions) The sessions in a list.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
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
Methods inherited from interface software.amazon.awssdk.services.workspacesweb.model.WorkSpacesWebResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
nextToken
The pagination token used to retrieve the next page of results for this operation.
- Parameters:
nextToken
- The pagination token used to retrieve the next page of results for this operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessions
The sessions in a list.
- Parameters:
sessions
- The sessions in a list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessions
The sessions in a list.
- Parameters:
sessions
- The sessions in a list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessions
The sessions in a list.
This is a convenience method that creates an instance of theSessionSummary.Builder
avoiding the need to create one manually viaSessionSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosessions(List<SessionSummary>)
.- Parameters:
sessions
- a consumer that will call methods onSessionSummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-