Interface DescribeSessionsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<DescribeSessionsResponse.Builder,
,DescribeSessionsResponse> SdkBuilder<DescribeSessionsResponse.Builder,
,DescribeSessionsResponse> SdkPojo
,SdkResponse.Builder
,SsmResponse.Builder
- Enclosing class:
DescribeSessionsResponse
public static interface DescribeSessionsResponse.Builder
extends SsmResponse.Builder, SdkPojo, CopyableBuilder<DescribeSessionsResponse.Builder,DescribeSessionsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe token for the next set of items to return.sessions
(Collection<Session> sessions) A list of sessions meeting the request parameters.sessions
(Consumer<Session.Builder>... sessions) A list of sessions meeting the request parameters.A list of sessions meeting the request parameters.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, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
Methods inherited from interface software.amazon.awssdk.services.ssm.model.SsmResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
sessions
A list of sessions meeting the request parameters.
- Parameters:
sessions
- A list of sessions meeting the request parameters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessions
A list of sessions meeting the request parameters.
- Parameters:
sessions
- A list of sessions meeting the request parameters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessions
A list of sessions meeting the request parameters.
This is a convenience method that creates an instance of theSession.Builder
avoiding the need to create one manually viaSession.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosessions(List<Session>)
.- Parameters:
sessions
- a consumer that will call methods onSession.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 items to return. (You received this token from a previous call.)
- Parameters:
nextToken
- The token for the next set of items to return. (You received this token from a previous call.)- Returns:
- Returns a reference to this object so that method calls can be chained together.
-