/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::ConfigService::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; PutConformancePackRequest::PutConformancePackRequest() : m_conformancePackNameHasBeenSet(false), m_templateS3UriHasBeenSet(false), m_templateBodyHasBeenSet(false), m_deliveryS3BucketHasBeenSet(false), m_deliveryS3KeyPrefixHasBeenSet(false), m_conformancePackInputParametersHasBeenSet(false), m_templateSSMDocumentDetailsHasBeenSet(false) { } Aws::String PutConformancePackRequest::SerializePayload() const { JsonValue payload; if(m_conformancePackNameHasBeenSet) { payload.WithString("ConformancePackName", m_conformancePackName); } if(m_templateS3UriHasBeenSet) { payload.WithString("TemplateS3Uri", m_templateS3Uri); } if(m_templateBodyHasBeenSet) { payload.WithString("TemplateBody", m_templateBody); } if(m_deliveryS3BucketHasBeenSet) { payload.WithString("DeliveryS3Bucket", m_deliveryS3Bucket); } if(m_deliveryS3KeyPrefixHasBeenSet) { payload.WithString("DeliveryS3KeyPrefix", m_deliveryS3KeyPrefix); } if(m_conformancePackInputParametersHasBeenSet) { Aws::Utils::Array conformancePackInputParametersJsonList(m_conformancePackInputParameters.size()); for(unsigned conformancePackInputParametersIndex = 0; conformancePackInputParametersIndex < conformancePackInputParametersJsonList.GetLength(); ++conformancePackInputParametersIndex) { conformancePackInputParametersJsonList[conformancePackInputParametersIndex].AsObject(m_conformancePackInputParameters[conformancePackInputParametersIndex].Jsonize()); } payload.WithArray("ConformancePackInputParameters", std::move(conformancePackInputParametersJsonList)); } if(m_templateSSMDocumentDetailsHasBeenSet) { payload.WithObject("TemplateSSMDocumentDetails", m_templateSSMDocumentDetails.Jsonize()); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection PutConformancePackRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "StarlingDoveService.PutConformancePack")); return headers; }