Interface CreatePlayerSessionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CreatePlayerSessionResponse.Builder,,CreatePlayerSessionResponse> GameLiftResponse.Builder,SdkBuilder<CreatePlayerSessionResponse.Builder,,CreatePlayerSessionResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CreatePlayerSessionResponse
public static interface CreatePlayerSessionResponse.Builder
extends GameLiftResponse.Builder, SdkPojo, CopyableBuilder<CreatePlayerSessionResponse.Builder,CreatePlayerSessionResponse>
-
Method Summary
Modifier and TypeMethodDescriptionplayerSession(Consumer<PlayerSession.Builder> playerSession) Object that describes the newly created player session record.playerSession(PlayerSession playerSession) Object that describes the newly created player 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
-
playerSession
Object that describes the newly created player session record.
- Parameters:
playerSession- Object that describes the newly created player session record.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
playerSession
default CreatePlayerSessionResponse.Builder playerSession(Consumer<PlayerSession.Builder> playerSession) Object that describes the newly created player session record.
This is a convenience method that creates an instance of thePlayerSession.Builderavoiding the need to create one manually viaPlayerSession.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toplayerSession(PlayerSession).- Parameters:
playerSession- a consumer that will call methods onPlayerSession.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-