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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GameSessionDetail()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GameSessionDetailclone()booleanequals(Object obj)GameSessiongetGameSession()StringgetProtectionPolicy()Current status of protection for the game session.inthashCode()voidsetGameSession(GameSession gameSession)voidsetProtectionPolicy(ProtectionPolicy protectionPolicy)Current status of protection for the game session.voidsetProtectionPolicy(String protectionPolicy)Current status of protection for the game session.StringtoString()Returns a string representation of this object; useful for testing and debugging.GameSessionDetailwithGameSession(GameSession gameSession)GameSessionDetailwithProtectionPolicy(ProtectionPolicy protectionPolicy)Current status of protection for the game session.GameSessionDetailwithProtectionPolicy(String protectionPolicy)Current status of protection for the game session.
-
-
-
Method Detail
-
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:
ProtectionPolicy
-
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:
ProtectionPolicy
-
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:
ProtectionPolicy
-
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:
ProtectionPolicy
-
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:
ProtectionPolicy
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public GameSessionDetail clone()
-
-