/** * 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 Glue { namespace Model { FederatedDatabase::FederatedDatabase() : m_identifierHasBeenSet(false), m_connectionNameHasBeenSet(false) { } FederatedDatabase::FederatedDatabase(JsonView jsonValue) : m_identifierHasBeenSet(false), m_connectionNameHasBeenSet(false) { *this = jsonValue; } FederatedDatabase& FederatedDatabase::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("Identifier")) { m_identifier = jsonValue.GetString("Identifier"); m_identifierHasBeenSet = true; } if(jsonValue.ValueExists("ConnectionName")) { m_connectionName = jsonValue.GetString("ConnectionName"); m_connectionNameHasBeenSet = true; } return *this; } JsonValue FederatedDatabase::Jsonize() const { JsonValue payload; if(m_identifierHasBeenSet) { payload.WithString("Identifier", m_identifier); } if(m_connectionNameHasBeenSet) { payload.WithString("ConnectionName", m_connectionName); } return payload; } } // namespace Model } // namespace Glue } // namespace Aws