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

See * Also:

AWS * API Reference

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

The field ID for the field sort options.

*/ inline const Aws::String& GetFieldId() const{ return m_fieldId; } /** *

The field ID for the field sort options.

*/ inline bool FieldIdHasBeenSet() const { return m_fieldIdHasBeenSet; } /** *

The field ID for the field sort options.

*/ inline void SetFieldId(const Aws::String& value) { m_fieldIdHasBeenSet = true; m_fieldId = value; } /** *

The field ID for the field sort options.

*/ inline void SetFieldId(Aws::String&& value) { m_fieldIdHasBeenSet = true; m_fieldId = std::move(value); } /** *

The field ID for the field sort options.

*/ inline void SetFieldId(const char* value) { m_fieldIdHasBeenSet = true; m_fieldId.assign(value); } /** *

The field ID for the field sort options.

*/ inline PivotFieldSortOptions& WithFieldId(const Aws::String& value) { SetFieldId(value); return *this;} /** *

The field ID for the field sort options.

*/ inline PivotFieldSortOptions& WithFieldId(Aws::String&& value) { SetFieldId(std::move(value)); return *this;} /** *

The field ID for the field sort options.

*/ inline PivotFieldSortOptions& WithFieldId(const char* value) { SetFieldId(value); return *this;} /** *

The sort by field for the field sort options.

*/ inline const PivotTableSortBy& GetSortBy() const{ return m_sortBy; } /** *

The sort by field for the field sort options.

*/ inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; } /** *

The sort by field for the field sort options.

*/ inline void SetSortBy(const PivotTableSortBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; } /** *

The sort by field for the field sort options.

*/ inline void SetSortBy(PivotTableSortBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); } /** *

The sort by field for the field sort options.

*/ inline PivotFieldSortOptions& WithSortBy(const PivotTableSortBy& value) { SetSortBy(value); return *this;} /** *

The sort by field for the field sort options.

*/ inline PivotFieldSortOptions& WithSortBy(PivotTableSortBy&& value) { SetSortBy(std::move(value)); return *this;} private: Aws::String m_fieldId; bool m_fieldIdHasBeenSet = false; PivotTableSortBy m_sortBy; bool m_sortByHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws