@Generated(value="software.amazon.awssdk:codegen") public class UpdateGameSessionRequest extends GameLiftRequest implements ToCopyableBuilder<UpdateGameSessionRequest.Builder,UpdateGameSessionRequest>
Represents the input for a request action.
| Modifier and Type | Class and Description |
|---|---|
static interface |
UpdateGameSessionRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static UpdateGameSessionRequest.Builder |
builder() |
boolean |
equals(Object obj) |
String |
gameSessionId()
Unique identifier for the game session to update.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest. |
int |
hashCode() |
Integer |
maximumPlayerSessionCount()
Maximum number of players that can be connected simultaneously to the game session.
|
String |
name()
Descriptive label that is associated with a game session.
|
PlayerSessionCreationPolicy |
playerSessionCreationPolicy()
Policy determining whether or not the game session accepts new players.
|
String |
playerSessionCreationPolicyAsString()
Policy determining whether or not the game session accepts new players.
|
ProtectionPolicy |
protectionPolicy()
Game session protection policy to apply to this game session only.
|
String |
protectionPolicyAsString()
Game session protection policy to apply to this game session only.
|
static Class<? extends UpdateGameSessionRequest.Builder> |
serializableBuilderClass() |
UpdateGameSessionRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
requestOverrideConfigcopypublic String gameSessionId()
Unique identifier for the game session to update.
public Integer maximumPlayerSessionCount()
Maximum number of players that can be connected simultaneously to the game session.
public String name()
Descriptive label that is associated with a game session. Session names do not need to be unique.
public PlayerSessionCreationPolicy playerSessionCreationPolicy()
Policy determining whether or not the game session accepts new players.
If the service returns an enum value that is not available in the current SDK version,
playerSessionCreationPolicy will return PlayerSessionCreationPolicy.UNKNOWN_TO_SDK_VERSION. The
raw value returned by the service is available from playerSessionCreationPolicyAsString().
PlayerSessionCreationPolicypublic String playerSessionCreationPolicyAsString()
Policy determining whether or not the game session accepts new players.
If the service returns an enum value that is not available in the current SDK version,
playerSessionCreationPolicy will return PlayerSessionCreationPolicy.UNKNOWN_TO_SDK_VERSION. The
raw value returned by the service is available from playerSessionCreationPolicyAsString().
PlayerSessionCreationPolicypublic 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.
If the service returns an enum value that is not available in the current SDK version, protectionPolicy
will return ProtectionPolicy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from protectionPolicyAsString().
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.
ProtectionPolicypublic String protectionPolicyAsString()
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.
If the service returns an enum value that is not available in the current SDK version, protectionPolicy
will return ProtectionPolicy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from protectionPolicyAsString().
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.
ProtectionPolicypublic UpdateGameSessionRequest.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<UpdateGameSessionRequest.Builder,UpdateGameSessionRequest>toBuilder in class GameLiftRequestpublic static UpdateGameSessionRequest.Builder builder()
public static Class<? extends UpdateGameSessionRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequestSdkRequest. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class) method will
again be available.getValueForField in class SdkRequestfieldName - The name of the member to be retrieved.clazz - The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.