/** * 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 IoTWireless { namespace Model { SemtechGnssDetail::SemtechGnssDetail() : m_provider(PositionSolverProvider::NOT_SET), m_providerHasBeenSet(false), m_type(PositionSolverType::NOT_SET), m_typeHasBeenSet(false), m_status(PositionConfigurationStatus::NOT_SET), m_statusHasBeenSet(false), m_fec(PositionConfigurationFec::NOT_SET), m_fecHasBeenSet(false) { } SemtechGnssDetail::SemtechGnssDetail(JsonView jsonValue) : m_provider(PositionSolverProvider::NOT_SET), m_providerHasBeenSet(false), m_type(PositionSolverType::NOT_SET), m_typeHasBeenSet(false), m_status(PositionConfigurationStatus::NOT_SET), m_statusHasBeenSet(false), m_fec(PositionConfigurationFec::NOT_SET), m_fecHasBeenSet(false) { *this = jsonValue; } SemtechGnssDetail& SemtechGnssDetail::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("Provider")) { m_provider = PositionSolverProviderMapper::GetPositionSolverProviderForName(jsonValue.GetString("Provider")); m_providerHasBeenSet = true; } if(jsonValue.ValueExists("Type")) { m_type = PositionSolverTypeMapper::GetPositionSolverTypeForName(jsonValue.GetString("Type")); m_typeHasBeenSet = true; } if(jsonValue.ValueExists("Status")) { m_status = PositionConfigurationStatusMapper::GetPositionConfigurationStatusForName(jsonValue.GetString("Status")); m_statusHasBeenSet = true; } if(jsonValue.ValueExists("Fec")) { m_fec = PositionConfigurationFecMapper::GetPositionConfigurationFecForName(jsonValue.GetString("Fec")); m_fecHasBeenSet = true; } return *this; } JsonValue SemtechGnssDetail::Jsonize() const { JsonValue payload; if(m_providerHasBeenSet) { payload.WithString("Provider", PositionSolverProviderMapper::GetNameForPositionSolverProvider(m_provider)); } if(m_typeHasBeenSet) { payload.WithString("Type", PositionSolverTypeMapper::GetNameForPositionSolverType(m_type)); } if(m_statusHasBeenSet) { payload.WithString("Status", PositionConfigurationStatusMapper::GetNameForPositionConfigurationStatus(m_status)); } if(m_fecHasBeenSet) { payload.WithString("Fec", PositionConfigurationFecMapper::GetNameForPositionConfigurationFec(m_fec)); } return payload; } } // namespace Model } // namespace IoTWireless } // namespace Aws