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

Contains information about the criteria used for sorting * findings.

See Also:

AWS * API Reference

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

Represents the finding attribute, such as accountId, that sorts * the findings.

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

Represents the finding attribute, such as accountId, that sorts * the findings.

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

Represents the finding attribute, such as accountId, that sorts * the findings.

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

Represents the finding attribute, such as accountId, that sorts * the findings.

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

Represents the finding attribute, such as accountId, that sorts * the findings.

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

Represents the finding attribute, such as accountId, that sorts * the findings.

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

Represents the finding attribute, such as accountId, that sorts * the findings.

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

Represents the finding attribute, such as accountId, that sorts * the findings.

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

The order by which the sorted findings are to be displayed.

*/ inline const OrderBy& GetOrderBy() const{ return m_orderBy; } /** *

The order by which the sorted findings are to be displayed.

*/ inline bool OrderByHasBeenSet() const { return m_orderByHasBeenSet; } /** *

The order by which the sorted findings are to be displayed.

*/ inline void SetOrderBy(const OrderBy& value) { m_orderByHasBeenSet = true; m_orderBy = value; } /** *

The order by which the sorted findings are to be displayed.

*/ inline void SetOrderBy(OrderBy&& value) { m_orderByHasBeenSet = true; m_orderBy = std::move(value); } /** *

The order by which the sorted findings are to be displayed.

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

The order by which the sorted findings are to be displayed.

*/ 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 GuardDuty } // namespace Aws