/** * 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 LocationService { namespace Model { ListMapsResponseEntry::ListMapsResponseEntry() : m_createTimeHasBeenSet(false), m_dataSourceHasBeenSet(false), m_descriptionHasBeenSet(false), m_mapNameHasBeenSet(false), m_updateTimeHasBeenSet(false) { } ListMapsResponseEntry::ListMapsResponseEntry(JsonView jsonValue) : m_createTimeHasBeenSet(false), m_dataSourceHasBeenSet(false), m_descriptionHasBeenSet(false), m_mapNameHasBeenSet(false), m_updateTimeHasBeenSet(false) { *this = jsonValue; } ListMapsResponseEntry& ListMapsResponseEntry::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("CreateTime")) { m_createTime = jsonValue.GetString("CreateTime"); m_createTimeHasBeenSet = true; } if(jsonValue.ValueExists("DataSource")) { m_dataSource = jsonValue.GetString("DataSource"); m_dataSourceHasBeenSet = true; } if(jsonValue.ValueExists("Description")) { m_description = jsonValue.GetString("Description"); m_descriptionHasBeenSet = true; } if(jsonValue.ValueExists("MapName")) { m_mapName = jsonValue.GetString("MapName"); m_mapNameHasBeenSet = true; } if(jsonValue.ValueExists("UpdateTime")) { m_updateTime = jsonValue.GetString("UpdateTime"); m_updateTimeHasBeenSet = true; } return *this; } JsonValue ListMapsResponseEntry::Jsonize() const { JsonValue payload; if(m_createTimeHasBeenSet) { payload.WithString("CreateTime", m_createTime.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); } if(m_dataSourceHasBeenSet) { payload.WithString("DataSource", m_dataSource); } if(m_descriptionHasBeenSet) { payload.WithString("Description", m_description); } if(m_mapNameHasBeenSet) { payload.WithString("MapName", m_mapName); } if(m_updateTimeHasBeenSet) { payload.WithString("UpdateTime", m_updateTime.ToGmtString(Aws::Utils::DateFormat::ISO_8601)); } return payload; } } // namespace Model } // namespace LocationService } // namespace Aws