/** * 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 { RangedConnectionDetails::RangedConnectionDetails() : m_mtu(0), m_mtuHasBeenSet(false), m_socketAddressHasBeenSet(false) { } RangedConnectionDetails::RangedConnectionDetails(JsonView jsonValue) : m_mtu(0), m_mtuHasBeenSet(false), m_socketAddressHasBeenSet(false) { *this = jsonValue; } RangedConnectionDetails& RangedConnectionDetails::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("mtu")) { m_mtu = jsonValue.GetInteger("mtu"); m_mtuHasBeenSet = true; } if(jsonValue.ValueExists("socketAddress")) { m_socketAddress = jsonValue.GetObject("socketAddress"); m_socketAddressHasBeenSet = true; } return *this; } JsonValue RangedConnectionDetails::Jsonize() const { JsonValue payload; if(m_mtuHasBeenSet) { payload.WithInteger("mtu", m_mtu); } if(m_socketAddressHasBeenSet) { payload.WithObject("socketAddress", m_socketAddress.Jsonize()); } return payload; } } // namespace Model } // namespace GroundStation } // namespace Aws