/** * 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 Glue { namespace Model { /** *

Specifies a field to sort by and a sort order.

See Also:

AWS * API Reference

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

The name of the field on which to sort.

*/ inline const Aws::String& GetFieldName() const{ return m_fieldName; } /** *

The name of the field on which to sort.

*/ inline bool FieldNameHasBeenSet() const { return m_fieldNameHasBeenSet; } /** *

The name of the field on which to sort.

*/ inline void SetFieldName(const Aws::String& value) { m_fieldNameHasBeenSet = true; m_fieldName = value; } /** *

The name of the field on which to sort.

*/ inline void SetFieldName(Aws::String&& value) { m_fieldNameHasBeenSet = true; m_fieldName = std::move(value); } /** *

The name of the field on which to sort.

*/ inline void SetFieldName(const char* value) { m_fieldNameHasBeenSet = true; m_fieldName.assign(value); } /** *

The name of the field on which to sort.

*/ inline SortCriterion& WithFieldName(const Aws::String& value) { SetFieldName(value); return *this;} /** *

The name of the field on which to sort.

*/ inline SortCriterion& WithFieldName(Aws::String&& value) { SetFieldName(std::move(value)); return *this;} /** *

The name of the field on which to sort.

*/ inline SortCriterion& WithFieldName(const char* value) { SetFieldName(value); return *this;} /** *

An ascending or descending sort.

*/ inline const Sort& GetSort() const{ return m_sort; } /** *

An ascending or descending sort.

*/ inline bool SortHasBeenSet() const { return m_sortHasBeenSet; } /** *

An ascending or descending sort.

*/ inline void SetSort(const Sort& value) { m_sortHasBeenSet = true; m_sort = value; } /** *

An ascending or descending sort.

*/ inline void SetSort(Sort&& value) { m_sortHasBeenSet = true; m_sort = std::move(value); } /** *

An ascending or descending sort.

*/ inline SortCriterion& WithSort(const Sort& value) { SetSort(value); return *this;} /** *

An ascending or descending sort.

*/ inline SortCriterion& WithSort(Sort&& value) { SetSort(std::move(value)); return *this;} private: Aws::String m_fieldName; bool m_fieldNameHasBeenSet = false; Sort m_sort; bool m_sortHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws