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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DescribeSessionsResponse.Builder
nextToken(String nextToken)
The token for the next set of items to return.DescribeSessionsResponse.Builder
sessions(Collection<Session> sessions)
A list of sessions meeting the request parameters.DescribeSessionsResponse.Builder
sessions(Consumer<Session.Builder>... sessions)
A list of sessions meeting the request parameters.DescribeSessionsResponse.Builder
sessions(Session... sessions)
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, sdkFieldNameToField, 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 Detail
-
sessions
DescribeSessionsResponse.Builder sessions(Collection<Session> 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
DescribeSessionsResponse.Builder sessions(Session... 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
DescribeSessionsResponse.Builder sessions(Consumer<Session.Builder>... 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 to#sessions(List
.) - 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:
#sessions(java.util.Collection
)
-
nextToken
DescribeSessionsResponse.Builder nextToken(String 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.
-
-