/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace QuickSight { namespace Model { AssetBundleExportJobRefreshScheduleOverrideProperties::AssetBundleExportJobRefreshScheduleOverrideProperties() : m_arnHasBeenSet(false), m_propertiesHasBeenSet(false) { } AssetBundleExportJobRefreshScheduleOverrideProperties::AssetBundleExportJobRefreshScheduleOverrideProperties(JsonView jsonValue) : m_arnHasBeenSet(false), m_propertiesHasBeenSet(false) { *this = jsonValue; } AssetBundleExportJobRefreshScheduleOverrideProperties& AssetBundleExportJobRefreshScheduleOverrideProperties::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("Arn")) { m_arn = jsonValue.GetString("Arn"); m_arnHasBeenSet = true; } if(jsonValue.ValueExists("Properties")) { Aws::Utils::Array propertiesJsonList = jsonValue.GetArray("Properties"); for(unsigned propertiesIndex = 0; propertiesIndex < propertiesJsonList.GetLength(); ++propertiesIndex) { m_properties.push_back(AssetBundleExportJobRefreshSchedulePropertyToOverrideMapper::GetAssetBundleExportJobRefreshSchedulePropertyToOverrideForName(propertiesJsonList[propertiesIndex].AsString())); } m_propertiesHasBeenSet = true; } return *this; } JsonValue AssetBundleExportJobRefreshScheduleOverrideProperties::Jsonize() const { JsonValue payload; if(m_arnHasBeenSet) { payload.WithString("Arn", m_arn); } if(m_propertiesHasBeenSet) { Aws::Utils::Array propertiesJsonList(m_properties.size()); for(unsigned propertiesIndex = 0; propertiesIndex < propertiesJsonList.GetLength(); ++propertiesIndex) { propertiesJsonList[propertiesIndex].AsString(AssetBundleExportJobRefreshSchedulePropertyToOverrideMapper::GetNameForAssetBundleExportJobRefreshSchedulePropertyToOverride(m_properties[propertiesIndex])); } payload.WithArray("Properties", std::move(propertiesJsonList)); } return payload; } } // namespace Model } // namespace QuickSight } // namespace Aws