/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Omics::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; StartReadSetExportJobRequest::StartReadSetExportJobRequest() : m_sequenceStoreIdHasBeenSet(false), m_destinationHasBeenSet(false), m_roleArnHasBeenSet(false), m_clientTokenHasBeenSet(false), m_sourcesHasBeenSet(false) { } Aws::String StartReadSetExportJobRequest::SerializePayload() const { JsonValue payload; if(m_destinationHasBeenSet) { payload.WithString("destination", m_destination); } if(m_roleArnHasBeenSet) { payload.WithString("roleArn", m_roleArn); } if(m_clientTokenHasBeenSet) { payload.WithString("clientToken", m_clientToken); } 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(); }