Interface TerminateGameSessionRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<TerminateGameSessionRequest.Builder,TerminateGameSessionRequest>,GameLiftRequest.Builder,SdkBuilder<TerminateGameSessionRequest.Builder,TerminateGameSessionRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- TerminateGameSessionRequest
public static interface TerminateGameSessionRequest.Builder extends GameLiftRequest.Builder, SdkPojo, CopyableBuilder<TerminateGameSessionRequest.Builder,TerminateGameSessionRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TerminateGameSessionRequest.BuildergameSessionId(String gameSessionId)A unique identifier for the game session to be terminated.TerminateGameSessionRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)TerminateGameSessionRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)TerminateGameSessionRequest.BuilderterminationMode(String terminationMode)The method to use to terminate the game session.TerminateGameSessionRequest.BuilderterminationMode(TerminationMode terminationMode)The method to use to terminate the game session.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.gamelift.model.GameLiftRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
gameSessionId
TerminateGameSessionRequest.Builder gameSessionId(String gameSessionId)
A unique identifier for the game session to be terminated. A game session ARN has the following format:
arn:aws:gamelift:<region>::gamesession/<fleet ID>/<custom ID string or idempotency token>.- Parameters:
gameSessionId- A unique identifier for the game session to be terminated. A game session ARN has the following format:arn:aws:gamelift:<region>::gamesession/<fleet ID>/<custom ID string or idempotency token>.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
terminationMode
TerminateGameSessionRequest.Builder terminationMode(String terminationMode)
The method to use to terminate the game session. Available methods include:
-
TRIGGER_ON_PROCESS_TERMINATE– Prompts the Amazon GameLift service to send anOnProcessTerminate()callback to the server process and initiate the normal game session shutdown sequence. TheOnProcessTerminatemethod, which is implemented in the game server code, must include a call to the server SDK actionProcessEnding(), which is how the server process signals to Amazon GameLift that a game session is ending. If the server process doesn't callProcessEnding(), the game session termination won't conclude successfully. -
FORCE_TERMINATE– Prompts the Amazon GameLift service to stop the server process immediately. Amazon GameLift takes action (depending on the type of fleet) to shut down the server process without the normal game session shutdown sequence.This method is not available for game sessions that are running on Anywhere fleets unless the fleet is deployed with the Amazon GameLift Agent. In this scenario, a force terminate request results in an invalid or bad request exception.
- Parameters:
terminationMode- The method to use to terminate the game session. Available methods include:-
TRIGGER_ON_PROCESS_TERMINATE– Prompts the Amazon GameLift service to send anOnProcessTerminate()callback to the server process and initiate the normal game session shutdown sequence. TheOnProcessTerminatemethod, which is implemented in the game server code, must include a call to the server SDK actionProcessEnding(), which is how the server process signals to Amazon GameLift that a game session is ending. If the server process doesn't callProcessEnding(), the game session termination won't conclude successfully. -
FORCE_TERMINATE– Prompts the Amazon GameLift service to stop the server process immediately. Amazon GameLift takes action (depending on the type of fleet) to shut down the server process without the normal game session shutdown sequence.This method is not available for game sessions that are running on Anywhere fleets unless the fleet is deployed with the Amazon GameLift Agent. In this scenario, a force terminate request results in an invalid or bad request exception.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TerminationMode,TerminationMode
-
-
terminationMode
TerminateGameSessionRequest.Builder terminationMode(TerminationMode terminationMode)
The method to use to terminate the game session. Available methods include:
-
TRIGGER_ON_PROCESS_TERMINATE– Prompts the Amazon GameLift service to send anOnProcessTerminate()callback to the server process and initiate the normal game session shutdown sequence. TheOnProcessTerminatemethod, which is implemented in the game server code, must include a call to the server SDK actionProcessEnding(), which is how the server process signals to Amazon GameLift that a game session is ending. If the server process doesn't callProcessEnding(), the game session termination won't conclude successfully. -
FORCE_TERMINATE– Prompts the Amazon GameLift service to stop the server process immediately. Amazon GameLift takes action (depending on the type of fleet) to shut down the server process without the normal game session shutdown sequence.This method is not available for game sessions that are running on Anywhere fleets unless the fleet is deployed with the Amazon GameLift Agent. In this scenario, a force terminate request results in an invalid or bad request exception.
- Parameters:
terminationMode- The method to use to terminate the game session. Available methods include:-
TRIGGER_ON_PROCESS_TERMINATE– Prompts the Amazon GameLift service to send anOnProcessTerminate()callback to the server process and initiate the normal game session shutdown sequence. TheOnProcessTerminatemethod, which is implemented in the game server code, must include a call to the server SDK actionProcessEnding(), which is how the server process signals to Amazon GameLift that a game session is ending. If the server process doesn't callProcessEnding(), the game session termination won't conclude successfully. -
FORCE_TERMINATE– Prompts the Amazon GameLift service to stop the server process immediately. Amazon GameLift takes action (depending on the type of fleet) to shut down the server process without the normal game session shutdown sequence.This method is not available for game sessions that are running on Anywhere fleets unless the fleet is deployed with the Amazon GameLift Agent. In this scenario, a force terminate request results in an invalid or bad request exception.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TerminationMode,TerminationMode
-
-
overrideConfiguration
TerminateGameSessionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
TerminateGameSessionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-