57 lines
1.0 KiB
C++
57 lines
1.0 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/robomaker/model/UpdateWorldTemplateRequest.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::RoboMaker::Model;
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
|
|
UpdateWorldTemplateRequest::UpdateWorldTemplateRequest() :
|
|
m_templateHasBeenSet(false),
|
|
m_nameHasBeenSet(false),
|
|
m_templateBodyHasBeenSet(false),
|
|
m_templateLocationHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Aws::String UpdateWorldTemplateRequest::SerializePayload() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_templateHasBeenSet)
|
|
{
|
|
payload.WithString("template", m_template);
|
|
|
|
}
|
|
|
|
if(m_nameHasBeenSet)
|
|
{
|
|
payload.WithString("name", m_name);
|
|
|
|
}
|
|
|
|
if(m_templateBodyHasBeenSet)
|
|
{
|
|
payload.WithString("templateBody", m_templateBody);
|
|
|
|
}
|
|
|
|
if(m_templateLocationHasBeenSet)
|
|
{
|
|
payload.WithObject("templateLocation", m_templateLocation.Jsonize());
|
|
|
|
}
|
|
|
|
return payload.View().WriteReadable();
|
|
}
|
|
|
|
|
|
|
|
|