/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Specifies criteria for sorting the results of a request for
* findings.See Also:
AWS
* API Reference
The name of the property to sort the results by. Valid values are: count, * createdAt, policyDetails.action.apiCallDetails.firstSeen, * policyDetails.action.apiCallDetails.lastSeen, resourcesAffected, severity.score, * type, and updatedAt.
*/ inline const Aws::String& GetAttributeName() const{ return m_attributeName; } /** *The name of the property to sort the results by. Valid values are: count, * createdAt, policyDetails.action.apiCallDetails.firstSeen, * policyDetails.action.apiCallDetails.lastSeen, resourcesAffected, severity.score, * type, and updatedAt.
*/ inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; } /** *The name of the property to sort the results by. Valid values are: count, * createdAt, policyDetails.action.apiCallDetails.firstSeen, * policyDetails.action.apiCallDetails.lastSeen, resourcesAffected, severity.score, * type, and updatedAt.
*/ inline void SetAttributeName(const Aws::String& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; } /** *The name of the property to sort the results by. Valid values are: count, * createdAt, policyDetails.action.apiCallDetails.firstSeen, * policyDetails.action.apiCallDetails.lastSeen, resourcesAffected, severity.score, * type, and updatedAt.
*/ inline void SetAttributeName(Aws::String&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::move(value); } /** *The name of the property to sort the results by. Valid values are: count, * createdAt, policyDetails.action.apiCallDetails.firstSeen, * policyDetails.action.apiCallDetails.lastSeen, resourcesAffected, severity.score, * type, and updatedAt.
*/ inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); } /** *The name of the property to sort the results by. Valid values are: count, * createdAt, policyDetails.action.apiCallDetails.firstSeen, * policyDetails.action.apiCallDetails.lastSeen, resourcesAffected, severity.score, * type, and updatedAt.
*/ inline SortCriteria& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;} /** *The name of the property to sort the results by. Valid values are: count, * createdAt, policyDetails.action.apiCallDetails.firstSeen, * policyDetails.action.apiCallDetails.lastSeen, resourcesAffected, severity.score, * type, and updatedAt.
*/ inline SortCriteria& WithAttributeName(Aws::String&& value) { SetAttributeName(std::move(value)); return *this;} /** *The name of the property to sort the results by. Valid values are: count, * createdAt, policyDetails.action.apiCallDetails.firstSeen, * policyDetails.action.apiCallDetails.lastSeen, resourcesAffected, severity.score, * type, and updatedAt.
*/ inline SortCriteria& WithAttributeName(const char* value) { SetAttributeName(value); return *this;} /** *The sort order to apply to the results, based on the value for the property * specified by the attributeName property. Valid values are: ASC, sort the results * in ascending order; and, DESC, sort the results in descending order.
*/ inline const OrderBy& GetOrderBy() const{ return m_orderBy; } /** *The sort order to apply to the results, based on the value for the property * specified by the attributeName property. Valid values are: ASC, sort the results * in ascending order; and, DESC, sort the results in descending order.
*/ inline bool OrderByHasBeenSet() const { return m_orderByHasBeenSet; } /** *The sort order to apply to the results, based on the value for the property * specified by the attributeName property. Valid values are: ASC, sort the results * in ascending order; and, DESC, sort the results in descending order.
*/ inline void SetOrderBy(const OrderBy& value) { m_orderByHasBeenSet = true; m_orderBy = value; } /** *The sort order to apply to the results, based on the value for the property * specified by the attributeName property. Valid values are: ASC, sort the results * in ascending order; and, DESC, sort the results in descending order.
*/ inline void SetOrderBy(OrderBy&& value) { m_orderByHasBeenSet = true; m_orderBy = std::move(value); } /** *The sort order to apply to the results, based on the value for the property * specified by the attributeName property. Valid values are: ASC, sort the results * in ascending order; and, DESC, sort the results in descending order.
*/ inline SortCriteria& WithOrderBy(const OrderBy& value) { SetOrderBy(value); return *this;} /** *The sort order to apply to the results, based on the value for the property * specified by the attributeName property. Valid values are: ASC, sort the results * in ascending order; and, DESC, sort the results in descending order.
*/ 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 Macie2 } // namespace Aws