Interface CreateGameSessionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CreateGameSessionResponse.Builder,,CreateGameSessionResponse> GameLiftResponse.Builder,SdkBuilder<CreateGameSessionResponse.Builder,,CreateGameSessionResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CreateGameSessionResponse
public static interface CreateGameSessionResponse.Builder
extends GameLiftResponse.Builder, SdkPojo, CopyableBuilder<CreateGameSessionResponse.Builder,CreateGameSessionResponse>
-
Method Summary
Modifier and TypeMethodDescriptiongameSession(Consumer<GameSession.Builder> gameSession) Object that describes the newly created game session record.gameSession(GameSession gameSession) Object that describes the newly created game session record.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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
gameSession
Object that describes the newly created game session record.
- Parameters:
gameSession- Object that describes the newly created game session record.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gameSession
Object that describes the newly created game session record.
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 togameSession(GameSession).- Parameters:
gameSession- 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:
-