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

The sort configuration for a TableVisual.

See * Also:

AWS * API Reference

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

The field sort options for rows in the table.

*/ inline const Aws::Vector& GetRowSort() const{ return m_rowSort; } /** *

The field sort options for rows in the table.

*/ inline bool RowSortHasBeenSet() const { return m_rowSortHasBeenSet; } /** *

The field sort options for rows in the table.

*/ inline void SetRowSort(const Aws::Vector& value) { m_rowSortHasBeenSet = true; m_rowSort = value; } /** *

The field sort options for rows in the table.

*/ inline void SetRowSort(Aws::Vector&& value) { m_rowSortHasBeenSet = true; m_rowSort = std::move(value); } /** *

The field sort options for rows in the table.

*/ inline TableSortConfiguration& WithRowSort(const Aws::Vector& value) { SetRowSort(value); return *this;} /** *

The field sort options for rows in the table.

*/ inline TableSortConfiguration& WithRowSort(Aws::Vector&& value) { SetRowSort(std::move(value)); return *this;} /** *

The field sort options for rows in the table.

*/ inline TableSortConfiguration& AddRowSort(const FieldSortOptions& value) { m_rowSortHasBeenSet = true; m_rowSort.push_back(value); return *this; } /** *

The field sort options for rows in the table.

*/ inline TableSortConfiguration& AddRowSort(FieldSortOptions&& value) { m_rowSortHasBeenSet = true; m_rowSort.push_back(std::move(value)); return *this; } /** *

The pagination configuration (page size, page number) for the table.

*/ inline const PaginationConfiguration& GetPaginationConfiguration() const{ return m_paginationConfiguration; } /** *

The pagination configuration (page size, page number) for the table.

*/ inline bool PaginationConfigurationHasBeenSet() const { return m_paginationConfigurationHasBeenSet; } /** *

The pagination configuration (page size, page number) for the table.

*/ inline void SetPaginationConfiguration(const PaginationConfiguration& value) { m_paginationConfigurationHasBeenSet = true; m_paginationConfiguration = value; } /** *

The pagination configuration (page size, page number) for the table.

*/ inline void SetPaginationConfiguration(PaginationConfiguration&& value) { m_paginationConfigurationHasBeenSet = true; m_paginationConfiguration = std::move(value); } /** *

The pagination configuration (page size, page number) for the table.

*/ inline TableSortConfiguration& WithPaginationConfiguration(const PaginationConfiguration& value) { SetPaginationConfiguration(value); return *this;} /** *

The pagination configuration (page size, page number) for the table.

*/ inline TableSortConfiguration& WithPaginationConfiguration(PaginationConfiguration&& value) { SetPaginationConfiguration(std::move(value)); return *this;} private: Aws::Vector m_rowSort; bool m_rowSortHasBeenSet = false; PaginationConfiguration m_paginationConfiguration; bool m_paginationConfigurationHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws