/** * 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 column that is not used in a field * well.

See Also:

AWS * API Reference

*/ class ColumnSort { public: AWS_QUICKSIGHT_API ColumnSort(); AWS_QUICKSIGHT_API ColumnSort(Aws::Utils::Json::JsonView jsonValue); AWS_QUICKSIGHT_API ColumnSort& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const; inline const ColumnIdentifier& GetSortBy() const{ return m_sortBy; } inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; } inline void SetSortBy(const ColumnIdentifier& value) { m_sortByHasBeenSet = true; m_sortBy = value; } inline void SetSortBy(ColumnIdentifier&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); } inline ColumnSort& WithSortBy(const ColumnIdentifier& value) { SetSortBy(value); return *this;} inline ColumnSort& WithSortBy(ColumnIdentifier&& value) { SetSortBy(std::move(value)); return *this;} /** *

The sort direction.

*/ inline const SortDirection& GetDirection() const{ return m_direction; } /** *

The sort direction.

*/ inline bool DirectionHasBeenSet() const { return m_directionHasBeenSet; } /** *

The sort direction.

*/ inline void SetDirection(const SortDirection& value) { m_directionHasBeenSet = true; m_direction = value; } /** *

The sort direction.

*/ inline void SetDirection(SortDirection&& value) { m_directionHasBeenSet = true; m_direction = std::move(value); } /** *

The sort direction.

*/ inline ColumnSort& WithDirection(const SortDirection& value) { SetDirection(value); return *this;} /** *

The sort direction.

*/ inline ColumnSort& WithDirection(SortDirection&& value) { SetDirection(std::move(value)); return *this;} /** *

The aggregation function that is defined in the column sort.

*/ inline const AggregationFunction& GetAggregationFunction() const{ return m_aggregationFunction; } /** *

The aggregation function that is defined in the column sort.

*/ inline bool AggregationFunctionHasBeenSet() const { return m_aggregationFunctionHasBeenSet; } /** *

The aggregation function that is defined in the column sort.

*/ inline void SetAggregationFunction(const AggregationFunction& value) { m_aggregationFunctionHasBeenSet = true; m_aggregationFunction = value; } /** *

The aggregation function that is defined in the column sort.

*/ inline void SetAggregationFunction(AggregationFunction&& value) { m_aggregationFunctionHasBeenSet = true; m_aggregationFunction = std::move(value); } /** *

The aggregation function that is defined in the column sort.

*/ inline ColumnSort& WithAggregationFunction(const AggregationFunction& value) { SetAggregationFunction(value); return *this;} /** *

The aggregation function that is defined in the column sort.

*/ inline ColumnSort& WithAggregationFunction(AggregationFunction&& value) { SetAggregationFunction(std::move(value)); return *this;} private: ColumnIdentifier m_sortBy; bool m_sortByHasBeenSet = false; SortDirection m_direction; bool m_directionHasBeenSet = false; AggregationFunction m_aggregationFunction; bool m_aggregationFunctionHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws