/** * 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 filter condition that determines which Amazon Web * Services resources are included or excluded from the query * results.

See Also:

AWS * API Reference

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

The operator to use in the condition. Valid values are EQ (equals) and NE * (not equals).

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

The operator to use in the condition. Valid values are EQ (equals) and NE * (not equals).

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

The operator to use in the condition. Valid values are EQ (equals) and NE * (not equals).

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

The operator to use in the condition. Valid values are EQ (equals) and NE * (not equals).

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

The operator to use in the condition. Valid values are EQ (equals) and NE * (not equals).

*/ inline SearchResourcesSimpleCriterion& WithComparator(const SearchResourcesComparator& value) { SetComparator(value); return *this;} /** *

The operator to use in the condition. Valid values are EQ (equals) and NE * (not equals).

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

The property to use in the condition.

*/ inline const SearchResourcesSimpleCriterionKey& 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 SearchResourcesSimpleCriterionKey& value) { m_keyHasBeenSet = true; m_key = value; } /** *

The property to use in the condition.

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

The property to use in the condition.

*/ inline SearchResourcesSimpleCriterion& WithKey(const SearchResourcesSimpleCriterionKey& value) { SetKey(value); return *this;} /** *

The property to use in the condition.

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

An array that lists one or more values to use in the condition. If you * specify multiple values, Amazon Macie uses OR logic to join the values. Valid * values for each supported property (key) are:

  • ACCOUNT_ID - A * string that represents the unique identifier for the Amazon Web Services account * that owns the resource.

  • S3_BUCKET_EFFECTIVE_PERMISSION - A * string that represents an enumerated value that Macie defines for the BucketPublicAccess.effectivePermission * property of an S3 bucket.

  • S3_BUCKET_NAME - A string that * represents the name of an S3 bucket.

  • S3_BUCKET_SHARED_ACCESS - A * string that represents an enumerated value that Macie defines for the BucketMetadata.sharedAccess * property of an S3 bucket.

Values are case sensitive. Also, * Macie doesn't support use of partial values or wildcard characters in * values.

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

An array that lists one or more values to use in the condition. If you * specify multiple values, Amazon Macie uses OR logic to join the values. Valid * values for each supported property (key) are:

  • ACCOUNT_ID - A * string that represents the unique identifier for the Amazon Web Services account * that owns the resource.

  • S3_BUCKET_EFFECTIVE_PERMISSION - A * string that represents an enumerated value that Macie defines for the BucketPublicAccess.effectivePermission * property of an S3 bucket.

  • S3_BUCKET_NAME - A string that * represents the name of an S3 bucket.

  • S3_BUCKET_SHARED_ACCESS - A * string that represents an enumerated value that Macie defines for the BucketMetadata.sharedAccess * property of an S3 bucket.

Values are case sensitive. Also, * Macie doesn't support use of partial values or wildcard characters in * values.

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

An array that lists one or more values to use in the condition. If you * specify multiple values, Amazon Macie uses OR logic to join the values. Valid * values for each supported property (key) are:

  • ACCOUNT_ID - A * string that represents the unique identifier for the Amazon Web Services account * that owns the resource.

  • S3_BUCKET_EFFECTIVE_PERMISSION - A * string that represents an enumerated value that Macie defines for the BucketPublicAccess.effectivePermission * property of an S3 bucket.

  • S3_BUCKET_NAME - A string that * represents the name of an S3 bucket.

  • S3_BUCKET_SHARED_ACCESS - A * string that represents an enumerated value that Macie defines for the BucketMetadata.sharedAccess * property of an S3 bucket.

Values are case sensitive. Also, * Macie doesn't support use of partial values or wildcard characters in * values.

*/ 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. If you * specify multiple values, Amazon Macie uses OR logic to join the values. Valid * values for each supported property (key) are:

  • ACCOUNT_ID - A * string that represents the unique identifier for the Amazon Web Services account * that owns the resource.

  • S3_BUCKET_EFFECTIVE_PERMISSION - A * string that represents an enumerated value that Macie defines for the BucketPublicAccess.effectivePermission * property of an S3 bucket.

  • S3_BUCKET_NAME - A string that * represents the name of an S3 bucket.

  • S3_BUCKET_SHARED_ACCESS - A * string that represents an enumerated value that Macie defines for the BucketMetadata.sharedAccess * property of an S3 bucket.

