/** * 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; ListServiceTemplateVersionsRequest::ListServiceTemplateVersionsRequest() : m_majorVersionHasBeenSet(false), m_maxResults(0), m_maxResultsHasBeenSet(false), m_nextTokenHasBeenSet(false), m_templateNameHasBeenSet(false) { } Aws::String ListServiceTemplateVersionsRequest::SerializePayload() const { JsonValue payload; if(m_majorVersionHasBeenSet) { payload.WithString("majorVersion", m_majorVersion); } if(m_maxResultsHasBeenSet) { payload.WithInteger("maxResults", m_maxResults); } if(m_nextTokenHasBeenSet) { payload.WithString("nextToken", m_nextToken); } if(m_templateNameHasBeenSet) { payload.WithString("templateName", m_templateName); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection ListServiceTemplateVersionsRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AwsProton20200720.ListServiceTemplateVersions")); return headers; }