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
copyMethods 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, sdkHttpResponseMethods inherited from interface software.amazon.awssdk.services.workspacesweb.model.WorkSpacesWebResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
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.Builderavoiding the need to create one manually viaSessionSummary.builder().When the
Consumercompletes,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:
-
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.
-