Values are case sensitive. Also, * Macie doesn't support use of partial values or wildcard characters in * values.

*/ 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. If you * specify multiple values, Amazon Macie uses OR logic to join the values. Valid * values for each supported property (key) are:

  • ACCOUNT_ID - A * string that represents the unique identifier for the Amazon Web Services account * that owns the resource.

  • S3_BUCKET_EFFECTIVE_PERMISSION - A * string that represents an enumerated value that Macie defines for the BucketPublicAccess.effectivePermission * property of an S3 bucket.

  • S3_BUCKET_NAME - A string that * represents the name of an S3 bucket.

  • S3_BUCKET_SHARED_ACCESS - A * string that represents an enumerated value that Macie defines for the BucketMetadata.sharedAccess * property of an S3 bucket.

Values are case sensitive. Also, * Macie doesn't support use of partial values or wildcard characters in * values.

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

An array that lists one or more values to use in the condition. If you * specify multiple values, Amazon Macie uses OR logic to join the values. Valid * values for each supported property (key) are:

  • ACCOUNT_ID - A * string that represents the unique identifier for the Amazon Web Services account * that owns the resource.

  • S3_BUCKET_EFFECTIVE_PERMISSION - A * string that represents an enumerated value that Macie defines for the BucketPublicAccess.effectivePermission * property of an S3 bucket.

  • S3_BUCKET_NAME - A string that * represents the name of an S3 bucket.

  • S3_BUCKET_SHARED_ACCESS - A * string that represents an enumerated value that Macie defines for the BucketMetadata.sharedAccess * property of an S3 bucket.

Values are case sensitive. Also, * Macie doesn't support use of partial values or wildcard characters in * values.

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

An array that lists one or more values to use in the condition. If you * specify multiple values, Amazon Macie uses OR logic to join the values. Valid * values for each supported property (key) are:

  • ACCOUNT_ID - A * string that represents the unique identifier for the Amazon Web Services account * that owns the resource.

  • S3_BUCKET_EFFECTIVE_PERMISSION - A * string that represents an enumerated value that Macie defines for the BucketPublicAccess.effectivePermission * property of an S3 bucket.

  • S3_BUCKET_NAME - A string that * represents the name of an S3 bucket.

  • S3_BUCKET_SHARED_ACCESS - A * string that represents an enumerated value that Macie defines for the BucketMetadata.sharedAccess * property of an S3 bucket.

Values are case sensitive. Also, * Macie doesn't support use of partial values or wildcard characters in * values.

*/ inline SearchResourcesSimpleCriterion& 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. If you * specify multiple values, Amazon Macie uses OR logic to join the values. Valid * values for each supported property (key) are:

  • ACCOUNT_ID - A * string that represents the unique identifier for the Amazon Web Services account * that owns the resource.

  • S3_BUCKET_EFFECTIVE_PERMISSION - A * string that represents an enumerated value that Macie defines for the BucketPublicAccess.effectivePermission * property of an S3 bucket.

  • S3_BUCKET_NAME - A string that * represents the name of an S3 bucket.

  • S3_BUCKET_SHARED_ACCESS - A * string that represents an enumerated value that Macie defines for the BucketMetadata.sharedAccess * property of an S3 bucket.

Values are case sensitive. Also, * Macie doesn't support use of partial values or wildcard characters in * values.

*/ inline SearchResourcesSimpleCriterion& 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. If you * specify multiple values, Amazon Macie uses OR logic to join the values. Valid * values for each supported property (key) are:

  • ACCOUNT_ID - A * string that represents the unique identifier for the Amazon Web Services account * that owns the resource.

  • S3_BUCKET_EFFECTIVE_PERMISSION - A * string that represents an enumerated value that Macie defines for the BucketPublicAccess.effectivePermission * property of an S3 bucket.

  • S3_BUCKET_NAME - A string that * represents the name of an S3 bucket.

  • S3_BUCKET_SHARED_ACCESS - A * string that represents an enumerated value that Macie defines for the BucketMetadata.sharedAccess * property of an S3 bucket.

Values are case sensitive. Also, * Macie doesn't support use of partial values or wildcard characters in * values.

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