/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::AppFabric::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; CreateIngestionDestinationRequest::CreateIngestionDestinationRequest() : m_appBundleIdentifierHasBeenSet(false), m_ingestionIdentifierHasBeenSet(false), m_processingConfigurationHasBeenSet(false), m_destinationConfigurationHasBeenSet(false), m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), m_clientTokenHasBeenSet(true), m_tagsHasBeenSet(false) { } Aws::String CreateIngestionDestinationRequest::SerializePayload() const { JsonValue payload; if(m_processingConfigurationHasBeenSet) { payload.WithObject("processingConfiguration", m_processingConfiguration.Jsonize()); } if(m_destinationConfigurationHasBeenSet) { payload.WithObject("destinationConfiguration", m_destinationConfiguration.Jsonize()); } if(m_clientTokenHasBeenSet) { payload.WithString("clientToken", m_clientToken); } if(m_tagsHasBeenSet) { Aws::Utils::Array tagsJsonList(m_tags.size()); for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex) { tagsJsonList[tagsIndex].AsObject(m_tags[tagsIndex].Jsonize()); } payload.WithArray("tags", std::move(tagsJsonList)); } return payload.View().WriteReadable(); }