/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Macie2 { namespace Model { /** *

Specifies a property-based condition that determines whether an object is * included or excluded from a classification job.

See Also:

AWS * API Reference

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

The operator to use in the condition.

*/ inline const JobComparator& GetComparator() const{ return m_comparator; } /** *

The operator to use in the condition.

*/ inline bool ComparatorHasBeenSet() const { return m_comparatorHasBeenSet; } /** *

The operator to use in the condition.

*/ inline void SetComparator(const JobComparator& value) { m_comparatorHasBeenSet = true; m_comparator = value; } /** *

The operator to use in the condition.

*/ inline void SetComparator(JobComparator&& value) { m_comparatorHasBeenSet = true; m_comparator = std::move(value); } /** *

The operator to use in the condition.

*/ inline SimpleScopeTerm& WithComparator(const JobComparator& value) { SetComparator(value); return *this;} /** *

The operator to use in the condition.

*/ inline SimpleScopeTerm& WithComparator(JobComparator&& value) { SetComparator(std::move(value)); return *this;} /** *

The property to use in the condition.

*/ inline const ScopeFilterKey& GetKey() const{ return m_key; } /** *

The property to use in the condition.

*/ inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; } /** *

The property to use in the condition.

*/ inline void SetKey(const ScopeFilterKey& value) { m_keyHasBeenSet = true; m_key = value; } /** *

The property to use in the condition.

*/ inline void SetKey(ScopeFilterKey&& value) { m_keyHasBeenSet = true; m_key = std::move(value); } /** *

The property to use in the condition.

*/ inline SimpleScopeTerm& WithKey(const ScopeFilterKey& value) { SetKey(value); return *this;} /** *

The property to use in the condition.

*/ inline SimpleScopeTerm& WithKey(ScopeFilterKey&& value) { SetKey(std::move(value)); return *this;} /** *

An array that lists one or more values to use in the condition.

*/ inline const Aws::Vector& GetValues() const{ return m_values; } /** *

An array that lists one or more values to use in the condition.

*/ inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; } /** *

An array that lists one or more values to use in the condition.

*/ inline void SetValues(const Aws::Vector& value) { m_valuesHasBeenSet = true; m_values = value; } /** *

An array that lists one or more values to use in the condition.

*/ inline void SetValues(Aws::Vector&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); } /** *

An array that lists one or more values to use in the condition.

*/ inline SimpleScopeTerm& WithValues(const Aws::Vector& value) { SetValues(value); return *this;} /** *

An array that lists one or more values to use in the condition.

*/ inline SimpleScopeTerm& WithValues(Aws::Vector&& value) { SetValues(std::move(value)); return *this;} /** *

An array that lists one or more values to use in the condition.

*/ inline SimpleScopeTerm& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } /** *

An array that lists one or more values to use in the condition.

*/ inline SimpleScopeTerm& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; } /** *

An array that lists one or more values to use in the condition.

*/ inline SimpleScopeTerm& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } private: JobComparator m_comparator; bool m_comparatorHasBeenSet; ScopeFilterKey m_key; bool m_keyHasBeenSet; Aws::Vector m_values; bool m_valuesHasBeenSet; }; } // namespace Model } // namespace Macie2 } // namespace Aws