/** * 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 { /** *

Allows data paths to be sorted by a specific data value.

See * Also:

AWS * API Reference

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

Determines the sort direction.

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

Determines the sort direction.

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

Determines the sort direction.

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

Determines the sort direction.

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

Determines the sort direction.

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

Determines the sort direction.

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

The list of data paths that need to be sorted.

*/ inline const Aws::Vector& GetSortPaths() const{ return m_sortPaths; } /** *

The list of data paths that need to be sorted.

*/ inline bool SortPathsHasBeenSet() const { return m_sortPathsHasBeenSet; } /** *

The list of data paths that need to be sorted.

*/ inline void SetSortPaths(const Aws::Vector& value) { m_sortPathsHasBeenSet = true; m_sortPaths = value; } /** *

The list of data paths that need to be sorted.

*/ inline void SetSortPaths(Aws::Vector&& value) { m_sortPathsHasBeenSet = true; m_sortPaths = std::move(value); } /** *

The list of data paths that need to be sorted.

*/ inline DataPathSort& WithSortPaths(const Aws::Vector& value) { SetSortPaths(value); return *this;} /** *

The list of data paths that need to be sorted.

*/ inline DataPathSort& WithSortPaths(Aws::Vector&& value) { SetSortPaths(std::move(value)); return *this;} /** *

The list of data paths that need to be sorted.

*/ inline DataPathSort& AddSortPaths(const DataPathValue& value) { m_sortPathsHasBeenSet = true; m_sortPaths.push_back(value); return *this; } /** *

The list of data paths that need to be sorted.

*/ inline DataPathSort& AddSortPaths(DataPathValue&& value) { m_sortPathsHasBeenSet = true; m_sortPaths.push_back(std::move(value)); return *this; } private: SortDirection m_direction; bool m_directionHasBeenSet = false; Aws::Vector m_sortPaths; bool m_sortPathsHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws