/**
* 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 query for Amazon Macie
* account quotas and usage data.See Also:
AWS
* API Reference
The field to sort the results by.
*/ inline const UsageStatisticsSortKey& GetKey() const{ return m_key; } /** *The field to sort the results by.
*/ inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; } /** *The field to sort the results by.
*/ inline void SetKey(const UsageStatisticsSortKey& value) { m_keyHasBeenSet = true; m_key = value; } /** *The field to sort the results by.
*/ inline void SetKey(UsageStatisticsSortKey&& value) { m_keyHasBeenSet = true; m_key = std::move(value); } /** *The field to sort the results by.
*/ inline UsageStatisticsSortBy& WithKey(const UsageStatisticsSortKey& value) { SetKey(value); return *this;} /** *The field to sort the results by.
*/ inline UsageStatisticsSortBy& WithKey(UsageStatisticsSortKey&& value) { SetKey(std::move(value)); return *this;} /** *The sort order to apply to the results, based on the value for the field * specified by the key 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 field * specified by the key 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 field * specified by the key 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 field * specified by the key 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 field * specified by the key property. Valid values are: ASC, sort the results in * ascending order; and, DESC, sort the results in descending order.
*/ inline UsageStatisticsSortBy& WithOrderBy(const OrderBy& value) { SetOrderBy(value); return *this;} /** *The sort order to apply to the results, based on the value for the field * specified by the key property. Valid values are: ASC, sort the results in * ascending order; and, DESC, sort the results in descending order.
*/ inline UsageStatisticsSortBy& WithOrderBy(OrderBy&& value) { SetOrderBy(std::move(value)); return *this;} private: UsageStatisticsSortKey m_key; bool m_keyHasBeenSet = false; OrderBy m_orderBy; bool m_orderByHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws