@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateGameSessionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
UpdateGameSessionRequest() |
Modifier and Type | Method and Description |
---|---|
UpdateGameSessionRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
List<GameProperty> |
getGameProperties()
A set of key-value pairs that can store custom data in a game session.
|
String |
getGameSessionId()
A unique identifier for the game session to update.
|
Integer |
getMaximumPlayerSessionCount()
The maximum number of players that can be connected simultaneously to the game session.
|
String |
getName()
A descriptive label that is associated with a game session.
|
String |
getPlayerSessionCreationPolicy()
A policy that determines whether the game session is accepting new players.
|
String |
getProtectionPolicy()
Game session protection policy to apply to this game session only.
|
int |
hashCode() |
void |
setGameProperties(Collection<GameProperty> gameProperties)
A set of key-value pairs that can store custom data in a game session.
|
void |
setGameSessionId(String gameSessionId)
A unique identifier for the game session to update.
|
void |
setMaximumPlayerSessionCount(Integer maximumPlayerSessionCount)
The maximum number of players that can be connected simultaneously to the game session.
|
void |
setName(String name)
A descriptive label that is associated with a game session.
|
void |
setPlayerSessionCreationPolicy(PlayerSessionCreationPolicy playerSessionCreationPolicy)
A policy that determines whether the game session is accepting new players.
|
void |
setPlayerSessionCreationPolicy(String playerSessionCreationPolicy)
A policy that determines whether the game session is accepting 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.
|
UpdateGameSessionRequest |
withGameProperties(Collection<GameProperty> gameProperties)
A set of key-value pairs that can store custom data in a game session.
|
UpdateGameSessionRequest |
withGameProperties(GameProperty... gameProperties)
A set of key-value pairs that can store custom data in a game session.
|
UpdateGameSessionRequest |
withGameSessionId(String gameSessionId)
A unique identifier for the game session to update.
|
UpdateGameSessionRequest |
withMaximumPlayerSessionCount(Integer maximumPlayerSessionCount)
The maximum number of players that can be connected simultaneously to the game session.
|
UpdateGameSessionRequest |
withName(String name)
A descriptive label that is associated with a game session.
|
UpdateGameSessionRequest |
withPlayerSessionCreationPolicy(PlayerSessionCreationPolicy playerSessionCreationPolicy)
A policy that determines whether the game session is accepting new players.
|
UpdateGameSessionRequest |
withPlayerSessionCreationPolicy(String playerSessionCreationPolicy)
A policy that determines whether the game session is accepting 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.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setGameSessionId(String gameSessionId)
A unique identifier for the game session to update.
gameSessionId
- A unique identifier for the game session to update.public String getGameSessionId()
A unique identifier for the game session to update.
public UpdateGameSessionRequest withGameSessionId(String gameSessionId)
A unique identifier for the game session to update.
gameSessionId
- A unique identifier for the game session to update.public void setMaximumPlayerSessionCount(Integer maximumPlayerSessionCount)
The maximum number of players that can be connected simultaneously to the game session.
maximumPlayerSessionCount
- The maximum number of players that can be connected simultaneously to the game session.public Integer getMaximumPlayerSessionCount()
The maximum number of players that can be connected simultaneously to the game session.
public UpdateGameSessionRequest withMaximumPlayerSessionCount(Integer maximumPlayerSessionCount)
The maximum number of players that can be connected simultaneously to the game session.
maximumPlayerSessionCount
- The maximum number of players that can be connected simultaneously to the game session.public void setName(String name)
A descriptive label that is associated with a game session. Session names do not need to be unique.
name
- A descriptive label that is associated with a game session. Session names do not need to be unique.public String getName()
A descriptive label that is associated with a game session. Session names do not need to be unique.
public UpdateGameSessionRequest withName(String name)
A descriptive label that is associated with a game session. Session names do not need to be unique.
name
- A descriptive label that is associated with a game session. Session names do not need to be unique.public void setPlayerSessionCreationPolicy(String playerSessionCreationPolicy)
A policy that determines whether the game session is accepting new players.
playerSessionCreationPolicy
- A policy that determines whether the game session is accepting new players.PlayerSessionCreationPolicy
public String getPlayerSessionCreationPolicy()
A policy that determines whether the game session is accepting new players.
PlayerSessionCreationPolicy
public UpdateGameSessionRequest withPlayerSessionCreationPolicy(String playerSessionCreationPolicy)
A policy that determines whether the game session is accepting new players.
playerSessionCreationPolicy
- A policy that determines whether the game session is accepting new players.PlayerSessionCreationPolicy
public void setPlayerSessionCreationPolicy(PlayerSessionCreationPolicy playerSessionCreationPolicy)
A policy that determines whether the game session is accepting new players.
playerSessionCreationPolicy
- A policy that determines whether the game session is accepting new players.PlayerSessionCreationPolicy
public UpdateGameSessionRequest withPlayerSessionCreationPolicy(PlayerSessionCreationPolicy playerSessionCreationPolicy)
A policy that determines whether the game session is accepting new players.
playerSessionCreationPolicy
- A policy that determines whether the game session is accepting new players.PlayerSessionCreationPolicy
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.
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.
ProtectionPolicy
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.
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.
ProtectionPolicy
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.
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.
ProtectionPolicy
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.
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.
ProtectionPolicy
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.
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.
ProtectionPolicy
public List<GameProperty> getGameProperties()
A set of key-value pairs that can store custom data in a game session. For example:
{"Key": "difficulty", "Value": "novice"}
. You can use this parameter to modify game properties in an
active game session. This action adds new properties and modifies existing properties. There is no way to delete
properties. For an example, see Update the value of a game property.
{"Key": "difficulty", "Value": "novice"}
. You can use this parameter to modify game
properties in an active game session. This action adds new properties and modifies existing properties.
There is no way to delete properties. For an example, see Update the value of a game property.public void setGameProperties(Collection<GameProperty> gameProperties)
A set of key-value pairs that can store custom data in a game session. For example:
{"Key": "difficulty", "Value": "novice"}
. You can use this parameter to modify game properties in an
active game session. This action adds new properties and modifies existing properties. There is no way to delete
properties. For an example, see Update the value of a game property.
gameProperties
- A set of key-value pairs that can store custom data in a game session. For example:
{"Key": "difficulty", "Value": "novice"}
. You can use this parameter to modify game
properties in an active game session. This action adds new properties and modifies existing properties.
There is no way to delete properties. For an example, see Update the value of a game property.public UpdateGameSessionRequest withGameProperties(GameProperty... gameProperties)
A set of key-value pairs that can store custom data in a game session. For example:
{"Key": "difficulty", "Value": "novice"}
. You can use this parameter to modify game properties in an
active game session. This action adds new properties and modifies existing properties. There is no way to delete
properties. For an example, see Update the value of a game property.
NOTE: This method appends the values to the existing list (if any). Use
setGameProperties(java.util.Collection)
or withGameProperties(java.util.Collection)
if you want
to override the existing values.
gameProperties
- A set of key-value pairs that can store custom data in a game session. For example:
{"Key": "difficulty", "Value": "novice"}
. You can use this parameter to modify game
properties in an active game session. This action adds new properties and modifies existing properties.
There is no way to delete properties. For an example, see Update the value of a game property.public UpdateGameSessionRequest withGameProperties(Collection<GameProperty> gameProperties)
A set of key-value pairs that can store custom data in a game session. For example:
{"Key": "difficulty", "Value": "novice"}
. You can use this parameter to modify game properties in an
active game session. This action adds new properties and modifies existing properties. There is no way to delete
properties. For an example, see Update the value of a game property.
gameProperties
- A set of key-value pairs that can store custom data in a game session. For example:
{"Key": "difficulty", "Value": "novice"}
. You can use this parameter to modify game
properties in an active game session. This action adds new properties and modifies existing properties.
There is no way to delete properties. For an example, see Update the value of a game property.public String toString()
toString
in class Object
Object.toString()
public UpdateGameSessionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()