/** * 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 { DropDownControlDisplayOptions::DropDownControlDisplayOptions() : m_selectAllOptionsHasBeenSet(false), m_titleOptionsHasBeenSet(false), m_infoIconLabelOptionsHasBeenSet(false) { } DropDownControlDisplayOptions::DropDownControlDisplayOptions(JsonView jsonValue) : m_selectAllOptionsHasBeenSet(false), m_titleOptionsHasBeenSet(false), m_infoIconLabelOptionsHasBeenSet(false) { *this = jsonValue; } DropDownControlDisplayOptions& DropDownControlDisplayOptions::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("SelectAllOptions")) { m_selectAllOptions = jsonValue.GetObject("SelectAllOptions"); m_selectAllOptionsHasBeenSet = true; } if(jsonValue.ValueExists("TitleOptions")) { m_titleOptions = jsonValue.GetObject("TitleOptions"); m_titleOptionsHasBeenSet = true; } if(jsonValue.ValueExists("InfoIconLabelOptions")) { m_infoIconLabelOptions = jsonValue.GetObject("InfoIconLabelOptions"); m_infoIconLabelOptionsHasBeenSet = true; } return *this; } JsonValue DropDownControlDisplayOptions::Jsonize() const { JsonValue payload; if(m_selectAllOptionsHasBeenSet) { payload.WithObject("SelectAllOptions", m_selectAllOptions.Jsonize()); } if(m_titleOptionsHasBeenSet) { payload.WithObject("TitleOptions", m_titleOptions.Jsonize()); } if(m_infoIconLabelOptionsHasBeenSet) { payload.WithObject("InfoIconLabelOptions", m_infoIconLabelOptions.Jsonize()); } return payload; } } // namespace Model } // namespace QuickSight } // namespace Aws