/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The criteria used to sort.See Also:
AWS
* API Reference
The name of the attribute to sort on.
*/ inline const Aws::String& GetAttributeName() const{ return m_attributeName; } /** *The name of the attribute to sort on.
*/ inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; } /** *The name of the attribute to sort on.
*/ inline void SetAttributeName(const Aws::String& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; } /** *The name of the attribute to sort on.
*/ inline void SetAttributeName(Aws::String&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::move(value); } /** *The name of the attribute to sort on.
*/ inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); } /** *The name of the attribute to sort on.
*/ inline SortCriteria& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;} /** *The name of the attribute to sort on.
*/ inline SortCriteria& WithAttributeName(Aws::String&& value) { SetAttributeName(std::move(value)); return *this;} /** *The name of the attribute to sort on.
*/ inline SortCriteria& WithAttributeName(const char* value) { SetAttributeName(value); return *this;} /** *The sort order, ascending or descending.
*/ inline const OrderBy& GetOrderBy() const{ return m_orderBy; } /** *The sort order, ascending or descending.
*/ inline bool OrderByHasBeenSet() const { return m_orderByHasBeenSet; } /** *The sort order, ascending or descending.
*/ inline void SetOrderBy(const OrderBy& value) { m_orderByHasBeenSet = true; m_orderBy = value; } /** *The sort order, ascending or descending.
*/ inline void SetOrderBy(OrderBy&& value) { m_orderByHasBeenSet = true; m_orderBy = std::move(value); } /** *The sort order, ascending or descending.
*/ inline SortCriteria& WithOrderBy(const OrderBy& value) { SetOrderBy(value); return *this;} /** *The sort order, ascending or descending.
*/ inline SortCriteria& WithOrderBy(OrderBy&& value) { SetOrderBy(std::move(value)); return *this;} private: Aws::String m_attributeName; bool m_attributeNameHasBeenSet = false; OrderBy m_orderBy; bool m_orderByHasBeenSet = false; }; } // namespace Model } // namespace AccessAnalyzer } // namespace Aws