/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace LocationService { namespace Model { BatchGetDevicePositionError::BatchGetDevicePositionError() : m_deviceIdHasBeenSet(false), m_errorHasBeenSet(false) { } BatchGetDevicePositionError::BatchGetDevicePositionError(JsonView jsonValue) : m_deviceIdHasBeenSet(false), m_errorHasBeenSet(false) { *this = jsonValue; } BatchGetDevicePositionError& BatchGetDevicePositionError::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("DeviceId")) { m_deviceId = jsonValue.GetString("DeviceId"); m_deviceIdHasBeenSet = true; } if(jsonValue.ValueExists("Error")) { m_error = jsonValue.GetObject("Error"); m_errorHasBeenSet = true; } return *this; } JsonValue BatchGetDevicePositionError::Jsonize() const { JsonValue payload; if(m_deviceIdHasBeenSet) { payload.WithString("DeviceId", m_deviceId); } if(m_errorHasBeenSet) { payload.WithObject("Error", m_error.Jsonize()); } return payload; } } // namespace Model } // namespace LocationService } // namespace Aws