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 UpdateGameSessionRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getGameSessionId()
Unique identifier for a game session.Integer
getMaximumPlayerSessionCount()
Maximum number of players that can be simultaneously connected to the game session.String
getName()
Descriptive label associated with this game session.String
getPlayerSessionCreationPolicy()
Policy determining whether or not the game session accepts new players.String
getProtectionPolicy()
Game session protection policy to apply to this game session only.int
hashCode()
void
setGameSessionId(String gameSessionId)
Unique identifier for a game session.void
setMaximumPlayerSessionCount(Integer maximumPlayerSessionCount)
Maximum number of players that can be simultaneously connected to the game session.void
setName(String name)
Descriptive label associated with this game session.void
setPlayerSessionCreationPolicy(PlayerSessionCreationPolicy playerSessionCreationPolicy)
Policy determining whether or not the game session accepts new players.void
setPlayerSessionCreationPolicy(String playerSessionCreationPolicy)
Policy determining whether or not the game session accepts new players.void
setProtectionPolicy(ProtectionPolicy protectionPolicy)
Game session protection policy to apply to this game session only.void
setProtectionPolicy(String protectionPolicy)
Game session protection policy to apply to this game session only.String
toString()
Returns a string representation of this object; useful for testing and debugging.UpdateGameSessionRequest
withGameSessionId(String gameSessionId)
Unique identifier for a game session.UpdateGameSessionRequest
withMaximumPlayerSessionCount(Integer maximumPlayerSessionCount)
Maximum number of players that can be simultaneously connected to the game session.UpdateGameSessionRequest
withName(String name)
Descriptive label associated with this game session.UpdateGameSessionRequest
withPlayerSessionCreationPolicy(PlayerSessionCreationPolicy playerSessionCreationPolicy)
Policy determining whether or not the game session accepts new players.UpdateGameSessionRequest
withPlayerSessionCreationPolicy(String playerSessionCreationPolicy)
Policy determining whether or not the game session accepts new players.UpdateGameSessionRequest
withProtectionPolicy(ProtectionPolicy protectionPolicy)
Game session protection policy to apply to this game session only.UpdateGameSessionRequest
withProtectionPolicy(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public UpdateGameSessionRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-