public static interface CreatePlayerSessionResponse.Builder extends GameLiftResponse.Builder, CopyableBuilder<CreatePlayerSessionResponse.Builder,CreatePlayerSessionResponse>
Modifier and Type | Method and Description |
---|---|
default CreatePlayerSessionResponse.Builder |
playerSession(Consumer<PlayerSession.Builder> playerSession)
Object that describes the newly created player session record.
|
CreatePlayerSessionResponse.Builder |
playerSession(PlayerSession playerSession)
Object that describes the newly created player session record.
|
build
sdkHttpResponse, sdkHttpResponse
copy
applyMutation, build
CreatePlayerSessionResponse.Builder playerSession(PlayerSession playerSession)
Object that describes the newly created player session record.
playerSession
- Object that describes the newly created player session record.default CreatePlayerSessionResponse.Builder playerSession(Consumer<PlayerSession.Builder> playerSession)
Object that describes the newly created player session record.
This is a convenience that creates an instance of thePlayerSession.Builder
avoiding the need to
create one manually via PlayerSession.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to playerSession(PlayerSession)
.playerSession
- a consumer that will call methods on PlayerSession.Builder
playerSession(PlayerSession)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.