/** * 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; CreateRouteCalculatorRequest::CreateRouteCalculatorRequest() : m_calculatorNameHasBeenSet(false), m_dataSourceHasBeenSet(false), m_descriptionHasBeenSet(false), m_tagsHasBeenSet(false) { } Aws::String CreateRouteCalculatorRequest::SerializePayload() const { JsonValue payload; if(m_calculatorNameHasBeenSet) { payload.WithString("CalculatorName", m_calculatorName); } if(m_dataSourceHasBeenSet) { payload.WithString("DataSource", m_dataSource); } if(m_descriptionHasBeenSet) { payload.WithString("Description", m_description); } 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(); }