Interface GameSessionDetail.Builder

  • Method Details

    • gameSession

      GameSessionDetail.Builder gameSession(GameSession gameSession)

      Object that describes a game session.

      Parameters:
      gameSession - Object that describes a game session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • gameSession

      default GameSessionDetail.Builder gameSession(Consumer<GameSession.Builder> gameSession)

      Object that describes a game session.

      This is a convenience method that creates an instance of the GameSession.Builder avoiding the need to create one manually via GameSession.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to gameSession(GameSession).

      Parameters:
      gameSession - a consumer that will call methods on GameSession.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • protectionPolicy

      GameSessionDetail.Builder protectionPolicy(String protectionPolicy)

      Current status of protection for the game session.

      • NoProtection -- The game session can be terminated during a scale-down event.

      • FullProtection -- If the game session is in an ACTIVE status, it cannot be terminated during a scale-down event.

      Parameters:
      protectionPolicy - Current status of protection for the game session.

      • NoProtection -- The game session can be terminated during a scale-down event.

      • FullProtection -- If the game session is in an ACTIVE status, it cannot be terminated during a scale-down event.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • protectionPolicy

      GameSessionDetail.Builder protectionPolicy(ProtectionPolicy protectionPolicy)

      Current status of protection for the game session.

      • NoProtection -- The game session can be terminated during a scale-down event.

      • FullProtection -- If the game session is in an ACTIVE status, it cannot be terminated during a scale-down event.

      Parameters:
      protectionPolicy - Current status of protection for the game session.

      • NoProtection -- The game session can be terminated during a scale-down event.

      • FullProtection -- If the game session is in an ACTIVE status, it cannot be terminated during a scale-down event.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: