Interface ListGameServersResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListGameServersResponse.Builder,
,ListGameServersResponse> GameLiftResponse.Builder
,SdkBuilder<ListGameServersResponse.Builder,
,ListGameServersResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListGameServersResponse
public static interface ListGameServersResponse.Builder
extends GameLiftResponse.Builder, SdkPojo, CopyableBuilder<ListGameServersResponse.Builder,ListGameServersResponse>
-
Method Summary
Modifier and TypeMethodDescriptiongameServers
(Collection<GameServer> gameServers) A collection of game server objects that match the request.gameServers
(Consumer<GameServer.Builder>... gameServers) A collection of game server objects that match the request.gameServers
(GameServer... gameServers) A collection of game server objects that match 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
copy
Methods inherited from interface software.amazon.awssdk.services.gamelift.model.GameLiftResponse.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, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
gameServers
A collection of game server objects that match the request.
- Parameters:
gameServers
- A collection of game server objects that match the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gameServers
A collection of game server objects that match the request.
- Parameters:
gameServers
- A collection of game server objects that match the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gameServers
A collection of game server objects that match the request.
This is a convenience method that creates an instance of theGameServer.Builder
avoiding the need to create one manually viaGameServer.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed togameServers(List<GameServer>)
.- Parameters:
gameServers
- a consumer that will call methods onGameServer.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.
-