@Generated(value="software.amazon.awssdk:codegen") public final class UpdateGameSessionRequest extends GameLiftRequest implements ToCopyableBuilder<UpdateGameSessionRequest.Builder,UpdateGameSessionRequest>
Represents the input for a request operation.
| Modifier and Type | Class and Description |
|---|---|
static interface |
UpdateGameSessionRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static UpdateGameSessionRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
gameSessionId()
A unique identifier for the game session to update.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
maximumPlayerSessionCount()
The maximum number of players that can be connected simultaneously to the game session.
|
String |
name()
A 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.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends UpdateGameSessionRequest.Builder> |
serializableBuilderClass() |
UpdateGameSessionRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String gameSessionId()
A unique identifier for the game session to update.
public final Integer maximumPlayerSessionCount()
The maximum number of players that can be connected simultaneously to the game session.
public final String name()
A descriptive label that is associated with a game session. Session names do not need to be unique.
public final 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 final 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 final 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 final 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()
toBuilder in interface ToCopyableBuilder<UpdateGameSessionRequest.Builder,UpdateGameSessionRequest>toBuilder in class GameLiftRequestpublic static UpdateGameSessionRequest.Builder builder()
public static Class<? extends UpdateGameSessionRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2021. All rights reserved.