/** * 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 ECS { namespace Model { ServiceConnectClientAlias::ServiceConnectClientAlias() : m_port(0), m_portHasBeenSet(false), m_dnsNameHasBeenSet(false) { } ServiceConnectClientAlias::ServiceConnectClientAlias(JsonView jsonValue) : m_port(0), m_portHasBeenSet(false), m_dnsNameHasBeenSet(false) { *this = jsonValue; } ServiceConnectClientAlias& ServiceConnectClientAlias::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("port")) { m_port = jsonValue.GetInteger("port"); m_portHasBeenSet = true; } if(jsonValue.ValueExists("dnsName")) { m_dnsName = jsonValue.GetString("dnsName"); m_dnsNameHasBeenSet = true; } return *this; } JsonValue ServiceConnectClientAlias::Jsonize() const { JsonValue payload; if(m_portHasBeenSet) { payload.WithInteger("port", m_port); } if(m_dnsNameHasBeenSet) { payload.WithString("dnsName", m_dnsName); } return payload; } } // namespace Model } // namespace ECS } // namespace Aws