Class GameSessionDetail

java.lang.Object
com.amazonaws.services.gamelift.model.GameSessionDetail
All Implemented Interfaces:
Serializable, Cloneable

public class GameSessionDetail extends Object implements Serializable, Cloneable

A game session's properties and the protection policy currently in force.

See Also:
  • Constructor Details

    • GameSessionDetail

      public GameSessionDetail()
  • Method Details

    • setGameSession

      public void setGameSession(GameSession gameSession)
      Parameters:
      gameSession -
    • getGameSession

      public GameSession getGameSession()
      Returns:
    • withGameSession

      public GameSessionDetail withGameSession(GameSession gameSession)
      Parameters:
      gameSession -
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setProtectionPolicy

      public void setProtectionPolicy(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.
      See Also:
    • getProtectionPolicy

      public String getProtectionPolicy()

      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:
      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.
      See Also:
    • withProtectionPolicy

      public GameSessionDetail withProtectionPolicy(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:
    • setProtectionPolicy

      public void setProtectionPolicy(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.
      See Also:
    • withProtectionPolicy

      public GameSessionDetail withProtectionPolicy(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:
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public GameSessionDetail clone()
      Overrides:
      clone in class Object