/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace QuickSight { namespace Model { /** *

A control to display a dropdown list with buttons that are used to select a * single value.

See Also:

AWS * API Reference

*/ class ParameterDropDownControl { public: AWS_QUICKSIGHT_API ParameterDropDownControl(); AWS_QUICKSIGHT_API ParameterDropDownControl(Aws::Utils::Json::JsonView jsonValue); AWS_QUICKSIGHT_API ParameterDropDownControl& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The ID of the ParameterDropDownControl.

*/ inline const Aws::String& GetParameterControlId() const{ return m_parameterControlId; } /** *

The ID of the ParameterDropDownControl.

*/ inline bool ParameterControlIdHasBeenSet() const { return m_parameterControlIdHasBeenSet; } /** *

The ID of the ParameterDropDownControl.

*/ inline void SetParameterControlId(const Aws::String& value) { m_parameterControlIdHasBeenSet = true; m_parameterControlId = value; } /** *

The ID of the ParameterDropDownControl.

*/ inline void SetParameterControlId(Aws::String&& value) { m_parameterControlIdHasBeenSet = true; m_parameterControlId = std::move(value); } /** *

The ID of the ParameterDropDownControl.

*/ inline void SetParameterControlId(const char* value) { m_parameterControlIdHasBeenSet = true; m_parameterControlId.assign(value); } /** *

The ID of the ParameterDropDownControl.

*/ inline ParameterDropDownControl& WithParameterControlId(const Aws::String& value) { SetParameterControlId(value); return *this;} /** *

The ID of the ParameterDropDownControl.

*/ inline ParameterDropDownControl& WithParameterControlId(Aws::String&& value) { SetParameterControlId(std::move(value)); return *this;} /** *

The ID of the ParameterDropDownControl.

*/ inline ParameterDropDownControl& WithParameterControlId(const char* value) { SetParameterControlId(value); return *this;} /** *

The title of the ParameterDropDownControl.

*/ inline const Aws::String& GetTitle() const{ return m_title; } /** *

The title of the ParameterDropDownControl.

*/ inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; } /** *

The title of the ParameterDropDownControl.

*/ inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; } /** *

The title of the ParameterDropDownControl.

*/ inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); } /** *

The title of the ParameterDropDownControl.

*/ inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); } /** *

The title of the ParameterDropDownControl.

*/ inline ParameterDropDownControl& WithTitle(const Aws::String& value) { SetTitle(value); return *this;} /** *

The title of the ParameterDropDownControl.

*/ inline ParameterDropDownControl& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;} /** *

The title of the ParameterDropDownControl.

*/ inline ParameterDropDownControl& WithTitle(const char* value) { SetTitle(value); return *this;} /** *

The source parameter name of the ParameterDropDownControl.

*/ inline const Aws::String& GetSourceParameterName() const{ return m_sourceParameterName; } /** *

The source parameter name of the ParameterDropDownControl.

*/ inline bool SourceParameterNameHasBeenSet() const { return m_sourceParameterNameHasBeenSet; } /** *

The source parameter name of the ParameterDropDownControl.

*/ inline void SetSourceParameterName(const Aws::String& value) { m_sourceParameterNameHasBeenSet = true; m_sourceParameterName = value; } /** *

The source parameter name of the ParameterDropDownControl.

*/ inline void SetSourceParameterName(Aws::String&& value) { m_sourceParameterNameHasBeenSet = true; m_sourceParameterName = std::move(value); } /** *

The source parameter name of the ParameterDropDownControl.

*/ inline void SetSourceParameterName(const char* value) { m_sourceParameterNameHasBeenSet = true; m_sourceParameterName.assign(value); } /** *

The source parameter name of the ParameterDropDownControl.

*/ inline ParameterDropDownControl& WithSourceParameterName(const Aws::String& value) { SetSourceParameterName(value); return *this;} /** *

The source parameter name of the ParameterDropDownControl.

*/ inline ParameterDropDownControl& WithSourceParameterName(Aws::String&& value) { SetSourceParameterName(std::move(value)); return *this;} /** *

The source parameter name of the ParameterDropDownControl.

*/ inline ParameterDropDownControl& WithSourceParameterName(const char* value) { SetSourceParameterName(value); return *this;} /** *

The display options of a control.

*/ inline const DropDownControlDisplayOptions& GetDisplayOptions() const{ return m_displayOptions; } /** *

The display options of a control.

*/ inline bool DisplayOptionsHasBeenSet() const { return m_displayOptionsHasBeenSet; } /** *

The display options of a control.

*/ inline void SetDisplayOptions(const DropDownControlDisplayOptions& value) { m_displayOptionsHasBeenSet = true; m_displayOptions = value; } /** *

The display options of a control.

*/ inline void SetDisplayOptions(DropDownControlDisplayOptions&& value) { m_displayOptionsHasBeenSet = true; m_displayOptions = std::move(value); } /** *

The display options of a control.

*/ inline ParameterDropDownControl& WithDisplayOptions(const DropDownControlDisplayOptions& value) { SetDisplayOptions(value); return *this;} /** *

The display options of a control.

*/ inline ParameterDropDownControl& WithDisplayOptions(DropDownControlDisplayOptions&& value) { SetDisplayOptions(std::move(value)); return *this;} /** *

The type parameter name of the ParameterDropDownControl.

*/ inline const SheetControlListType& GetType() const{ return m_type; } /** *

The type parameter name of the ParameterDropDownControl.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type parameter name of the ParameterDropDownControl.

*/ inline void SetType(const SheetControlListType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type parameter name of the ParameterDropDownControl.

*/ inline void SetType(SheetControlListType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type parameter name of the ParameterDropDownControl.

*/ inline ParameterDropDownControl& WithType(const SheetControlListType& value) { SetType(value); return *this;} /** *

The type parameter name of the ParameterDropDownControl.

*/ inline ParameterDropDownControl& WithType(SheetControlListType&& value) { SetType(std::move(value)); return *this;} /** *

A list of selectable values that are used in a control.

*/ inline const ParameterSelectableValues& GetSelectableValues() const{ return m_selectableValues; } /** *

A list of selectable values that are used in a control.

*/ inline bool SelectableValuesHasBeenSet() const { return m_selectableValuesHasBeenSet; } /** *

A list of selectable values that are used in a control.

*/ inline void SetSelectableValues(const ParameterSelectableValues& value) { m_selectableValuesHasBeenSet = true; m_selectableValues = value; } /** *

A list of selectable values that are used in a control.

*/ inline void SetSelectableValues(ParameterSelectableValues&& value) { m_selectableValuesHasBeenSet = true; m_selectableValues = std::move(value); } /** *

A list of selectable values that are used in a control.

*/ inline ParameterDropDownControl& WithSelectableValues(const ParameterSelectableValues& value) { SetSelectableValues(value); return *this;} /** *

A list of selectable values that are used in a control.

*/ inline ParameterDropDownControl& WithSelectableValues(ParameterSelectableValues&& value) { SetSelectableValues(std::move(value)); return *this;} /** *

The values that are displayed in a control can be configured to only show * values that are valid based on what's selected in other controls.

*/ inline const CascadingControlConfiguration& GetCascadingControlConfiguration() const{ return m_cascadingControlConfiguration; } /** *

The values that are displayed in a control can be configured to only show * values that are valid based on what's selected in other controls.

*/ inline bool CascadingControlConfigurationHasBeenSet() const { return m_cascadingControlConfigurationHasBeenSet; } /** *

The values that are displayed in a control can be configured to only show * values that are valid based on what's selected in other controls.

*/ inline void SetCascadingControlConfiguration(const CascadingControlConfiguration& value) { m_cascadingControlConfigurationHasBeenSet = true; m_cascadingControlConfiguration = value; } /** *

The values that are displayed in a control can be configured to only show * values that are valid based on what's selected in other controls.

*/ inline void SetCascadingControlConfiguration(CascadingControlConfiguration&& value) { m_cascadingControlConfigurationHasBeenSet = true; m_cascadingControlConfiguration = std::move(value); } /** *

The values that are displayed in a control can be configured to only show * values that are valid based on what's selected in other controls.

*/ inline ParameterDropDownControl& WithCascadingControlConfiguration(const CascadingControlConfiguration& value) { SetCascadingControlConfiguration(value); return *this;} /** *

The values that are displayed in a control can be configured to only show * values that are valid based on what's selected in other controls.

*/ inline ParameterDropDownControl& WithCascadingControlConfiguration(CascadingControlConfiguration&& value) { SetCascadingControlConfiguration(std::move(value)); return *this;} private: Aws::String m_parameterControlId; bool m_parameterControlIdHasBeenSet = false; Aws::String m_title; bool m_titleHasBeenSet = false; Aws::String m_sourceParameterName; bool m_sourceParameterNameHasBeenSet = false; DropDownControlDisplayOptions m_displayOptions; bool m_displayOptionsHasBeenSet = false; SheetControlListType m_type; bool m_typeHasBeenSet = false; ParameterSelectableValues m_selectableValues; bool m_selectableValuesHasBeenSet = false; CascadingControlConfiguration m_cascadingControlConfiguration; bool m_cascadingControlConfigurationHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws