/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::LocationService::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; BatchGetDevicePositionRequest::BatchGetDevicePositionRequest() : m_deviceIdsHasBeenSet(false), m_trackerNameHasBeenSet(false) { } Aws::String BatchGetDevicePositionRequest::SerializePayload() const { JsonValue payload; if(m_deviceIdsHasBeenSet) { Aws::Utils::Array deviceIdsJsonList(m_deviceIds.size()); for(unsigned deviceIdsIndex = 0; deviceIdsIndex < deviceIdsJsonList.GetLength(); ++deviceIdsIndex) { deviceIdsJsonList[deviceIdsIndex].AsString(m_deviceIds[deviceIdsIndex]); } payload.WithArray("DeviceIds", std::move(deviceIdsJsonList)); } return payload.View().WriteReadable(); }