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 GameSessionDetail
clone()
boolean
equals(Object obj)
GameSession
getGameSession()
String
getProtectionPolicy()
Current status of protection for the game session.int
hashCode()
void
setGameSession(GameSession gameSession)
void
setProtectionPolicy(ProtectionPolicy protectionPolicy)
Current status of protection for the game session.void
setProtectionPolicy(String protectionPolicy)
Current status of protection for the game session.String
toString()
Returns a string representation of this object; useful for testing and debugging.GameSessionDetail
withGameSession(GameSession gameSession)
GameSessionDetail
withProtectionPolicy(ProtectionPolicy protectionPolicy)
Current status of protection for the game session.GameSessionDetail
withProtectionPolicy(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public GameSessionDetail clone()
-
-