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

A field and direction for ordered output.

See Also:

AWS * API Reference

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

The field on which to order.

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

The field on which to order.

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

The field on which to order.

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

The field on which to order.

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

The field on which to order.

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

The field on which to order.

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

The field on which to order.

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

The field on which to order.

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

Ordering direction.

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

Ordering direction.

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

Ordering direction.

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

Ordering direction.

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

Ordering direction.

*/ inline OrderByElement& WithSortOrder(const OrderString& value) { SetSortOrder(value); return *this;} /** *

Ordering direction.

*/ inline OrderByElement& WithSortOrder(OrderString&& value) { SetSortOrder(std::move(value)); return *this;} private: Aws::String m_fieldName; bool m_fieldNameHasBeenSet; OrderString m_sortOrder; bool m_sortOrderHasBeenSet; }; } // namespace Model } // namespace ApplicationDiscoveryService } // namespace Aws