73 lines
1.4 KiB
C++
73 lines
1.4 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/appsync/model/UpdateFunctionRequest.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::AppSync::Model;
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
|
|
UpdateFunctionRequest::UpdateFunctionRequest() :
|
|
m_apiIdHasBeenSet(false),
|
|
m_nameHasBeenSet(false),
|
|
m_descriptionHasBeenSet(false),
|
|
m_functionIdHasBeenSet(false),
|
|
m_dataSourceNameHasBeenSet(false),
|
|
m_requestMappingTemplateHasBeenSet(false),
|
|
m_responseMappingTemplateHasBeenSet(false),
|
|
m_functionVersionHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Aws::String UpdateFunctionRequest::SerializePayload() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_nameHasBeenSet)
|
|
{
|
|
payload.WithString("name", m_name);
|
|
|
|
}
|
|
|
|
if(m_descriptionHasBeenSet)
|
|
{
|
|
payload.WithString("description", m_description);
|
|
|
|
}
|
|
|
|
if(m_dataSourceNameHasBeenSet)
|
|
{
|
|
payload.WithString("dataSourceName", m_dataSourceName);
|
|
|
|
}
|
|
|
|
if(m_requestMappingTemplateHasBeenSet)
|
|
{
|
|
payload.WithString("requestMappingTemplate", m_requestMappingTemplate);
|
|
|
|
}
|
|
|
|
if(m_responseMappingTemplateHasBeenSet)
|
|
{
|
|
payload.WithString("responseMappingTemplate", m_responseMappingTemplate);
|
|
|
|
}
|
|
|
|
if(m_functionVersionHasBeenSet)
|
|
{
|
|
payload.WithString("functionVersion", m_functionVersion);
|
|
|
|
}
|
|
|
|
return payload.View().WriteReadable();
|
|
}
|
|
|
|
|
|
|
|
|