/** * 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 IoTFleetWise { namespace Model { UpdateVehicleError::UpdateVehicleError() : m_vehicleNameHasBeenSet(false), m_code(0), m_codeHasBeenSet(false), m_messageHasBeenSet(false) { } UpdateVehicleError::UpdateVehicleError(JsonView jsonValue) : m_vehicleNameHasBeenSet(false), m_code(0), m_codeHasBeenSet(false), m_messageHasBeenSet(false) { *this = jsonValue; } UpdateVehicleError& UpdateVehicleError::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("vehicleName")) { m_vehicleName = jsonValue.GetString("vehicleName"); m_vehicleNameHasBeenSet = true; } if(jsonValue.ValueExists("code")) { m_code = jsonValue.GetInteger("code"); m_codeHasBeenSet = true; } if(jsonValue.ValueExists("message")) { m_message = jsonValue.GetString("message"); m_messageHasBeenSet = true; } return *this; } JsonValue UpdateVehicleError::Jsonize() const { JsonValue payload; if(m_vehicleNameHasBeenSet) { payload.WithString("vehicleName", m_vehicleName); } if(m_codeHasBeenSet) { payload.WithInteger("code", m_code); } if(m_messageHasBeenSet) { payload.WithString("message", m_message); } return payload; } } // namespace Model } // namespace IoTFleetWise } // namespace Aws