58 lines
1.2 KiB
C++
58 lines
1.2 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/gamelift/model/ClaimGameServerRequest.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::GameLift::Model;
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
|
|
ClaimGameServerRequest::ClaimGameServerRequest() :
|
|
m_gameServerGroupNameHasBeenSet(false),
|
|
m_gameServerIdHasBeenSet(false),
|
|
m_gameServerDataHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Aws::String ClaimGameServerRequest::SerializePayload() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_gameServerGroupNameHasBeenSet)
|
|
{
|
|
payload.WithString("GameServerGroupName", m_gameServerGroupName);
|
|
|
|
}
|
|
|
|
if(m_gameServerIdHasBeenSet)
|
|
{
|
|
payload.WithString("GameServerId", m_gameServerId);
|
|
|
|
}
|
|
|
|
if(m_gameServerDataHasBeenSet)
|
|
{
|
|
payload.WithString("GameServerData", m_gameServerData);
|
|
|
|
}
|
|
|
|
return payload.View().WriteReadable();
|
|
}
|
|
|
|
Aws::Http::HeaderValueCollection ClaimGameServerRequest::GetRequestSpecificHeaders() const
|
|
{
|
|
Aws::Http::HeaderValueCollection headers;
|
|
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "GameLift.ClaimGameServer"));
|
|
return headers;
|
|
|
|
}
|
|
|
|
|
|
|
|
|