/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::LocationService::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; CreateMapRequest::CreateMapRequest() : m_configurationHasBeenSet(false), m_descriptionHasBeenSet(false), m_mapNameHasBeenSet(false), m_tagsHasBeenSet(false) { } Aws::String CreateMapRequest::SerializePayload() const { JsonValue payload; if(m_configurationHasBeenSet) { payload.WithObject("Configuration", m_configuration.Jsonize()); } if(m_descriptionHasBeenSet) { payload.WithString("Description", m_description); } if(m_mapNameHasBeenSet) { payload.WithString("MapName", m_mapName); } if(m_tagsHasBeenSet) { JsonValue tagsJsonMap; for(auto& tagsItem : m_tags) { tagsJsonMap.WithString(tagsItem.first, tagsItem.second); } payload.WithObject("Tags", std::move(tagsJsonMap)); } return payload.View().WriteReadable(); }