/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Glue { namespace Model { /** *

Specifies the sort order of a sorted column.

See Also:

AWS API * Reference

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

The name of the column.

*/ inline const Aws::String& GetColumn() const{ return m_column; } /** *

The name of the column.

*/ inline bool ColumnHasBeenSet() const { return m_columnHasBeenSet; } /** *

The name of the column.

*/ inline void SetColumn(const Aws::String& value) { m_columnHasBeenSet = true; m_column = value; } /** *

The name of the column.

*/ inline void SetColumn(Aws::String&& value) { m_columnHasBeenSet = true; m_column = std::move(value); } /** *

The name of the column.

*/ inline void SetColumn(const char* value) { m_columnHasBeenSet = true; m_column.assign(value); } /** *

The name of the column.

*/ inline Order& WithColumn(const Aws::String& value) { SetColumn(value); return *this;} /** *

The name of the column.

*/ inline Order& WithColumn(Aws::String&& value) { SetColumn(std::move(value)); return *this;} /** *

The name of the column.

*/ inline Order& WithColumn(const char* value) { SetColumn(value); return *this;} /** *

Indicates that the column is sorted in ascending order (== 1), * or in descending order (==0).

*/ inline int GetSortOrder() const{ return m_sortOrder; } /** *

Indicates that the column is sorted in ascending order (== 1), * or in descending order (==0).

*/ inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; } /** *

Indicates that the column is sorted in ascending order (== 1), * or in descending order (==0).

*/ inline void SetSortOrder(int value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; } /** *

Indicates that the column is sorted in ascending order (== 1), * or in descending order (==0).

*/ inline Order& WithSortOrder(int value) { SetSortOrder(value); return *this;} private: Aws::String m_column; bool m_columnHasBeenSet = false; int m_sortOrder; bool m_sortOrderHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws