/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include 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), m_filterOptionHasBeenSet(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); } if(m_filterOptionHasBeenSet) { payload.WithObject("FilterOption", m_filterOption.Jsonize()); } 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; }