/** * 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 sort configuration for a PivotTableVisual.

See * Also:

AWS * API Reference

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

The field sort options for a pivot table sort configuration.

*/ inline const Aws::Vector& GetFieldSortOptions() const{ return m_fieldSortOptions; } /** *

The field sort options for a pivot table sort configuration.

*/ inline bool FieldSortOptionsHasBeenSet() const { return m_fieldSortOptionsHasBeenSet; } /** *

The field sort options for a pivot table sort configuration.

*/ inline void SetFieldSortOptions(const Aws::Vector& value) { m_fieldSortOptionsHasBeenSet = true; m_fieldSortOptions = value; } /** *

The field sort options for a pivot table sort configuration.

*/ inline void SetFieldSortOptions(Aws::Vector&& value) { m_fieldSortOptionsHasBeenSet = true; m_fieldSortOptions = std::move(value); } /** *

The field sort options for a pivot table sort configuration.

*/ inline PivotTableSortConfiguration& WithFieldSortOptions(const Aws::Vector& value) { SetFieldSortOptions(value); return *this;} /** *

The field sort options for a pivot table sort configuration.

*/ inline PivotTableSortConfiguration& WithFieldSortOptions(Aws::Vector&& value) { SetFieldSortOptions(std::move(value)); return *this;} /** *

The field sort options for a pivot table sort configuration.

*/ inline PivotTableSortConfiguration& AddFieldSortOptions(const PivotFieldSortOptions& value) { m_fieldSortOptionsHasBeenSet = true; m_fieldSortOptions.push_back(value); return *this; } /** *

The field sort options for a pivot table sort configuration.

*/ inline PivotTableSortConfiguration& AddFieldSortOptions(PivotFieldSortOptions&& value) { m_fieldSortOptionsHasBeenSet = true; m_fieldSortOptions.push_back(std::move(value)); return *this; } private: Aws::Vector m_fieldSortOptions; bool m_fieldSortOptionsHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws