/** * 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 by field for the field sort options.

See Also:

AWS * API Reference

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

The field sort (field id, direction) for the pivot table sort by options.

*/ inline const FieldSort& GetField() const{ return m_field; } /** *

The field sort (field id, direction) for the pivot table sort by options.

*/ inline bool FieldHasBeenSet() const { return m_fieldHasBeenSet; } /** *

The field sort (field id, direction) for the pivot table sort by options.

*/ inline void SetField(const FieldSort& value) { m_fieldHasBeenSet = true; m_field = value; } /** *

The field sort (field id, direction) for the pivot table sort by options.

*/ inline void SetField(FieldSort&& value) { m_fieldHasBeenSet = true; m_field = std::move(value); } /** *

The field sort (field id, direction) for the pivot table sort by options.

*/ inline PivotTableSortBy& WithField(const FieldSort& value) { SetField(value); return *this;} /** *

The field sort (field id, direction) for the pivot table sort by options.

*/ inline PivotTableSortBy& WithField(FieldSort&& value) { SetField(std::move(value)); return *this;} /** *

The column sort (field id, direction) for the pivot table sort by * options.

*/ inline const ColumnSort& GetColumn() const{ return m_column; } /** *

The column sort (field id, direction) for the pivot table sort by * options.

*/ inline bool ColumnHasBeenSet() const { return m_columnHasBeenSet; } /** *

The column sort (field id, direction) for the pivot table sort by * options.

*/ inline void SetColumn(const ColumnSort& value) { m_columnHasBeenSet = true; m_column = value; } /** *

The column sort (field id, direction) for the pivot table sort by * options.

*/ inline void SetColumn(ColumnSort&& value) { m_columnHasBeenSet = true; m_column = std::move(value); } /** *

The column sort (field id, direction) for the pivot table sort by * options.

*/ inline PivotTableSortBy& WithColumn(const ColumnSort& value) { SetColumn(value); return *this;} /** *

The column sort (field id, direction) for the pivot table sort by * options.

*/ inline PivotTableSortBy& WithColumn(ColumnSort&& value) { SetColumn(std::move(value)); return *this;} /** *

The data path sort (data path value, direction) for the pivot table sort by * options.

*/ inline const DataPathSort& GetDataPath() const{ return m_dataPath; } /** *

The data path sort (data path value, direction) for the pivot table sort by * options.

*/ inline bool DataPathHasBeenSet() const { return m_dataPathHasBeenSet; } /** *

The data path sort (data path value, direction) for the pivot table sort by * options.

*/ inline void SetDataPath(const DataPathSort& value) { m_dataPathHasBeenSet = true; m_dataPath = value; } /** *

The data path sort (data path value, direction) for the pivot table sort by * options.

*/ inline void SetDataPath(DataPathSort&& value) { m_dataPathHasBeenSet = true; m_dataPath = std::move(value); } /** *

The data path sort (data path value, direction) for the pivot table sort by * options.

*/ inline PivotTableSortBy& WithDataPath(const DataPathSort& value) { SetDataPath(value); return *this;} /** *

The data path sort (data path value, direction) for the pivot table sort by * options.

*/ inline PivotTableSortBy& WithDataPath(DataPathSort&& value) { SetDataPath(std::move(value)); return *this;} private: FieldSort m_field; bool m_fieldHasBeenSet = false; ColumnSort m_column; bool m_columnHasBeenSet = false; DataPathSort m_dataPath; bool m_dataPathHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws