/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::ServerlessApplicationRepository::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; UpdateApplicationRequest::UpdateApplicationRequest() : m_applicationIdHasBeenSet(false), m_authorHasBeenSet(false), m_descriptionHasBeenSet(false), m_homePageUrlHasBeenSet(false), m_labelsHasBeenSet(false), m_readmeBodyHasBeenSet(false), m_readmeUrlHasBeenSet(false) { } Aws::String UpdateApplicationRequest::SerializePayload() const { JsonValue payload; if(m_authorHasBeenSet) { payload.WithString("author", m_author); } if(m_descriptionHasBeenSet) { payload.WithString("description", m_description); } if(m_homePageUrlHasBeenSet) { payload.WithString("homePageUrl", m_homePageUrl); } if(m_labelsHasBeenSet) { Aws::Utils::Array labelsJsonList(m_labels.size()); for(unsigned labelsIndex = 0; labelsIndex < labelsJsonList.GetLength(); ++labelsIndex) { labelsJsonList[labelsIndex].AsString(m_labels[labelsIndex]); } payload.WithArray("labels", std::move(labelsJsonList)); } if(m_readmeBodyHasBeenSet) { payload.WithString("readmeBody", m_readmeBody); } if(m_readmeUrlHasBeenSet) { payload.WithString("readmeUrl", m_readmeUrl); } return payload.View().WriteReadable(); }