/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::CodeGuruSecurity::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; BatchGetFindingsRequest::BatchGetFindingsRequest() : m_findingIdentifiersHasBeenSet(false) { } Aws::String BatchGetFindingsRequest::SerializePayload() const { JsonValue payload; if(m_findingIdentifiersHasBeenSet) { Aws::Utils::Array findingIdentifiersJsonList(m_findingIdentifiers.size()); for(unsigned findingIdentifiersIndex = 0; findingIdentifiersIndex < findingIdentifiersJsonList.GetLength(); ++findingIdentifiersIndex) { findingIdentifiersJsonList[findingIdentifiersIndex].AsObject(m_findingIdentifiers[findingIdentifiersIndex].Jsonize()); } payload.WithArray("findingIdentifiers", std::move(findingIdentifiersJsonList)); } return payload.View().WriteReadable(); }