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