/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::GlueDataBrew::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; CreateProjectRequest::CreateProjectRequest() : m_datasetNameHasBeenSet(false), m_nameHasBeenSet(false), m_recipeNameHasBeenSet(false), m_sampleHasBeenSet(false), m_roleArnHasBeenSet(false), m_tagsHasBeenSet(false) { } Aws::String CreateProjectRequest::SerializePayload() const { JsonValue payload; if(m_datasetNameHasBeenSet) { payload.WithString("DatasetName", m_datasetName); } if(m_nameHasBeenSet) { payload.WithString("Name", m_name); } if(m_recipeNameHasBeenSet) { payload.WithString("RecipeName", m_recipeName); } if(m_sampleHasBeenSet) { payload.WithObject("Sample", m_sample.Jsonize()); } if(m_roleArnHasBeenSet) { payload.WithString("RoleArn", m_roleArn); } 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(); }