/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include 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(); }