/** * 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 for information about * S3 buckets.

See Also:

AWS * API Reference

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

The name of the bucket property to sort the results by. This value can be one * of the following properties that Amazon Macie defines as bucket metadata: * accountId, bucketName, classifiableObjectCount, classifiableSizeInBytes, * objectCount, sensitivityScore, or sizeInBytes.

*/ inline const Aws::String& GetAttributeName() const{ return m_attributeName; } /** *

The name of the bucket property to sort the results by. This value can be one * of the following properties that Amazon Macie defines as bucket metadata: * accountId, bucketName, classifiableObjectCount, classifiableSizeInBytes, * objectCount, sensitivityScore, or sizeInBytes.

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

The name of the bucket property to sort the results by. This value can be one * of the following properties that Amazon Macie defines as bucket metadata: * accountId, bucketName, classifiableObjectCount, classifiableSizeInBytes, * objectCount, sensitivityScore, or sizeInBytes.

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

The name of the bucket property to sort the results by. This value can be one * of the following properties that Amazon Macie defines as bucket metadata: * accountId, bucketName, classifiableObjectCount, classifiableSizeInBytes, * objectCount, sensitivityScore, or sizeInBytes.

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

The name of the bucket property to sort the results by. This value can be one * of the following properties that Amazon Macie defines as bucket metadata: * accountId, bucketName, classifiableObjectCount, classifiableSizeInBytes, * objectCount, sensitivityScore, or sizeInBytes.

*/ inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); } /** *

The name of the bucket property to sort the results by. This value can be one * of the following properties that Amazon Macie defines as bucket metadata: * accountId, bucketName, classifiableObjectCount, classifiableSizeInBytes, * objectCount, sensitivityScore, or sizeInBytes.

*/ inline BucketSortCriteria& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;} /** *

The name of the bucket property to sort the results by. This value can be one * of the following properties that Amazon Macie defines as bucket metadata: * accountId, bucketName, classifiableObjectCount, classifiableSizeInBytes, * objectCount, sensitivityScore, or sizeInBytes.

*/ inline BucketSortCriteria& WithAttributeName(Aws::String&& value) { SetAttributeName(std::move(value)); return *this;} /** *

The name of the bucket property to sort the results by. This value can be one * of the following properties that Amazon Macie defines as bucket metadata: * accountId, bucketName, classifiableObjectCount, classifiableSizeInBytes, * objectCount, sensitivityScore, or sizeInBytes.

*/ inline BucketSortCriteria& WithAttributeName(const char* value) { SetAttributeName(value); return *this;} /** *

The sort order to apply to the results, based on the value 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 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 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 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 specified by the * attributeName property. Valid values are: ASC, sort the results in ascending * order; and, DESC, sort the results in descending order.

*/ inline BucketSortCriteria& WithOrderBy(const OrderBy& value) { SetOrderBy(value); return *this;} /** *

The sort order to apply to the results, based on the value specified by the * attributeName property. Valid values are: ASC, sort the results in ascending * order; and, DESC, sort the results in descending order.

*/ inline BucketSortCriteria& 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