/** * 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 Kafka { namespace Model { VpcConnectivityClientAuthentication::VpcConnectivityClientAuthentication() : m_saslHasBeenSet(false), m_tlsHasBeenSet(false) { } VpcConnectivityClientAuthentication::VpcConnectivityClientAuthentication(JsonView jsonValue) : m_saslHasBeenSet(false), m_tlsHasBeenSet(false) { *this = jsonValue; } VpcConnectivityClientAuthentication& VpcConnectivityClientAuthentication::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("sasl")) { m_sasl = jsonValue.GetObject("sasl"); m_saslHasBeenSet = true; } if(jsonValue.ValueExists("tls")) { m_tls = jsonValue.GetObject("tls"); m_tlsHasBeenSet = true; } return *this; } JsonValue VpcConnectivityClientAuthentication::Jsonize() const { JsonValue payload; if(m_saslHasBeenSet) { payload.WithObject("sasl", m_sasl.Jsonize()); } if(m_tlsHasBeenSet) { payload.WithObject("tls", m_tls.Jsonize()); } return payload; } } // namespace Model } // namespace Kafka } // namespace Aws