/** * 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 #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace QuickSight { namespace Model { /** *

The configuration for a HistogramVisual.

See * Also:

AWS * API Reference

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

The field well configuration of a histogram.

*/ inline const HistogramFieldWells& GetFieldWells() const{ return m_fieldWells; } /** *

The field well configuration of a histogram.

*/ inline bool FieldWellsHasBeenSet() const { return m_fieldWellsHasBeenSet; } /** *

The field well configuration of a histogram.

*/ inline void SetFieldWells(const HistogramFieldWells& value) { m_fieldWellsHasBeenSet = true; m_fieldWells = value; } /** *

The field well configuration of a histogram.

*/ inline void SetFieldWells(HistogramFieldWells&& value) { m_fieldWellsHasBeenSet = true; m_fieldWells = std::move(value); } /** *

The field well configuration of a histogram.

*/ inline HistogramConfiguration& WithFieldWells(const HistogramFieldWells& value) { SetFieldWells(value); return *this;} /** *

The field well configuration of a histogram.

*/ inline HistogramConfiguration& WithFieldWells(HistogramFieldWells&& value) { SetFieldWells(std::move(value)); return *this;} /** *

The options that determine the presentation of the x-axis.

*/ inline const AxisDisplayOptions& GetXAxisDisplayOptions() const{ return m_xAxisDisplayOptions; } /** *

The options that determine the presentation of the x-axis.

*/ inline bool XAxisDisplayOptionsHasBeenSet() const { return m_xAxisDisplayOptionsHasBeenSet; } /** *

The options that determine the presentation of the x-axis.

*/ inline void SetXAxisDisplayOptions(const AxisDisplayOptions& value) { m_xAxisDisplayOptionsHasBeenSet = true; m_xAxisDisplayOptions = value; } /** *

The options that determine the presentation of the x-axis.

*/ inline void SetXAxisDisplayOptions(AxisDisplayOptions&& value) { m_xAxisDisplayOptionsHasBeenSet = true; m_xAxisDisplayOptions = std::move(value); } /** *

The options that determine the presentation of the x-axis.

*/ inline HistogramConfiguration& WithXAxisDisplayOptions(const AxisDisplayOptions& value) { SetXAxisDisplayOptions(value); return *this;} /** *

The options that determine the presentation of the x-axis.

*/ inline HistogramConfiguration& WithXAxisDisplayOptions(AxisDisplayOptions&& value) { SetXAxisDisplayOptions(std::move(value)); return *this;} /** *

The options that determine the presentation of the x-axis label.

*/ inline const ChartAxisLabelOptions& GetXAxisLabelOptions() const{ return m_xAxisLabelOptions; } /** *

The options that determine the presentation of the x-axis label.

*/ inline bool XAxisLabelOptionsHasBeenSet() const { return m_xAxisLabelOptionsHasBeenSet; } /** *

The options that determine the presentation of the x-axis label.

*/ inline void SetXAxisLabelOptions(const ChartAxisLabelOptions& value) { m_xAxisLabelOptionsHasBeenSet = true; m_xAxisLabelOptions = value; } /** *

The options that determine the presentation of the x-axis label.

*/ inline void SetXAxisLabelOptions(ChartAxisLabelOptions&& value) { m_xAxisLabelOptionsHasBeenSet = true; m_xAxisLabelOptions = std::move(value); } /** *

The options that determine the presentation of the x-axis label.

*/ inline HistogramConfiguration& WithXAxisLabelOptions(const ChartAxisLabelOptions& value) { SetXAxisLabelOptions(value); return *this;} /** *

The options that determine the presentation of the x-axis label.

*/ inline HistogramConfiguration& WithXAxisLabelOptions(ChartAxisLabelOptions&& value) { SetXAxisLabelOptions(std::move(value)); return *this;} /** *

The options that determine the presentation of the y-axis.

*/ inline const AxisDisplayOptions& GetYAxisDisplayOptions() const{ return m_yAxisDisplayOptions; } /** *

The options that determine the presentation of the y-axis.

*/ inline bool YAxisDisplayOptionsHasBeenSet() const { return m_yAxisDisplayOptionsHasBeenSet; } /** *

The options that determine the presentation of the y-axis.

*/ inline void SetYAxisDisplayOptions(const AxisDisplayOptions& value) { m_yAxisDisplayOptionsHasBeenSet = true; m_yAxisDisplayOptions = value; } /** *

The options that determine the presentation of the y-axis.

*/ inline void SetYAxisDisplayOptions(AxisDisplayOptions&& value) { m_yAxisDisplayOptionsHasBeenSet = true; m_yAxisDisplayOptions = std::move(value); } /** *

The options that determine the presentation of the y-axis.

*/ inline HistogramConfiguration& WithYAxisDisplayOptions(const AxisDisplayOptions& value) { SetYAxisDisplayOptions(value); return *this;} /** *

The options that determine the presentation of the y-axis.

*/ inline HistogramConfiguration& WithYAxisDisplayOptions(AxisDisplayOptions&& value) { SetYAxisDisplayOptions(std::move(value)); return *this;} /** *

The options that determine the presentation of histogram bins.

*/ inline const HistogramBinOptions& GetBinOptions() const{ return m_binOptions; } /** *

The options that determine the presentation of histogram bins.

*/ inline bool BinOptionsHasBeenSet() const { return m_binOptionsHasBeenSet; } /** *

The options that determine the presentation of histogram bins.

*/ inline void SetBinOptions(const HistogramBinOptions& value) { m_binOptionsHasBeenSet = true; m_binOptions = value; } /** *

The options that determine the presentation of histogram bins.

*/ inline void SetBinOptions(HistogramBinOptions&& value) { m_binOptionsHasBeenSet = true; m_binOptions = std::move(value); } /** *

The options that determine the presentation of histogram bins.

*/ inline HistogramConfiguration& WithBinOptions(const HistogramBinOptions& value) { SetBinOptions(value); return *this;} /** *

The options that determine the presentation of histogram bins.

*/ inline HistogramConfiguration& WithBinOptions(HistogramBinOptions&& value) { SetBinOptions(std::move(value)); return *this;} /** *

The data label configuration of a histogram.

*/ inline const DataLabelOptions& GetDataLabels() const{ return m_dataLabels; } /** *

The data label configuration of a histogram.

*/ inline bool DataLabelsHasBeenSet() const { return m_dataLabelsHasBeenSet; } /** *

The data label configuration of a histogram.

*/ inline void SetDataLabels(const DataLabelOptions& value) { m_dataLabelsHasBeenSet = true; m_dataLabels = value; } /** *

The data label configuration of a histogram.

*/ inline void SetDataLabels(DataLabelOptions&& value) { m_dataLabelsHasBeenSet = true; m_dataLabels = std::move(value); } /** *

The data label configuration of a histogram.

*/ inline HistogramConfiguration& WithDataLabels(const DataLabelOptions& value) { SetDataLabels(value); return *this;} /** *

The data label configuration of a histogram.

*/ inline HistogramConfiguration& WithDataLabels(DataLabelOptions&& value) { SetDataLabels(std::move(value)); return *this;} /** *

The tooltip configuration of a histogram.

*/ inline const TooltipOptions& GetTooltip() const{ return m_tooltip; } /** *

The tooltip configuration of a histogram.

*/ inline bool TooltipHasBeenSet() const { return m_tooltipHasBeenSet; } /** *

The tooltip configuration of a histogram.

*/ inline void SetTooltip(const TooltipOptions& value) { m_tooltipHasBeenSet = true; m_tooltip = value; } /** *

The tooltip configuration of a histogram.

*/ inline void SetTooltip(TooltipOptions&& value) { m_tooltipHasBeenSet = true; m_tooltip = std::move(value); } /** *

The tooltip configuration of a histogram.

*/ inline HistogramConfiguration& WithTooltip(const TooltipOptions& value) { SetTooltip(value); return *this;} /** *

The tooltip configuration of a histogram.

*/ inline HistogramConfiguration& WithTooltip(TooltipOptions&& value) { SetTooltip(std::move(value)); return *this;} /** *

The visual palette configuration of a histogram.

*/ inline const VisualPalette& GetVisualPalette() const{ return m_visualPalette; } /** *

The visual palette configuration of a histogram.

*/ inline bool VisualPaletteHasBeenSet() const { return m_visualPaletteHasBeenSet; } /** *

The visual palette configuration of a histogram.

*/ inline void SetVisualPalette(const VisualPalette& value) { m_visualPaletteHasBeenSet = true; m_visualPalette = value; } /** *

The visual palette configuration of a histogram.

*/ inline void SetVisualPalette(VisualPalette&& value) { m_visualPaletteHasBeenSet = true; m_visualPalette = std::move(value); } /** *

The visual palette configuration of a histogram.

*/ inline HistogramConfiguration& WithVisualPalette(const VisualPalette& value) { SetVisualPalette(value); return *this;} /** *

The visual palette configuration of a histogram.

*/ inline HistogramConfiguration& WithVisualPalette(VisualPalette&& value) { SetVisualPalette(std::move(value)); return *this;} private: HistogramFieldWells m_fieldWells; bool m_fieldWellsHasBeenSet = false; AxisDisplayOptions m_xAxisDisplayOptions; bool m_xAxisDisplayOptionsHasBeenSet = false; ChartAxisLabelOptions m_xAxisLabelOptions; bool m_xAxisLabelOptionsHasBeenSet = false; AxisDisplayOptions m_yAxisDisplayOptions; bool m_yAxisDisplayOptionsHasBeenSet = false; HistogramBinOptions m_binOptions; bool m_binOptionsHasBeenSet = false; DataLabelOptions m_dataLabels; bool m_dataLabelsHasBeenSet = false; TooltipOptions m_tooltip; bool m_tooltipHasBeenSet = false; VisualPalette m_visualPalette; bool m_visualPaletteHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws