/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Proton::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; DeleteServiceTemplateVersionRequest::DeleteServiceTemplateVersionRequest() : m_majorVersionHasBeenSet(false), m_minorVersionHasBeenSet(false), m_templateNameHasBeenSet(false) { } Aws::String DeleteServiceTemplateVersionRequest::SerializePayload() const { JsonValue payload; if(m_majorVersionHasBeenSet) { payload.WithString("majorVersion", m_majorVersion); } if(m_minorVersionHasBeenSet) { payload.WithString("minorVersion", m_minorVersion); } if(m_templateNameHasBeenSet) { payload.WithString("templateName", m_templateName); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection DeleteServiceTemplateVersionRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AwsProton20200720.DeleteServiceTemplateVersion")); return headers; }