/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Macie2 { namespace Model { /** *

Specifies, as a map, one or more property-based conditions that filter the * results of a query for findings.

See Also:

AWS * API Reference

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

A condition that specifies the property, operator, and one or more values to * use to filter the results.

*/ inline const Aws::Map& GetCriterion() const{ return m_criterion; } /** *

A condition that specifies the property, operator, and one or more values to * use to filter the results.

*/ inline bool CriterionHasBeenSet() const { return m_criterionHasBeenSet; } /** *

A condition that specifies the property, operator, and one or more values to * use to filter the results.

*/ inline void SetCriterion(const Aws::Map& value) { m_criterionHasBeenSet = true; m_criterion = value; } /** *

A condition that specifies the property, operator, and one or more values to * use to filter the results.

*/ inline void SetCriterion(Aws::Map&& value) { m_criterionHasBeenSet = true; m_criterion = std::move(value); } /** *

A condition that specifies the property, operator, and one or more values to * use to filter the results.

*/ inline FindingCriteria& WithCriterion(const Aws::Map& value) { SetCriterion(value); return *this;} /** *

A condition that specifies the property, operator, and one or more values to * use to filter the results.

*/ inline FindingCriteria& WithCriterion(Aws::Map&& value) { SetCriterion(std::move(value)); return *this;} /** *

A condition that specifies the property, operator, and one or more values to * use to filter the results.

*/ inline FindingCriteria& AddCriterion(const Aws::String& key, const CriterionAdditionalProperties& value) { m_criterionHasBeenSet = true; m_criterion.emplace(key, value); return *this; } /** *

A condition that specifies the property, operator, and one or more values to * use to filter the results.

*/ inline FindingCriteria& AddCriterion(Aws::String&& key, const CriterionAdditionalProperties& value) { m_criterionHasBeenSet = true; m_criterion.emplace(std::move(key), value); return *this; } /** *

A condition that specifies the property, operator, and one or more values to * use to filter the results.

*/ inline FindingCriteria& AddCriterion(const Aws::String& key, CriterionAdditionalProperties&& value) { m_criterionHasBeenSet = true; m_criterion.emplace(key, std::move(value)); return *this; } /** *

A condition that specifies the property, operator, and one or more values to * use to filter the results.

*/ inline FindingCriteria& AddCriterion(Aws::String&& key, CriterionAdditionalProperties&& value) { m_criterionHasBeenSet = true; m_criterion.emplace(std::move(key), std::move(value)); return *this; } /** *

A condition that specifies the property, operator, and one or more values to * use to filter the results.

*/ inline FindingCriteria& AddCriterion(const char* key, CriterionAdditionalProperties&& value) { m_criterionHasBeenSet = true; m_criterion.emplace(key, std::move(value)); return *this; } /** *

A condition that specifies the property, operator, and one or more values to * use to filter the results.

*/ inline FindingCriteria& AddCriterion(const char* key, const CriterionAdditionalProperties& value) { m_criterionHasBeenSet = true; m_criterion.emplace(key, value); return *this; } private: Aws::Map m_criterion; bool m_criterionHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws