/** * 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 property- and tag-based conditions that define filter criteria for * including or excluding Amazon Web Services resources from the query * results.

See Also:

AWS * API Reference

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

An array of objects, one for each property- or tag-based condition that * includes or excludes resources from the query results. If you specify more than * one condition, Amazon Macie uses AND logic to join the conditions.

*/ inline const Aws::Vector& GetAnd() const{ return m_and; } /** *

An array of objects, one for each property- or tag-based condition that * includes or excludes resources from the query results. If you specify more than * one condition, Amazon Macie uses AND logic to join the conditions.

*/ inline bool AndHasBeenSet() const { return m_andHasBeenSet; } /** *

An array of objects, one for each property- or tag-based condition that * includes or excludes resources from the query results. If you specify more than * one condition, Amazon Macie uses AND logic to join the conditions.

*/ inline void SetAnd(const Aws::Vector& value) { m_andHasBeenSet = true; m_and = value; } /** *

An array of objects, one for each property- or tag-based condition that * includes or excludes resources from the query results. If you specify more than * one condition, Amazon Macie uses AND logic to join the conditions.

*/ inline void SetAnd(Aws::Vector&& value) { m_andHasBeenSet = true; m_and = std::move(value); } /** *

An array of objects, one for each property- or tag-based condition that * includes or excludes resources from the query results. If you specify more than * one condition, Amazon Macie uses AND logic to join the conditions.

*/ inline SearchResourcesCriteriaBlock& WithAnd(const Aws::Vector& value) { SetAnd(value); return *this;} /** *

An array of objects, one for each property- or tag-based condition that * includes or excludes resources from the query results. If you specify more than * one condition, Amazon Macie uses AND logic to join the conditions.

*/ inline SearchResourcesCriteriaBlock& WithAnd(Aws::Vector&& value) { SetAnd(std::move(value)); return *this;} /** *

An array of objects, one for each property- or tag-based condition that * includes or excludes resources from the query results. If you specify more than * one condition, Amazon Macie uses AND logic to join the conditions.

*/ inline SearchResourcesCriteriaBlock& AddAnd(const SearchResourcesCriteria& value) { m_andHasBeenSet = true; m_and.push_back(value); return *this; } /** *

An array of objects, one for each property- or tag-based condition that * includes or excludes resources from the query results. If you specify more than * one condition, Amazon Macie uses AND logic to join the conditions.

*/ inline SearchResourcesCriteriaBlock& AddAnd(SearchResourcesCriteria&& value) { m_andHasBeenSet = true; m_and.push_back(std::move(value)); return *this; } private: Aws::Vector m_and; bool m_andHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws