/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.gamelift.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UpdateGameSessionRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* A unique identifier for the game session to update. *
*/ private String gameSessionId; /** ** The maximum number of players that can be connected simultaneously to the game session. *
*/ private Integer maximumPlayerSessionCount; /** ** A descriptive label that is associated with a game session. Session names do not need to be unique. *
*/ private String name; /** ** A policy that determines whether the game session is accepting new players. *
*/ private String playerSessionCreationPolicy; /** ** 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.
*
* A unique identifier for the game session to update. *
* * @param gameSessionId * A unique identifier for the game session to update. */ public void setGameSessionId(String gameSessionId) { this.gameSessionId = gameSessionId; } /** ** A unique identifier for the game session to update. *
* * @return A unique identifier for the game session to update. */ public String getGameSessionId() { return this.gameSessionId; } /** ** A unique identifier for the game session to update. *
* * @param gameSessionId * A unique identifier for the game session to update. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateGameSessionRequest withGameSessionId(String gameSessionId) { setGameSessionId(gameSessionId); return this; } /** ** The maximum number of players that can be connected simultaneously to the game session. *
* * @param maximumPlayerSessionCount * The maximum number of players that can be connected simultaneously to the game session. */ public void setMaximumPlayerSessionCount(Integer maximumPlayerSessionCount) { this.maximumPlayerSessionCount = maximumPlayerSessionCount; } /** ** The maximum number of players that can be connected simultaneously to the game session. *
* * @return The maximum number of players that can be connected simultaneously to the game session. */ public Integer getMaximumPlayerSessionCount() { return this.maximumPlayerSessionCount; } /** ** The maximum number of players that can be connected simultaneously to the game session. *
* * @param maximumPlayerSessionCount * The maximum number of players that can be connected simultaneously to the game session. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateGameSessionRequest withMaximumPlayerSessionCount(Integer maximumPlayerSessionCount) { setMaximumPlayerSessionCount(maximumPlayerSessionCount); return this; } /** ** A descriptive label that is associated with a game session. Session names do not need to be unique. *
* * @param name * A descriptive label that is associated with a game session. Session names do not need to be unique. */ public void setName(String name) { this.name = name; } /** ** A descriptive label that is associated with a game session. Session names do not need to be unique. *
* * @return A descriptive label that is associated with a game session. Session names do not need to be unique. */ public String getName() { return this.name; } /** ** A descriptive label that is associated with a game session. Session names do not need to be unique. *
* * @param name * A descriptive label that is associated with a game session. Session names do not need to be unique. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateGameSessionRequest withName(String name) { setName(name); return this; } /** ** A policy that determines whether the game session is accepting new players. *
* * @param playerSessionCreationPolicy * A policy that determines whether the game session is accepting new players. * @see PlayerSessionCreationPolicy */ public void setPlayerSessionCreationPolicy(String playerSessionCreationPolicy) { this.playerSessionCreationPolicy = playerSessionCreationPolicy; } /** ** A policy that determines whether the game session is accepting new players. *
* * @return A policy that determines whether the game session is accepting new players. * @see PlayerSessionCreationPolicy */ public String getPlayerSessionCreationPolicy() { return this.playerSessionCreationPolicy; } /** ** A policy that determines whether the game session is accepting new players. *
* * @param playerSessionCreationPolicy * A policy that determines whether the game session is accepting new players. * @return Returns a reference to this object so that method calls can be chained together. * @see PlayerSessionCreationPolicy */ public UpdateGameSessionRequest withPlayerSessionCreationPolicy(String playerSessionCreationPolicy) { setPlayerSessionCreationPolicy(playerSessionCreationPolicy); return this; } /** ** A policy that determines whether the game session is accepting new players. *
* * @param playerSessionCreationPolicy * A policy that determines whether the game session is accepting new players. * @see PlayerSessionCreationPolicy */ public void setPlayerSessionCreationPolicy(PlayerSessionCreationPolicy playerSessionCreationPolicy) { withPlayerSessionCreationPolicy(playerSessionCreationPolicy); } /** ** A policy that determines whether the game session is accepting new players. *
* * @param playerSessionCreationPolicy * A policy that determines whether the game session is accepting new players. * @return Returns a reference to this object so that method calls can be chained together. * @see PlayerSessionCreationPolicy */ public UpdateGameSessionRequest withPlayerSessionCreationPolicy(PlayerSessionCreationPolicy playerSessionCreationPolicy) { this.playerSessionCreationPolicy = playerSessionCreationPolicy.toString(); return this; } /** ** 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*