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 ofListSessionsResponseSessionobjects.sessions(Consumer<ListSessionsResponseSession.Builder>... sessions) An array ofListSessionsResponseSessionobjects.sessions(ListSessionsResponseSession... sessions) An array ofListSessionsResponseSessionobjects.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.mpa.model.MpaResponse.Builder
build, responseMetadata, responseMetadataMethods 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, sdkHttpResponse
-
Method Details
-
nextToken
If present, indicates that more output is available than is included in the current response. Use this value in the
NextTokenrequest parameter in a next call to the operation to get more output. You can repeat this until theNextTokenresponse element returnsnull.- Parameters:
nextToken- If present, indicates that more output is available than is included in the current response. Use this value in theNextTokenrequest parameter in a next call to the operation to get more output. You can repeat this until theNextTokenresponse element returnsnull.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessions
An array of
ListSessionsResponseSessionobjects. Contains details for the sessions.- Parameters:
sessions- An array ofListSessionsResponseSessionobjects. Contains details for the sessions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessions
An array of
ListSessionsResponseSessionobjects. Contains details for the sessions.- Parameters:
sessions- An array ofListSessionsResponseSessionobjects. 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 theListSessionsResponseSessionobjects. Contains details for the sessions.ListSessionsResponseSession.Builderavoiding the need to create one manually viaListSessionsResponseSession.builder().When the
Consumercompletes,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:
-