/** * 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 { ColumnTooltipItem::ColumnTooltipItem() : m_columnHasBeenSet(false), m_labelHasBeenSet(false), m_visibility(Visibility::NOT_SET), m_visibilityHasBeenSet(false), m_aggregationHasBeenSet(false) { } ColumnTooltipItem::ColumnTooltipItem(JsonView jsonValue) : m_columnHasBeenSet(false), m_labelHasBeenSet(false), m_visibility(Visibility::NOT_SET), m_visibilityHasBeenSet(false), m_aggregationHasBeenSet(false) { *this = jsonValue; } ColumnTooltipItem& ColumnTooltipItem::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("Column")) { m_column = jsonValue.GetObject("Column"); m_columnHasBeenSet = true; } if(jsonValue.ValueExists("Label")) { m_label = jsonValue.GetString("Label"); m_labelHasBeenSet = true; } if(jsonValue.ValueExists("Visibility")) { m_visibility = VisibilityMapper::GetVisibilityForName(jsonValue.GetString("Visibility")); m_visibilityHasBeenSet = true; } if(jsonValue.ValueExists("Aggregation")) { m_aggregation = jsonValue.GetObject("Aggregation"); m_aggregationHasBeenSet = true; } return *this; } JsonValue ColumnTooltipItem::Jsonize() const { JsonValue payload; if(m_columnHasBeenSet) { payload.WithObject("Column", m_column.Jsonize()); } if(m_labelHasBeenSet) { payload.WithString("Label", m_label); } if(m_visibilityHasBeenSet) { payload.WithString("Visibility", VisibilityMapper::GetNameForVisibility(m_visibility)); } if(m_aggregationHasBeenSet) { payload.WithObject("Aggregation", m_aggregation.Jsonize()); } return payload; } } // namespace Model } // namespace QuickSight } // namespace Aws