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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CreatePlayerSessionResponse.BuilderplayerSession(Consumer<PlayerSession.Builder> playerSession)Object that describes the newly created player session record.CreatePlayerSessionResponse.BuilderplayerSession(PlayerSession playerSession)Object that describes the newly created player session record.-
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 Detail
-
playerSession
CreatePlayerSessionResponse.Builder playerSession(PlayerSession 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:
playerSession(PlayerSession)
-
-