/** * 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 GlueDataBrew { namespace Model { DataCatalogInputDefinition::DataCatalogInputDefinition() : m_catalogIdHasBeenSet(false), m_databaseNameHasBeenSet(false), m_tableNameHasBeenSet(false), m_tempDirectoryHasBeenSet(false) { } DataCatalogInputDefinition::DataCatalogInputDefinition(JsonView jsonValue) : m_catalogIdHasBeenSet(false), m_databaseNameHasBeenSet(false), m_tableNameHasBeenSet(false), m_tempDirectoryHasBeenSet(false) { *this = jsonValue; } DataCatalogInputDefinition& DataCatalogInputDefinition::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("CatalogId")) { m_catalogId = jsonValue.GetString("CatalogId"); m_catalogIdHasBeenSet = true; } if(jsonValue.ValueExists("DatabaseName")) { m_databaseName = jsonValue.GetString("DatabaseName"); m_databaseNameHasBeenSet = true; } if(jsonValue.ValueExists("TableName")) { m_tableName = jsonValue.GetString("TableName"); m_tableNameHasBeenSet = true; } if(jsonValue.ValueExists("TempDirectory")) { m_tempDirectory = jsonValue.GetObject("TempDirectory"); m_tempDirectoryHasBeenSet = true; } return *this; } JsonValue DataCatalogInputDefinition::Jsonize() const { JsonValue payload; if(m_catalogIdHasBeenSet) { payload.WithString("CatalogId", m_catalogId); } if(m_databaseNameHasBeenSet) { payload.WithString("DatabaseName", m_databaseName); } if(m_tableNameHasBeenSet) { payload.WithString("TableName", m_tableName); } if(m_tempDirectoryHasBeenSet) { payload.WithObject("TempDirectory", m_tempDirectory.Jsonize()); } return payload; } } // namespace Model } // namespace GlueDataBrew } // namespace Aws