/** * 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 one or more property- and tag-based conditions that define criteria * for including or excluding S3 buckets from a classification job.

See * Also:

AWS * API Reference

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

An array of conditions, one for each condition that determines which buckets * to include or exclude from the job. 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 conditions, one for each condition that determines which buckets * to include or exclude from the job. 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 conditions, one for each condition that determines which buckets * to include or exclude from the job. 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 conditions, one for each condition that determines which buckets * to include or exclude from the job. 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 conditions, one for each condition that determines which buckets * to include or exclude from the job. If you specify more than one condition, * Amazon Macie uses AND logic to join the conditions.

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

An array of conditions, one for each condition that determines which buckets * to include or exclude from the job. If you specify more than one condition, * Amazon Macie uses AND logic to join the conditions.

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

An array of conditions, one for each condition that determines which buckets * to include or exclude from the job. If you specify more than one condition, * Amazon Macie uses AND logic to join the conditions.

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

An array of conditions, one for each condition that determines which buckets * to include or exclude from the job. If you specify more than one condition, * Amazon Macie uses AND logic to join the conditions.

*/ inline CriteriaBlockForJob& AddAnd(CriteriaForJob&& 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