/** * 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 field in a field well.

See Also:

* AWS * API Reference

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

The sort configuration target field.

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

The sort configuration target field.

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

The sort configuration target field.

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

The sort configuration target field.

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

The sort configuration target field.

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

The sort configuration target field.

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

The sort configuration target field.

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

The sort configuration target field.

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

The sort direction. Choose one of the following options:

  • * ASC: Ascending

  • DESC: Descending

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

The sort direction. Choose one of the following options:

  • * ASC: Ascending

  • DESC: Descending

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

The sort direction. Choose one of the following options:

  • * ASC: Ascending

  • DESC: Descending

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

The sort direction. Choose one of the following options:

  • * ASC: Ascending

  • DESC: Descending

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

The sort direction. Choose one of the following options:

  • * ASC: Ascending

  • DESC: Descending

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

The sort direction. Choose one of the following options:

  • * ASC: Ascending

  • DESC: Descending

    *
*/ inline FieldSort& WithDirection(SortDirection&& value) { SetDirection(std::move(value)); return *this;} private: Aws::String m_fieldId; bool m_fieldIdHasBeenSet = false; SortDirection m_direction; bool m_directionHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws