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

Contains information about the criteria used for querying * findings.

See Also:

AWS * API Reference

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

Represents a map of finding properties that match specified conditions and * values when querying findings.

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

Represents a map of finding properties that match specified conditions and * values when querying findings.

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

Represents a map of finding properties that match specified conditions and * values when querying findings.

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

Represents a map of finding properties that match specified conditions and * values when querying findings.

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

Represents a map of finding properties that match specified conditions and * values when querying findings.

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

Represents a map of finding properties that match specified conditions and * values when querying findings.

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

Represents a map of finding properties that match specified conditions and * values when querying findings.

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

Represents a map of finding properties that match specified conditions and * values when querying findings.

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

Represents a map of finding properties that match specified conditions and * values when querying findings.

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

Represents a map of finding properties that match specified conditions and * values when querying findings.

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

Represents a map of finding properties that match specified conditions and * values when querying findings.

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

Represents a map of finding properties that match specified conditions and * values when querying findings.

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