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

A structured set of sort terms.

See Also:

AWS * API Reference

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

Unique identifier of a field.

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

Unique identifier of a field.

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

Unique identifier of a field.

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

Unique identifier of a field.

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

Unique identifier of a field.

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

Unique identifier of a field.

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

Unique identifier of a field.

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

Unique identifier of a field.

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

A structured set of sort terms

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

A structured set of sort terms

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

A structured set of sort terms

*/ inline void SetSortOrder(const Order& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; } /** *

A structured set of sort terms

*/ inline void SetSortOrder(Order&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); } /** *

A structured set of sort terms

*/ inline Sort& WithSortOrder(const Order& value) { SetSortOrder(value); return *this;} /** *

A structured set of sort terms

*/ inline Sort& WithSortOrder(Order&& value) { SetSortOrder(std::move(value)); return *this;} private: Aws::String m_fieldId; bool m_fieldIdHasBeenSet = false; Order m_sortOrder; bool m_sortOrderHasBeenSet = false; }; } // namespace Model } // namespace ConnectCases } // namespace Aws