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:
  • Constructor Details

    • UpdateGameSessionRequest

      public UpdateGameSessionRequest()
  • Method Details

    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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 class AmazonWebServiceRequest
      See Also: