/** * 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 kendra { namespace Model { DataSourceGroup::DataSourceGroup() : m_groupIdHasBeenSet(false), m_dataSourceIdHasBeenSet(false) { } DataSourceGroup::DataSourceGroup(JsonView jsonValue) : m_groupIdHasBeenSet(false), m_dataSourceIdHasBeenSet(false) { *this = jsonValue; } DataSourceGroup& DataSourceGroup::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("GroupId")) { m_groupId = jsonValue.GetString("GroupId"); m_groupIdHasBeenSet = true; } if(jsonValue.ValueExists("DataSourceId")) { m_dataSourceId = jsonValue.GetString("DataSourceId"); m_dataSourceIdHasBeenSet = true; } return *this; } JsonValue DataSourceGroup::Jsonize() const { JsonValue payload; if(m_groupIdHasBeenSet) { payload.WithString("GroupId", m_groupId); } if(m_dataSourceIdHasBeenSet) { payload.WithString("DataSourceId", m_dataSourceId); } return payload; } } // namespace Model } // namespace kendra } // namespace Aws