/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::IoTThingsGraph::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; CreateSystemTemplateRequest::CreateSystemTemplateRequest() : m_definitionHasBeenSet(false), m_compatibleNamespaceVersion(0), m_compatibleNamespaceVersionHasBeenSet(false) { } Aws::String CreateSystemTemplateRequest::SerializePayload() const { JsonValue payload; if(m_definitionHasBeenSet) { payload.WithObject("definition", m_definition.Jsonize()); } if(m_compatibleNamespaceVersionHasBeenSet) { payload.WithInt64("compatibleNamespaceVersion", m_compatibleNamespaceVersion); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection CreateSystemTemplateRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "IotThingsGraphFrontEndService.CreateSystemTemplate")); return headers; }