/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace GameLift { namespace Model { /** */ class UpdateGameServerRequest : public GameLiftRequest { public: AWS_GAMELIFT_API UpdateGameServerRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateGameServer"; } AWS_GAMELIFT_API Aws::String SerializePayload() const override; AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A unique identifier for the game server group where the game server is * running.

*/ inline const Aws::String& GetGameServerGroupName() const{ return m_gameServerGroupName; } /** *

A unique identifier for the game server group where the game server is * running.

*/ inline bool GameServerGroupNameHasBeenSet() const { return m_gameServerGroupNameHasBeenSet; } /** *

A unique identifier for the game server group where the game server is * running.

*/ inline void SetGameServerGroupName(const Aws::String& value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName = value; } /** *

A unique identifier for the game server group where the game server is * running.

*/ inline void SetGameServerGroupName(Aws::String&& value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName = std::move(value); } /** *

A unique identifier for the game server group where the game server is * running.

*/ inline void SetGameServerGroupName(const char* value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName.assign(value); } /** *

A unique identifier for the game server group where the game server is * running.

*/ inline UpdateGameServerRequest& WithGameServerGroupName(const Aws::String& value) { SetGameServerGroupName(value); return *this;} /** *

A unique identifier for the game server group where the game server is * running.

*/ inline UpdateGameServerRequest& WithGameServerGroupName(Aws::String&& value) { SetGameServerGroupName(std::move(value)); return *this;} /** *

A unique identifier for the game server group where the game server is * running.

*/ inline UpdateGameServerRequest& WithGameServerGroupName(const char* value) { SetGameServerGroupName(value); return *this;} /** *

A custom string that uniquely identifies the game server to update.

*/ inline const Aws::String& GetGameServerId() const{ return m_gameServerId; } /** *

A custom string that uniquely identifies the game server to update.

*/ inline bool GameServerIdHasBeenSet() const { return m_gameServerIdHasBeenSet; } /** *

A custom string that uniquely identifies the game server to update.

*/ inline void SetGameServerId(const Aws::String& value) { m_gameServerIdHasBeenSet = true; m_gameServerId = value; } /** *

A custom string that uniquely identifies the game server to update.

*/ inline void SetGameServerId(Aws::String&& value) { m_gameServerIdHasBeenSet = true; m_gameServerId = std::move(value); } /** *

A custom string that uniquely identifies the game server to update.

*/ inline void SetGameServerId(const char* value) { m_gameServerIdHasBeenSet = true; m_gameServerId.assign(value); } /** *

A custom string that uniquely identifies the game server to update.

*/ inline UpdateGameServerRequest& WithGameServerId(const Aws::String& value) { SetGameServerId(value); return *this;} /** *

A custom string that uniquely identifies the game server to update.

*/ inline UpdateGameServerRequest& WithGameServerId(Aws::String&& value) { SetGameServerId(std::move(value)); return *this;} /** *

A custom string that uniquely identifies the game server to update.

*/ inline UpdateGameServerRequest& WithGameServerId(const char* value) { SetGameServerId(value); return *this;} /** *

A set of custom game server properties, formatted as a single string value. * This data is passed to a game client or service when it requests information on * game servers.

*/ inline const Aws::String& GetGameServerData() const{ return m_gameServerData; } /** *

A set of custom game server properties, formatted as a single string value. * This data is passed to a game client or service when it requests information on * game servers.

*/ inline bool GameServerDataHasBeenSet() const { return m_gameServerDataHasBeenSet; } /** *

A set of custom game server properties, formatted as a single string value. * This data is passed to a game client or service when it requests information on * game servers.

*/ inline void SetGameServerData(const Aws::String& value) { m_gameServerDataHasBeenSet = true; m_gameServerData = value; } /** *

A set of custom game server properties, formatted as a single string value. * This data is passed to a game client or service when it requests information on * game servers.

*/ inline void SetGameServerData(Aws::String&& value) { m_gameServerDataHasBeenSet = true; m_gameServerData = std::move(value); } /** *

A set of custom game server properties, formatted as a single string value. * This data is passed to a game client or service when it requests information on * game servers.

*/ inline void SetGameServerData(const char* value) { m_gameServerDataHasBeenSet = true; m_gameServerData.assign(value); } /** *

A set of custom game server properties, formatted as a single string value. * This data is passed to a game client or service when it requests information on * game servers.

*/ inline UpdateGameServerRequest& WithGameServerData(const Aws::String& value) { SetGameServerData(value); return *this;} /** *

A set of custom game server properties, formatted as a single string value. * This data is passed to a game client or service when it requests information on * game servers.

*/ inline UpdateGameServerRequest& WithGameServerData(Aws::String&& value) { SetGameServerData(std::move(value)); return *this;} /** *

A set of custom game server properties, formatted as a single string value. * This data is passed to a game client or service when it requests information on * game servers.

*/ inline UpdateGameServerRequest& WithGameServerData(const char* value) { SetGameServerData(value); return *this;} /** *

Indicates whether the game server is available or is currently hosting * gameplay.

*/ inline const GameServerUtilizationStatus& GetUtilizationStatus() const{ return m_utilizationStatus; } /** *

Indicates whether the game server is available or is currently hosting * gameplay.

*/ inline bool UtilizationStatusHasBeenSet() const { return m_utilizationStatusHasBeenSet; } /** *

Indicates whether the game server is available or is currently hosting * gameplay.

*/ inline void SetUtilizationStatus(const GameServerUtilizationStatus& value) { m_utilizationStatusHasBeenSet = true; m_utilizationStatus = value; } /** *

Indicates whether the game server is available or is currently hosting * gameplay.

*/ inline void SetUtilizationStatus(GameServerUtilizationStatus&& value) { m_utilizationStatusHasBeenSet = true; m_utilizationStatus = std::move(value); } /** *

Indicates whether the game server is available or is currently hosting * gameplay.

*/ inline UpdateGameServerRequest& WithUtilizationStatus(const GameServerUtilizationStatus& value) { SetUtilizationStatus(value); return *this;} /** *

Indicates whether the game server is available or is currently hosting * gameplay.

*/ inline UpdateGameServerRequest& WithUtilizationStatus(GameServerUtilizationStatus&& value) { SetUtilizationStatus(std::move(value)); return *this;} /** *

Indicates health status of the game server. A request that includes this * parameter updates the game server's LastHealthCheckTime timestamp.

*/ inline const GameServerHealthCheck& GetHealthCheck() const{ return m_healthCheck; } /** *

Indicates health status of the game server. A request that includes this * parameter updates the game server's LastHealthCheckTime timestamp.

*/ inline bool HealthCheckHasBeenSet() const { return m_healthCheckHasBeenSet; } /** *

Indicates health status of the game server. A request that includes this * parameter updates the game server's LastHealthCheckTime timestamp.

*/ inline void SetHealthCheck(const GameServerHealthCheck& value) { m_healthCheckHasBeenSet = true; m_healthCheck = value; } /** *

Indicates health status of the game server. A request that includes this * parameter updates the game server's LastHealthCheckTime timestamp.

*/ inline void SetHealthCheck(GameServerHealthCheck&& value) { m_healthCheckHasBeenSet = true; m_healthCheck = std::move(value); } /** *

Indicates health status of the game server. A request that includes this * parameter updates the game server's LastHealthCheckTime timestamp.

*/ inline UpdateGameServerRequest& WithHealthCheck(const GameServerHealthCheck& value) { SetHealthCheck(value); return *this;} /** *

Indicates health status of the game server. A request that includes this * parameter updates the game server's LastHealthCheckTime timestamp.

*/ inline UpdateGameServerRequest& WithHealthCheck(GameServerHealthCheck&& value) { SetHealthCheck(std::move(value)); return *this;} private: Aws::String m_gameServerGroupName; bool m_gameServerGroupNameHasBeenSet = false; Aws::String m_gameServerId; bool m_gameServerIdHasBeenSet = false; Aws::String m_gameServerData; bool m_gameServerDataHasBeenSet = false; GameServerUtilizationStatus m_utilizationStatus; bool m_utilizationStatusHasBeenSet = false; GameServerHealthCheck m_healthCheck; bool m_healthCheckHasBeenSet = false; }; } // namespace Model } // namespace GameLift } // namespace Aws