/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 S3 buckets from the query results. Exclude conditions * take precedence over include conditions.

See Also:

AWS * API Reference

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

The property- and tag-based conditions that determine which buckets to * exclude from the results.

*/ inline const SearchResourcesCriteriaBlock& GetExcludes() const{ return m_excludes; } /** *

The property- and tag-based conditions that determine which buckets to * exclude from the results.

*/ inline bool ExcludesHasBeenSet() const { return m_excludesHasBeenSet; } /** *

The property- and tag-based conditions that determine which buckets to * exclude from the results.

*/ inline void SetExcludes(const SearchResourcesCriteriaBlock& value) { m_excludesHasBeenSet = true; m_excludes = value; } /** *

The property- and tag-based conditions that determine which buckets to * exclude from the results.

*/ inline void SetExcludes(SearchResourcesCriteriaBlock&& value) { m_excludesHasBeenSet = true; m_excludes = std::move(value); } /** *

The property- and tag-based conditions that determine which buckets to * exclude from the results.

*/ inline SearchResourcesBucketCriteria& WithExcludes(const SearchResourcesCriteriaBlock& value) { SetExcludes(value); return *this;} /** *

The property- and tag-based conditions that determine which buckets to * exclude from the results.

*/ inline SearchResourcesBucketCriteria& WithExcludes(SearchResourcesCriteriaBlock&& value) { SetExcludes(std::move(value)); return *this;} /** *

The property- and tag-based conditions that determine which buckets to * include in the results.

*/ inline const SearchResourcesCriteriaBlock& GetIncludes() const{ return m_includes; } /** *

The property- and tag-based conditions that determine which buckets to * include in the results.

*/ inline bool IncludesHasBeenSet() const { return m_includesHasBeenSet; } /** *

The property- and tag-based conditions that determine which buckets to * include in the results.

*/ inline void SetIncludes(const SearchResourcesCriteriaBlock& value) { m_includesHasBeenSet = true; m_includes = value; } /** *

The property- and tag-based conditions that determine which buckets to * include in the results.

*/ inline void SetIncludes(SearchResourcesCriteriaBlock&& value) { m_includesHasBeenSet = true; m_includes = std::move(value); } /** *

The property- and tag-based conditions that determine which buckets to * include in the results.

*/ inline SearchResourcesBucketCriteria& WithIncludes(const SearchResourcesCriteriaBlock& value) { SetIncludes(value); return *this;} /** *

The property- and tag-based conditions that determine which buckets to * include in the results.

*/ inline SearchResourcesBucketCriteria& WithIncludes(SearchResourcesCriteriaBlock&& value) { SetIncludes(std::move(value)); return *this;} private: SearchResourcesCriteriaBlock m_excludes; bool m_excludesHasBeenSet = false; SearchResourcesCriteriaBlock m_includes; bool m_includesHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws