/** * 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 GroundStation { namespace Model { FrequencyBandwidth::FrequencyBandwidth() : m_units(BandwidthUnits::NOT_SET), m_unitsHasBeenSet(false), m_value(0.0), m_valueHasBeenSet(false) { } FrequencyBandwidth::FrequencyBandwidth(JsonView jsonValue) : m_units(BandwidthUnits::NOT_SET), m_unitsHasBeenSet(false), m_value(0.0), m_valueHasBeenSet(false) { *this = jsonValue; } FrequencyBandwidth& FrequencyBandwidth::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("units")) { m_units = BandwidthUnitsMapper::GetBandwidthUnitsForName(jsonValue.GetString("units")); m_unitsHasBeenSet = true; } if(jsonValue.ValueExists("value")) { m_value = jsonValue.GetDouble("value"); m_valueHasBeenSet = true; } return *this; } JsonValue FrequencyBandwidth::Jsonize() const { JsonValue payload; if(m_unitsHasBeenSet) { payload.WithString("units", BandwidthUnitsMapper::GetNameForBandwidthUnits(m_units)); } if(m_valueHasBeenSet) { payload.WithDouble("value", m_value); } return payload; } } // namespace Model } // namespace GroundStation } // namespace Aws