Interface DescribeWorkspacesPoolSessionsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<DescribeWorkspacesPoolSessionsResponse.Builder,
,DescribeWorkspacesPoolSessionsResponse> SdkBuilder<DescribeWorkspacesPoolSessionsResponse.Builder,
,DescribeWorkspacesPoolSessionsResponse> SdkPojo
,SdkResponse.Builder
,WorkSpacesResponse.Builder
- Enclosing class:
DescribeWorkspacesPoolSessionsResponse
@Mutable
@NotThreadSafe
public static interface DescribeWorkspacesPoolSessionsResponse.Builder
extends WorkSpacesResponse.Builder, SdkPojo, CopyableBuilder<DescribeWorkspacesPoolSessionsResponse.Builder,DescribeWorkspacesPoolSessionsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionIf you received aNextToken
from a previous call that was paginated, provide this token to receive the next set of results.sessions
(Collection<WorkspacesPoolSession> sessions) Describes the pool sessions.sessions
(Consumer<WorkspacesPoolSession.Builder>... sessions) Describes the pool sessions.sessions
(WorkspacesPoolSession... sessions) Describes the pool sessions.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.workspaces.model.WorkSpacesResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
sessions
Describes the pool sessions.
- Parameters:
sessions
- Describes the pool sessions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessions
Describes the pool sessions.
- Parameters:
sessions
- Describes the pool sessions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessions
DescribeWorkspacesPoolSessionsResponse.Builder sessions(Consumer<WorkspacesPoolSession.Builder>... sessions) Describes the pool sessions.
This is a convenience method that creates an instance of theWorkspacesPoolSession.Builder
avoiding the need to create one manually viaWorkspacesPoolSession.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosessions(List<WorkspacesPoolSession>)
.- Parameters:
sessions
- a consumer that will call methods onWorkspacesPoolSession.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
If you received a
NextToken
from a previous call that was paginated, provide this token to receive the next set of results.- Parameters:
nextToken
- If you received aNextToken
from a previous call that was paginated, provide this token to receive the next set of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-