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

The total options for a pivot table visual.

See Also:

AWS * API Reference

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

The row subtotal options.

*/ inline const SubtotalOptions& GetRowSubtotalOptions() const{ return m_rowSubtotalOptions; } /** *

The row subtotal options.

*/ inline bool RowSubtotalOptionsHasBeenSet() const { return m_rowSubtotalOptionsHasBeenSet; } /** *

The row subtotal options.

*/ inline void SetRowSubtotalOptions(const SubtotalOptions& value) { m_rowSubtotalOptionsHasBeenSet = true; m_rowSubtotalOptions = value; } /** *

The row subtotal options.

*/ inline void SetRowSubtotalOptions(SubtotalOptions&& value) { m_rowSubtotalOptionsHasBeenSet = true; m_rowSubtotalOptions = std::move(value); } /** *

The row subtotal options.

*/ inline PivotTableTotalOptions& WithRowSubtotalOptions(const SubtotalOptions& value) { SetRowSubtotalOptions(value); return *this;} /** *

The row subtotal options.

*/ inline PivotTableTotalOptions& WithRowSubtotalOptions(SubtotalOptions&& value) { SetRowSubtotalOptions(std::move(value)); return *this;} /** *

The column subtotal options.

*/ inline const SubtotalOptions& GetColumnSubtotalOptions() const{ return m_columnSubtotalOptions; } /** *

The column subtotal options.

*/ inline bool ColumnSubtotalOptionsHasBeenSet() const { return m_columnSubtotalOptionsHasBeenSet; } /** *

The column subtotal options.

*/ inline void SetColumnSubtotalOptions(const SubtotalOptions& value) { m_columnSubtotalOptionsHasBeenSet = true; m_columnSubtotalOptions = value; } /** *

The column subtotal options.

*/ inline void SetColumnSubtotalOptions(SubtotalOptions&& value) { m_columnSubtotalOptionsHasBeenSet = true; m_columnSubtotalOptions = std::move(value); } /** *

The column subtotal options.

*/ inline PivotTableTotalOptions& WithColumnSubtotalOptions(const SubtotalOptions& value) { SetColumnSubtotalOptions(value); return *this;} /** *

The column subtotal options.

*/ inline PivotTableTotalOptions& WithColumnSubtotalOptions(SubtotalOptions&& value) { SetColumnSubtotalOptions(std::move(value)); return *this;} /** *

The row total options.

*/ inline const PivotTotalOptions& GetRowTotalOptions() const{ return m_rowTotalOptions; } /** *

The row total options.

*/ inline bool RowTotalOptionsHasBeenSet() const { return m_rowTotalOptionsHasBeenSet; } /** *

The row total options.

*/ inline void SetRowTotalOptions(const PivotTotalOptions& value) { m_rowTotalOptionsHasBeenSet = true; m_rowTotalOptions = value; } /** *

The row total options.

*/ inline void SetRowTotalOptions(PivotTotalOptions&& value) { m_rowTotalOptionsHasBeenSet = true; m_rowTotalOptions = std::move(value); } /** *

The row total options.

*/ inline PivotTableTotalOptions& WithRowTotalOptions(const PivotTotalOptions& value) { SetRowTotalOptions(value); return *this;} /** *

The row total options.

*/ inline PivotTableTotalOptions& WithRowTotalOptions(PivotTotalOptions&& value) { SetRowTotalOptions(std::move(value)); return *this;} /** *

The column total options.

*/ inline const PivotTotalOptions& GetColumnTotalOptions() const{ return m_columnTotalOptions; } /** *

The column total options.

*/ inline bool ColumnTotalOptionsHasBeenSet() const { return m_columnTotalOptionsHasBeenSet; } /** *

The column total options.

*/ inline void SetColumnTotalOptions(const PivotTotalOptions& value) { m_columnTotalOptionsHasBeenSet = true; m_columnTotalOptions = value; } /** *

The column total options.

*/ inline void SetColumnTotalOptions(PivotTotalOptions&& value) { m_columnTotalOptionsHasBeenSet = true; m_columnTotalOptions = std::move(value); } /** *

The column total options.

*/ inline PivotTableTotalOptions& WithColumnTotalOptions(const PivotTotalOptions& value) { SetColumnTotalOptions(value); return *this;} /** *

The column total options.

*/ inline PivotTableTotalOptions& WithColumnTotalOptions(PivotTotalOptions&& value) { SetColumnTotalOptions(std::move(value)); return *this;} private: SubtotalOptions m_rowSubtotalOptions; bool m_rowSubtotalOptionsHasBeenSet = false; SubtotalOptions m_columnSubtotalOptions; bool m_columnSubtotalOptionsHasBeenSet = false; PivotTotalOptions m_rowTotalOptions; bool m_rowTotalOptionsHasBeenSet = false; PivotTotalOptions m_columnTotalOptions; bool m_columnTotalOptionsHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws