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

Specifies criteria for sorting the results of a query that retrieves * aggregated statistical data about findings.

See Also:

AWS * API Reference

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

The grouping to sort the results by. Valid values are: count, sort the * results by the number of findings in each group of results; and, groupKey, sort * the results by the name of each group of results.

*/ inline const FindingStatisticsSortAttributeName& GetAttributeName() const{ return m_attributeName; } /** *

The grouping to sort the results by. Valid values are: count, sort the * results by the number of findings in each group of results; and, groupKey, sort * the results by the name of each group of results.

*/ inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; } /** *

The grouping to sort the results by. Valid values are: count, sort the * results by the number of findings in each group of results; and, groupKey, sort * the results by the name of each group of results.

*/ inline void SetAttributeName(const FindingStatisticsSortAttributeName& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; } /** *

The grouping to sort the results by. Valid values are: count, sort the * results by the number of findings in each group of results; and, groupKey, sort * the results by the name of each group of results.

*/ inline void SetAttributeName(FindingStatisticsSortAttributeName&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::move(value); } /** *

The grouping to sort the results by. Valid values are: count, sort the * results by the number of findings in each group of results; and, groupKey, sort * the results by the name of each group of results.

*/ inline FindingStatisticsSortCriteria& WithAttributeName(const FindingStatisticsSortAttributeName& value) { SetAttributeName(value); return *this;} /** *

The grouping to sort the results by. Valid values are: count, sort the * results by the number of findings in each group of results; and, groupKey, sort * the results by the name of each group of results.

*/ inline FindingStatisticsSortCriteria& WithAttributeName(FindingStatisticsSortAttributeName&& value) { SetAttributeName(std::move(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 FindingStatisticsSortCriteria& 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 FindingStatisticsSortCriteria& WithOrderBy(OrderBy&& value) { SetOrderBy(std::move(value)); return *this;} private: FindingStatisticsSortAttributeName m_attributeName; bool m_attributeNameHasBeenSet = false; OrderBy m_orderBy; bool m_orderByHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws