Interface SearchGameSessionsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<SearchGameSessionsResponse.Builder,,SearchGameSessionsResponse> GameLiftResponse.Builder,SdkBuilder<SearchGameSessionsResponse.Builder,,SearchGameSessionsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
SearchGameSessionsResponse
@Mutable
@NotThreadSafe
public static interface SearchGameSessionsResponse.Builder
extends GameLiftResponse.Builder, SdkPojo, CopyableBuilder<SearchGameSessionsResponse.Builder,SearchGameSessionsResponse>
-
Method Summary
Modifier and TypeMethodDescriptiongameSessions(Collection<GameSession> gameSessions) A collection of objects containing game session properties for each session that matches the request.gameSessions(Consumer<GameSession.Builder>... gameSessions) A collection of objects containing game session properties for each session that matches the request.gameSessions(GameSession... gameSessions) A collection of objects containing game session properties for each session that matches the request.A token that indicates where to resume retrieving results on the next call to this operation.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.gamelift.model.GameLiftResponse.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
-
gameSessions
A collection of objects containing game session properties for each session that matches the request.
- Parameters:
gameSessions- A collection of objects containing game session properties for each session that matches the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gameSessions
A collection of objects containing game session properties for each session that matches the request.
- Parameters:
gameSessions- A collection of objects containing game session properties for each session that matches the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gameSessions
A collection of objects containing game session properties for each session that matches the request.
This is a convenience method that creates an instance of theGameSession.Builderavoiding the need to create one manually viaGameSession.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed togameSessions(List<GameSession>).- Parameters:
gameSessions- a consumer that will call methods onGameSession.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
A token that indicates where to resume retrieving results on the next call to this operation. If no token is returned, these results represent the end of the list.
- Parameters:
nextToken- A token that indicates where to resume retrieving results on the next call to this operation. If no token is returned, these results represent the end of the list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-