Class UpdateGameSessionRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.gamelift.model.UpdateGameSessionRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class UpdateGameSessionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Represents the input for a request action.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description UpdateGameSessionRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateGameSessionRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetGameSessionId()Unique identifier for a game session.IntegergetMaximumPlayerSessionCount()Maximum number of players that can be simultaneously connected to the game session.StringgetName()Descriptive label associated with this game session.StringgetPlayerSessionCreationPolicy()Policy determining whether or not the game session accepts new players.StringgetProtectionPolicy()Game session protection policy to apply to this game session only.inthashCode()voidsetGameSessionId(String gameSessionId)Unique identifier for a game session.voidsetMaximumPlayerSessionCount(Integer maximumPlayerSessionCount)Maximum number of players that can be simultaneously connected to the game session.voidsetName(String name)Descriptive label associated with this game session.voidsetPlayerSessionCreationPolicy(PlayerSessionCreationPolicy playerSessionCreationPolicy)Policy determining whether or not the game session accepts new players.voidsetPlayerSessionCreationPolicy(String playerSessionCreationPolicy)Policy determining whether or not the game session accepts new players.voidsetProtectionPolicy(ProtectionPolicy protectionPolicy)Game session protection policy to apply to this game session only.voidsetProtectionPolicy(String protectionPolicy)Game session protection policy to apply to this game session only.StringtoString()Returns a string representation of this object; useful for testing and debugging.UpdateGameSessionRequestwithGameSessionId(String gameSessionId)Unique identifier for a game session.UpdateGameSessionRequestwithMaximumPlayerSessionCount(Integer maximumPlayerSessionCount)Maximum number of players that can be simultaneously connected to the game session.UpdateGameSessionRequestwithName(String name)Descriptive label associated with this game session.UpdateGameSessionRequestwithPlayerSessionCreationPolicy(PlayerSessionCreationPolicy playerSessionCreationPolicy)Policy determining whether or not the game session accepts new players.UpdateGameSessionRequestwithPlayerSessionCreationPolicy(String playerSessionCreationPolicy)Policy determining whether or not the game session accepts new players.UpdateGameSessionRequestwithProtectionPolicy(ProtectionPolicy protectionPolicy)Game session protection policy to apply to this game session only.UpdateGameSessionRequestwithProtectionPolicy(String protectionPolicy)Game session protection policy to apply to this game session only.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setGameSessionId
public void setGameSessionId(String gameSessionId)
Unique identifier for a game session. Specify the game session you want to update.
- Parameters:
gameSessionId- Unique identifier for a game session. Specify the game session you want to update.
-
getGameSessionId
public String getGameSessionId()
Unique identifier for a game session. Specify the game session you want to update.
- Returns:
- Unique identifier for a game session. Specify the game session you want to update.
-
withGameSessionId
public UpdateGameSessionRequest withGameSessionId(String gameSessionId)
Unique identifier for a game session. Specify the game session you want to update.
- Parameters:
gameSessionId- Unique identifier for a game session. Specify the game session you want to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMaximumPlayerSessionCount
public void setMaximumPlayerSessionCount(Integer maximumPlayerSessionCount)
Maximum number of players that can be simultaneously connected to the game session.
- Parameters:
maximumPlayerSessionCount- Maximum number of players that can be simultaneously connected to the game session.
-
getMaximumPlayerSessionCount
public Integer getMaximumPlayerSessionCount()
Maximum number of players that can be simultaneously connected to the game session.
- Returns:
- Maximum number of players that can be simultaneously connected to the game session.
-
withMaximumPlayerSessionCount
public UpdateGameSessionRequest withMaximumPlayerSessionCount(Integer maximumPlayerSessionCount)
Maximum number of players that can be simultaneously connected to the game session.
- Parameters:
maximumPlayerSessionCount- Maximum number of players that can be simultaneously connected to the game session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setName
public void setName(String name)
Descriptive label associated with this game session. Session names do not need to be unique.
- Parameters:
name- Descriptive label associated with this game session. Session names do not need to be unique.
-
getName
public String getName()
Descriptive label associated with this game session. Session names do not need to be unique.
- Returns:
- Descriptive label associated with this game session. Session names do not need to be unique.
-
withName
public UpdateGameSessionRequest withName(String name)
Descriptive label associated with this game session. Session names do not need to be unique.
- Parameters:
name- Descriptive label associated with this game session. Session names do not need to be unique.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPlayerSessionCreationPolicy
public void setPlayerSessionCreationPolicy(String playerSessionCreationPolicy)
Policy determining whether or not the game session accepts new players.
- Parameters:
playerSessionCreationPolicy- Policy determining whether or not the game session accepts new players.- See Also:
PlayerSessionCreationPolicy
-
getPlayerSessionCreationPolicy
public String getPlayerSessionCreationPolicy()
Policy determining whether or not the game session accepts new players.
- Returns:
- Policy determining whether or not the game session accepts new players.
- See Also:
PlayerSessionCreationPolicy
-
withPlayerSessionCreationPolicy
public UpdateGameSessionRequest withPlayerSessionCreationPolicy(String playerSessionCreationPolicy)
Policy determining whether or not the game session accepts new players.
- Parameters:
playerSessionCreationPolicy- Policy determining whether or not the game session accepts new players.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PlayerSessionCreationPolicy
-
setPlayerSessionCreationPolicy
public void setPlayerSessionCreationPolicy(PlayerSessionCreationPolicy playerSessionCreationPolicy)
Policy determining whether or not the game session accepts new players.
- Parameters:
playerSessionCreationPolicy- Policy determining whether or not the game session accepts new players.- See Also:
PlayerSessionCreationPolicy
-
withPlayerSessionCreationPolicy
public UpdateGameSessionRequest withPlayerSessionCreationPolicy(PlayerSessionCreationPolicy playerSessionCreationPolicy)
Policy determining whether or not the game session accepts new players.
- Parameters:
playerSessionCreationPolicy- Policy determining whether or not the game session accepts new players.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PlayerSessionCreationPolicy
-
setProtectionPolicy
public void setProtectionPolicy(String protectionPolicy)
Game session protection policy to apply to this game session only.
- 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- Game session protection policy to apply to this game session only.- 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()
Game session protection policy to apply to this game session only.
- 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:
- Game session protection policy to apply to this game session
only.
- 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 UpdateGameSessionRequest withProtectionPolicy(String protectionPolicy)
Game session protection policy to apply to this game session only.
- 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- Game session protection policy to apply to this game session only.- 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)
Game session protection policy to apply to this game session only.
- 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- Game session protection policy to apply to this game session only.- 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 UpdateGameSessionRequest withProtectionPolicy(ProtectionPolicy protectionPolicy)
Game session protection policy to apply to this game session only.
- 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- Game session protection policy to apply to this game session only.- 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 UpdateGameSessionRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-