/** * 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 { FieldTooltipItem::FieldTooltipItem() : m_fieldIdHasBeenSet(false), m_labelHasBeenSet(false), m_visibility(Visibility::NOT_SET), m_visibilityHasBeenSet(false) { } FieldTooltipItem::FieldTooltipItem(JsonView jsonValue) : m_fieldIdHasBeenSet(false), m_labelHasBeenSet(false), m_visibility(Visibility::NOT_SET), m_visibilityHasBeenSet(false) { *this = jsonValue; } FieldTooltipItem& FieldTooltipItem::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("FieldId")) { m_fieldId = jsonValue.GetString("FieldId"); m_fieldIdHasBeenSet = 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; } return *this; } JsonValue FieldTooltipItem::Jsonize() const { JsonValue payload; if(m_fieldIdHasBeenSet) { payload.WithString("FieldId", m_fieldId); } if(m_labelHasBeenSet) { payload.WithString("Label", m_label); } if(m_visibilityHasBeenSet) { payload.WithString("Visibility", VisibilityMapper::GetNameForVisibility(m_visibility)); } return payload; } } // namespace Model } // namespace QuickSight } // namespace Aws