Class GameSessionDetail
- java.lang.Object
-
- software.amazon.awssdk.services.gamelift.model.GameSessionDetail
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<GameSessionDetail.Builder,GameSessionDetail>
@Generated("software.amazon.awssdk:codegen") public final class GameSessionDetail extends Object implements SdkPojo, Serializable, ToCopyableBuilder<GameSessionDetail.Builder,GameSessionDetail>
A game session's properties plus the protection policy currently in force.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGameSessionDetail.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GameSessionDetail.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)GameSessiongameSession()Object that describes a game session.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()ProtectionPolicyprotectionPolicy()Current status of protection for the game session.StringprotectionPolicyAsString()Current status of protection for the game session.List<SdkField<?>>sdkFields()static Class<? extends GameSessionDetail.Builder>serializableBuilderClass()GameSessionDetail.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
gameSession
public final GameSession gameSession()
Object that describes a game session.
- Returns:
- Object that describes a game session.
-
protectionPolicy
public final ProtectionPolicy protectionPolicy()
Current status of protection for the game session.
-
NoProtection -- The game session can be terminated during a scale-down event.
-
FullProtection -- If the game session is in an
ACTIVEstatus, 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,
protectionPolicywill returnProtectionPolicy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromprotectionPolicyAsString().- Returns:
- Current status of protection for the game session.
-
NoProtection -- The game session can be terminated during a scale-down event.
-
FullProtection -- If the game session is in an
ACTIVEstatus, it cannot be terminated during a scale-down event.
-
- See Also:
ProtectionPolicy
-
-
protectionPolicyAsString
public final String protectionPolicyAsString()
Current status of protection for the game session.
-
NoProtection -- The game session can be terminated during a scale-down event.
-
FullProtection -- If the game session is in an
ACTIVEstatus, 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,
protectionPolicywill returnProtectionPolicy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromprotectionPolicyAsString().- Returns:
- Current status of protection for the game session.
-
NoProtection -- The game session can be terminated during a scale-down event.
-
FullProtection -- If the game session is in an
ACTIVEstatus, it cannot be terminated during a scale-down event.
-
- See Also:
ProtectionPolicy
-
-
toBuilder
public GameSessionDetail.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<GameSessionDetail.Builder,GameSessionDetail>
-
builder
public static GameSessionDetail.Builder builder()
-
serializableBuilderClass
public static Class<? extends GameSessionDetail.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-