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