/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::SecurityHub::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; BatchGetAutomationRulesRequest::BatchGetAutomationRulesRequest() : m_automationRulesArnsHasBeenSet(false) { } Aws::String BatchGetAutomationRulesRequest::SerializePayload() const { JsonValue payload; if(m_automationRulesArnsHasBeenSet) { Aws::Utils::Array automationRulesArnsJsonList(m_automationRulesArns.size()); for(unsigned automationRulesArnsIndex = 0; automationRulesArnsIndex < automationRulesArnsJsonList.GetLength(); ++automationRulesArnsIndex) { automationRulesArnsJsonList[automationRulesArnsIndex].AsString(m_automationRulesArns[automationRulesArnsIndex]); } payload.WithArray("AutomationRulesArns", std::move(automationRulesArnsJsonList)); } return payload.View().WriteReadable(); }