/** * 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 field sort options in a chart configuration.

See Also:

* AWS * API Reference

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

The sort configuration for a field in a field well.

*/ inline const FieldSort& GetFieldSort() const{ return m_fieldSort; } /** *

The sort configuration for a field in a field well.

*/ inline bool FieldSortHasBeenSet() const { return m_fieldSortHasBeenSet; } /** *

The sort configuration for a field in a field well.

*/ inline void SetFieldSort(const FieldSort& value) { m_fieldSortHasBeenSet = true; m_fieldSort = value; } /** *

The sort configuration for a field in a field well.

*/ inline void SetFieldSort(FieldSort&& value) { m_fieldSortHasBeenSet = true; m_fieldSort = std::move(value); } /** *

The sort configuration for a field in a field well.

*/ inline FieldSortOptions& WithFieldSort(const FieldSort& value) { SetFieldSort(value); return *this;} /** *

The sort configuration for a field in a field well.

*/ inline FieldSortOptions& WithFieldSort(FieldSort&& value) { SetFieldSort(std::move(value)); return *this;} /** *

The sort configuration for a column that is not used in a field well.

*/ inline const ColumnSort& GetColumnSort() const{ return m_columnSort; } /** *

The sort configuration for a column that is not used in a field well.

*/ inline bool ColumnSortHasBeenSet() const { return m_columnSortHasBeenSet; } /** *

The sort configuration for a column that is not used in a field well.

*/ inline void SetColumnSort(const ColumnSort& value) { m_columnSortHasBeenSet = true; m_columnSort = value; } /** *

The sort configuration for a column that is not used in a field well.

*/ inline void SetColumnSort(ColumnSort&& value) { m_columnSortHasBeenSet = true; m_columnSort = std::move(value); } /** *

The sort configuration for a column that is not used in a field well.

*/ inline FieldSortOptions& WithColumnSort(const ColumnSort& value) { SetColumnSort(value); return *this;} /** *

The sort configuration for a column that is not used in a field well.

*/ inline FieldSortOptions& WithColumnSort(ColumnSort&& value) { SetColumnSort(std::move(value)); return *this;} private: FieldSort m_fieldSort; bool m_fieldSortHasBeenSet = false; ColumnSort m_columnSort; bool m_columnSortHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws