/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 table options for a pivot table visual.

See Also:

AWS * API Reference

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

The metric placement (row, column) options.

*/ inline const PivotTableMetricPlacement& GetMetricPlacement() const{ return m_metricPlacement; } /** *

The metric placement (row, column) options.

*/ inline bool MetricPlacementHasBeenSet() const { return m_metricPlacementHasBeenSet; } /** *

The metric placement (row, column) options.

*/ inline void SetMetricPlacement(const PivotTableMetricPlacement& value) { m_metricPlacementHasBeenSet = true; m_metricPlacement = value; } /** *

The metric placement (row, column) options.

*/ inline void SetMetricPlacement(PivotTableMetricPlacement&& value) { m_metricPlacementHasBeenSet = true; m_metricPlacement = std::move(value); } /** *

The metric placement (row, column) options.

*/ inline PivotTableOptions& WithMetricPlacement(const PivotTableMetricPlacement& value) { SetMetricPlacement(value); return *this;} /** *

The metric placement (row, column) options.

*/ inline PivotTableOptions& WithMetricPlacement(PivotTableMetricPlacement&& value) { SetMetricPlacement(std::move(value)); return *this;} /** *

The visibility of the single metric options.

*/ inline const Visibility& GetSingleMetricVisibility() const{ return m_singleMetricVisibility; } /** *

The visibility of the single metric options.

*/ inline bool SingleMetricVisibilityHasBeenSet() const { return m_singleMetricVisibilityHasBeenSet; } /** *

The visibility of the single metric options.

*/ inline void SetSingleMetricVisibility(const Visibility& value) { m_singleMetricVisibilityHasBeenSet = true; m_singleMetricVisibility = value; } /** *

The visibility of the single metric options.

*/ inline void SetSingleMetricVisibility(Visibility&& value) { m_singleMetricVisibilityHasBeenSet = true; m_singleMetricVisibility = std::move(value); } /** *

The visibility of the single metric options.

*/ inline PivotTableOptions& WithSingleMetricVisibility(const Visibility& value) { SetSingleMetricVisibility(value); return *this;} /** *

The visibility of the single metric options.

*/ inline PivotTableOptions& WithSingleMetricVisibility(Visibility&& value) { SetSingleMetricVisibility(std::move(value)); return *this;} /** *

The visibility of the column names.

*/ inline const Visibility& GetColumnNamesVisibility() const{ return m_columnNamesVisibility; } /** *

The visibility of the column names.

*/ inline bool ColumnNamesVisibilityHasBeenSet() const { return m_columnNamesVisibilityHasBeenSet; } /** *

The visibility of the column names.

*/ inline void SetColumnNamesVisibility(const Visibility& value) { m_columnNamesVisibilityHasBeenSet = true; m_columnNamesVisibility = value; } /** *

The visibility of the column names.

*/ inline void SetColumnNamesVisibility(Visibility&& value) { m_columnNamesVisibilityHasBeenSet = true; m_columnNamesVisibility = std::move(value); } /** *

The visibility of the column names.

*/ inline PivotTableOptions& WithColumnNamesVisibility(const Visibility& value) { SetColumnNamesVisibility(value); return *this;} /** *

The visibility of the column names.

*/ inline PivotTableOptions& WithColumnNamesVisibility(Visibility&& value) { SetColumnNamesVisibility(std::move(value)); return *this;} /** *

Determines the visibility of the pivot table.

*/ inline const Visibility& GetToggleButtonsVisibility() const{ return m_toggleButtonsVisibility; } /** *

Determines the visibility of the pivot table.

*/ inline bool ToggleButtonsVisibilityHasBeenSet() const { return m_toggleButtonsVisibilityHasBeenSet; } /** *

Determines the visibility of the pivot table.

*/ inline void SetToggleButtonsVisibility(const Visibility& value) { m_toggleButtonsVisibilityHasBeenSet = true; m_toggleButtonsVisibility = value; } /** *

Determines the visibility of the pivot table.

*/ inline void SetToggleButtonsVisibility(Visibility&& value) { m_toggleButtonsVisibilityHasBeenSet = true; m_toggleButtonsVisibility = std::move(value); } /** *

Determines the visibility of the pivot table.

*/ inline PivotTableOptions& WithToggleButtonsVisibility(const Visibility& value) { SetToggleButtonsVisibility(value); return *this;} /** *

Determines the visibility of the pivot table.

*/ inline PivotTableOptions& WithToggleButtonsVisibility(Visibility&& value) { SetToggleButtonsVisibility(std::move(value)); return *this;} /** *

The table cell style of the column header.

*/ inline const TableCellStyle& GetColumnHeaderStyle() const{ return m_columnHeaderStyle; } /** *

The table cell style of the column header.

*/ inline bool ColumnHeaderStyleHasBeenSet() const { return m_columnHeaderStyleHasBeenSet; } /** *

The table cell style of the column header.

*/ inline void SetColumnHeaderStyle(const TableCellStyle& value) { m_columnHeaderStyleHasBeenSet = true; m_columnHeaderStyle = value; } /** *

The table cell style of the column header.

*/ inline void SetColumnHeaderStyle(TableCellStyle&& value) { m_columnHeaderStyleHasBeenSet = true; m_columnHeaderStyle = std::move(value); } /** *

The table cell style of the column header.

*/ inline PivotTableOptions& WithColumnHeaderStyle(const TableCellStyle& value) { SetColumnHeaderStyle(value); return *this;} /** *

The table cell style of the column header.

*/ inline PivotTableOptions& WithColumnHeaderStyle(TableCellStyle&& value) { SetColumnHeaderStyle(std::move(value)); return *this;} /** *

The table cell style of the row headers.

*/ inline const TableCellStyle& GetRowHeaderStyle() const{ return m_rowHeaderStyle; } /** *

The table cell style of the row headers.

*/ inline bool RowHeaderStyleHasBeenSet() const { return m_rowHeaderStyleHasBeenSet; } /** *

The table cell style of the row headers.

*/ inline void SetRowHeaderStyle(const TableCellStyle& value) { m_rowHeaderStyleHasBeenSet = true; m_rowHeaderStyle = value; } /** *

The table cell style of the row headers.

*/ inline void SetRowHeaderStyle(TableCellStyle&& value) { m_rowHeaderStyleHasBeenSet = true; m_rowHeaderStyle = std::move(value); } /** *

The table cell style of the row headers.

*/ inline PivotTableOptions& WithRowHeaderStyle(const TableCellStyle& value) { SetRowHeaderStyle(value); return *this;} /** *

The table cell style of the row headers.

*/ inline PivotTableOptions& WithRowHeaderStyle(TableCellStyle&& value) { SetRowHeaderStyle(std::move(value)); return *this;} /** *

The table cell style of cells.

*/ inline const TableCellStyle& GetCellStyle() const{ return m_cellStyle; } /** *

The table cell style of cells.

*/ inline bool CellStyleHasBeenSet() const { return m_cellStyleHasBeenSet; } /** *

The table cell style of cells.

*/ inline void SetCellStyle(const TableCellStyle& value) { m_cellStyleHasBeenSet = true; m_cellStyle = value; } /** *

The table cell style of cells.

*/ inline void SetCellStyle(TableCellStyle&& value) { m_cellStyleHasBeenSet = true; m_cellStyle = std::move(value); } /** *

The table cell style of cells.

*/ inline PivotTableOptions& WithCellStyle(const TableCellStyle& value) { SetCellStyle(value); return *this;} /** *

The table cell style of cells.

*/ inline PivotTableOptions& WithCellStyle(TableCellStyle&& value) { SetCellStyle(std::move(value)); return *this;} /** *

The table cell style of row field names.

*/ inline const TableCellStyle& GetRowFieldNamesStyle() const{ return m_rowFieldNamesStyle; } /** *

The table cell style of row field names.

*/ inline bool RowFieldNamesStyleHasBeenSet() const { return m_rowFieldNamesStyleHasBeenSet; } /** *

The table cell style of row field names.

*/ inline void SetRowFieldNamesStyle(const TableCellStyle& value) { m_rowFieldNamesStyleHasBeenSet = true; m_rowFieldNamesStyle = value; } /** *

The table cell style of row field names.

*/ inline void SetRowFieldNamesStyle(TableCellStyle&& value) { m_rowFieldNamesStyleHasBeenSet = true; m_rowFieldNamesStyle = std::move(value); } /** *

The table cell style of row field names.

*/ inline PivotTableOptions& WithRowFieldNamesStyle(const TableCellStyle& value) { SetRowFieldNamesStyle(value); return *this;} /** *

The table cell style of row field names.

*/ inline PivotTableOptions& WithRowFieldNamesStyle(TableCellStyle&& value) { SetRowFieldNamesStyle(std::move(value)); return *this;} /** *

The row alternate color options (widget status, row alternate colors).

*/ inline const RowAlternateColorOptions& GetRowAlternateColorOptions() const{ return m_rowAlternateColorOptions; } /** *

The row alternate color options (widget status, row alternate colors).

*/ inline bool RowAlternateColorOptionsHasBeenSet() const { return m_rowAlternateColorOptionsHasBeenSet; } /** *

The row alternate color options (widget status, row alternate colors).

*/ inline void SetRowAlternateColorOptions(const RowAlternateColorOptions& value) { m_rowAlternateColorOptionsHasBeenSet = true; m_rowAlternateColorOptions = value; } /** *

The row alternate color options (widget status, row alternate colors).

*/ inline void SetRowAlternateColorOptions(RowAlternateColorOptions&& value) { m_rowAlternateColorOptionsHasBeenSet = true; m_rowAlternateColorOptions = std::move(value); } /** *

The row alternate color options (widget status, row alternate colors).

*/ inline PivotTableOptions& WithRowAlternateColorOptions(const RowAlternateColorOptions& value) { SetRowAlternateColorOptions(value); return *this;} /** *

The row alternate color options (widget status, row alternate colors).

*/ inline PivotTableOptions& WithRowAlternateColorOptions(RowAlternateColorOptions&& value) { SetRowAlternateColorOptions(std::move(value)); return *this;} /** *

The visibility setting of a pivot table's collapsed row dimension fields. If * the value of this structure is HIDDEN, all collapsed columns in a * pivot table are automatically hidden. The default value is * VISIBLE.

*/ inline const Visibility& GetCollapsedRowDimensionsVisibility() const{ return m_collapsedRowDimensionsVisibility; } /** *

The visibility setting of a pivot table's collapsed row dimension fields. If * the value of this structure is HIDDEN, all collapsed columns in a * pivot table are automatically hidden. The default value is * VISIBLE.

*/ inline bool CollapsedRowDimensionsVisibilityHasBeenSet() const { return m_collapsedRowDimensionsVisibilityHasBeenSet; } /** *

The visibility setting of a pivot table's collapsed row dimension fields. If * the value of this structure is HIDDEN, all collapsed columns in a * pivot table are automatically hidden. The default value is * VISIBLE.

*/ inline void SetCollapsedRowDimensionsVisibility(const Visibility& value) { m_collapsedRowDimensionsVisibilityHasBeenSet = true; m_collapsedRowDimensionsVisibility = value; } /** *

The visibility setting of a pivot table's collapsed row dimension fields. If * the value of this structure is HIDDEN, all collapsed columns in a * pivot table are automatically hidden. The default value is * VISIBLE.

*/ inline void SetCollapsedRowDimensionsVisibility(Visibility&& value) { m_collapsedRowDimensionsVisibilityHasBeenSet = true; m_collapsedRowDimensionsVisibility = std::move(value); } /** *

The visibility setting of a pivot table's collapsed row dimension fields. If * the value of this structure is HIDDEN, all collapsed columns in a * pivot table are automatically hidden. The default value is * VISIBLE.

*/ inline PivotTableOptions& WithCollapsedRowDimensionsVisibility(const Visibility& value) { SetCollapsedRowDimensionsVisibility(value); return *this;} /** *

The visibility setting of a pivot table's collapsed row dimension fields. If * the value of this structure is HIDDEN, all collapsed columns in a * pivot table are automatically hidden. The default value is * VISIBLE.

*/ inline PivotTableOptions& WithCollapsedRowDimensionsVisibility(Visibility&& value) { SetCollapsedRowDimensionsVisibility(std::move(value)); return *this;} private: PivotTableMetricPlacement m_metricPlacement; bool m_metricPlacementHasBeenSet = false; Visibility m_singleMetricVisibility; bool m_singleMetricVisibilityHasBeenSet = false; Visibility m_columnNamesVisibility; bool m_columnNamesVisibilityHasBeenSet = false; Visibility m_toggleButtonsVisibility; bool m_toggleButtonsVisibilityHasBeenSet = false; TableCellStyle m_columnHeaderStyle; bool m_columnHeaderStyleHasBeenSet = false; TableCellStyle m_rowHeaderStyle; bool m_rowHeaderStyleHasBeenSet = false; TableCellStyle m_cellStyle; bool m_cellStyleHasBeenSet = false; TableCellStyle m_rowFieldNamesStyle; bool m_rowFieldNamesStyleHasBeenSet = false; RowAlternateColorOptions m_rowAlternateColorOptions; bool m_rowAlternateColorOptionsHasBeenSet = false; Visibility m_collapsedRowDimensionsVisibility; bool m_collapsedRowDimensionsVisibilityHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws