/** * 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 objects from a classification job.

See * Also:

AWS * API Reference

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

An array of conditions, one for each condition that determines which objects * to include or exclude from the job.

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

An array of conditions, one for each condition that determines which objects * to include or exclude from the job.

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

An array of conditions, one for each condition that determines which objects * to include or exclude from the job.

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

An array of conditions, one for each condition that determines which objects * to include or exclude from the job.

*/ 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 objects * to include or exclude from the job.

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

An array of conditions, one for each condition that determines which objects * to include or exclude from the job.

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

An array of conditions, one for each condition that determines which objects * to include or exclude from the job.

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

An array of conditions, one for each condition that determines which objects * to include or exclude from the job.

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