/** * 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 { ParameterControl::ParameterControl() : m_dateTimePickerHasBeenSet(false), m_listHasBeenSet(false), m_dropdownHasBeenSet(false), m_textFieldHasBeenSet(false), m_textAreaHasBeenSet(false), m_sliderHasBeenSet(false) { } ParameterControl::ParameterControl(JsonView jsonValue) : m_dateTimePickerHasBeenSet(false), m_listHasBeenSet(false), m_dropdownHasBeenSet(false), m_textFieldHasBeenSet(false), m_textAreaHasBeenSet(false), m_sliderHasBeenSet(false) { *this = jsonValue; } ParameterControl& ParameterControl::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("DateTimePicker")) { m_dateTimePicker = jsonValue.GetObject("DateTimePicker"); m_dateTimePickerHasBeenSet = true; } if(jsonValue.ValueExists("List")) { m_list = jsonValue.GetObject("List"); m_listHasBeenSet = true; } if(jsonValue.ValueExists("Dropdown")) { m_dropdown = jsonValue.GetObject("Dropdown"); m_dropdownHasBeenSet = true; } if(jsonValue.ValueExists("TextField")) { m_textField = jsonValue.GetObject("TextField"); m_textFieldHasBeenSet = true; } if(jsonValue.ValueExists("TextArea")) { m_textArea = jsonValue.GetObject("TextArea"); m_textAreaHasBeenSet = true; } if(jsonValue.ValueExists("Slider")) { m_slider = jsonValue.GetObject("Slider"); m_sliderHasBeenSet = true; } return *this; } JsonValue ParameterControl::Jsonize() const { JsonValue payload; if(m_dateTimePickerHasBeenSet) { payload.WithObject("DateTimePicker", m_dateTimePicker.Jsonize()); } if(m_listHasBeenSet) { payload.WithObject("List", m_list.Jsonize()); } if(m_dropdownHasBeenSet) { payload.WithObject("Dropdown", m_dropdown.Jsonize()); } if(m_textFieldHasBeenSet) { payload.WithObject("TextField", m_textField.Jsonize()); } if(m_textAreaHasBeenSet) { payload.WithObject("TextArea", m_textArea.Jsonize()); } if(m_sliderHasBeenSet) { payload.WithObject("Slider", m_slider.Jsonize()); } return payload; } } // namespace Model } // namespace QuickSight } // namespace Aws