/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::QuickSight::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; StartAssetBundleExportJobRequest::StartAssetBundleExportJobRequest() : m_awsAccountIdHasBeenSet(false), m_assetBundleExportJobIdHasBeenSet(false), m_resourceArnsHasBeenSet(false), m_includeAllDependencies(false), m_includeAllDependenciesHasBeenSet(false), m_exportFormat(AssetBundleExportFormat::NOT_SET), m_exportFormatHasBeenSet(false), m_cloudFormationOverridePropertyConfigurationHasBeenSet(false) { } Aws::String StartAssetBundleExportJobRequest::SerializePayload() const { JsonValue payload; if(m_assetBundleExportJobIdHasBeenSet) { payload.WithString("AssetBundleExportJobId", m_assetBundleExportJobId); } if(m_resourceArnsHasBeenSet) { Aws::Utils::Array resourceArnsJsonList(m_resourceArns.size()); for(unsigned resourceArnsIndex = 0; resourceArnsIndex < resourceArnsJsonList.GetLength(); ++resourceArnsIndex) { resourceArnsJsonList[resourceArnsIndex].AsString(m_resourceArns[resourceArnsIndex]); } payload.WithArray("ResourceArns", std::move(resourceArnsJsonList)); } if(m_includeAllDependenciesHasBeenSet) { payload.WithBool("IncludeAllDependencies", m_includeAllDependencies); } if(m_exportFormatHasBeenSet) { payload.WithString("ExportFormat", AssetBundleExportFormatMapper::GetNameForAssetBundleExportFormat(m_exportFormat)); } if(m_cloudFormationOverridePropertyConfigurationHasBeenSet) { payload.WithObject("CloudFormationOverridePropertyConfiguration", m_cloudFormationOverridePropertyConfiguration.Jsonize()); } return payload.View().WriteReadable(); }