Interface ListSessionsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListSessionsResponse.Builder,
,ListSessionsResponse> MpaResponse.Builder
,SdkBuilder<ListSessionsResponse.Builder,
,ListSessionsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListSessionsResponse
@Mutable
@NotThreadSafe
public static interface ListSessionsResponse.Builder
extends MpaResponse.Builder, SdkPojo, CopyableBuilder<ListSessionsResponse.Builder,ListSessionsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionIf present, indicates that more output is available than is included in the current response.sessions
(Collection<ListSessionsResponseSession> sessions) An array ofListSessionsResponseSession
objects.sessions
(Consumer<ListSessionsResponseSession.Builder>... sessions) An array ofListSessionsResponseSession
objects.sessions
(ListSessionsResponseSession... sessions) An array ofListSessionsResponseSession
objects.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.mpa.model.MpaResponse.Builder
build, responseMetadata, responseMetadata
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
-
Method Details
-
nextToken
If present, indicates that more output is available than is included in the current response. Use this value in the
NextToken
request parameter in a next call to the operation to get more output. You can repeat this until theNextToken
response element returnsnull
.- Parameters:
nextToken
- If present, indicates that more output is available than is included in the current response. Use this value in theNextToken
request parameter in a next call to the operation to get more output. You can repeat this until theNextToken
response element returnsnull
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessions
An array of
ListSessionsResponseSession
objects. Contains details for the sessions.- Parameters:
sessions
- An array ofListSessionsResponseSession
objects. Contains details for the sessions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessions
An array of
ListSessionsResponseSession
objects. Contains details for the sessions.- Parameters:
sessions
- An array ofListSessionsResponseSession
objects. Contains details for the sessions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessions
An array of
This is a convenience method that creates an instance of theListSessionsResponseSession
objects. Contains details for the sessions.ListSessionsResponseSession.Builder
avoiding the need to create one manually viaListSessionsResponseSession.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosessions(List<ListSessionsResponseSession>)
.- Parameters:
sessions
- a consumer that will call methods onListSessionsResponseSession.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-