/** * 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 the criteria for an allow list. The criteria must specify a regular * expression (regex) or an S3 object (s3WordsList). It can't specify * both.

See Also:

AWS * API Reference

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

The regular expression (regex) that defines the text pattern to * ignore. The expression can contain as many as 512 characters.

*/ inline const Aws::String& GetRegex() const{ return m_regex; } /** *

The regular expression (regex) that defines the text pattern to * ignore. The expression can contain as many as 512 characters.

*/ inline bool RegexHasBeenSet() const { return m_regexHasBeenSet; } /** *

The regular expression (regex) that defines the text pattern to * ignore. The expression can contain as many as 512 characters.

*/ inline void SetRegex(const Aws::String& value) { m_regexHasBeenSet = true; m_regex = value; } /** *

The regular expression (regex) that defines the text pattern to * ignore. The expression can contain as many as 512 characters.

*/ inline void SetRegex(Aws::String&& value) { m_regexHasBeenSet = true; m_regex = std::move(value); } /** *

The regular expression (regex) that defines the text pattern to * ignore. The expression can contain as many as 512 characters.

*/ inline void SetRegex(const char* value) { m_regexHasBeenSet = true; m_regex.assign(value); } /** *

The regular expression (regex) that defines the text pattern to * ignore. The expression can contain as many as 512 characters.

*/ inline AllowListCriteria& WithRegex(const Aws::String& value) { SetRegex(value); return *this;} /** *

The regular expression (regex) that defines the text pattern to * ignore. The expression can contain as many as 512 characters.

*/ inline AllowListCriteria& WithRegex(Aws::String&& value) { SetRegex(std::move(value)); return *this;} /** *

The regular expression (regex) that defines the text pattern to * ignore. The expression can contain as many as 512 characters.

*/ inline AllowListCriteria& WithRegex(const char* value) { SetRegex(value); return *this;} /** *

The location and name of the S3 object that lists specific text to * ignore.

*/ inline const S3WordsList& GetS3WordsList() const{ return m_s3WordsList; } /** *

The location and name of the S3 object that lists specific text to * ignore.

*/ inline bool S3WordsListHasBeenSet() const { return m_s3WordsListHasBeenSet; } /** *

The location and name of the S3 object that lists specific text to * ignore.

*/ inline void SetS3WordsList(const S3WordsList& value) { m_s3WordsListHasBeenSet = true; m_s3WordsList = value; } /** *

The location and name of the S3 object that lists specific text to * ignore.

*/ inline void SetS3WordsList(S3WordsList&& value) { m_s3WordsListHasBeenSet = true; m_s3WordsList = std::move(value); } /** *

The location and name of the S3 object that lists specific text to * ignore.

*/ inline AllowListCriteria& WithS3WordsList(const S3WordsList& value) { SetS3WordsList(value); return *this;} /** *

The location and name of the S3 object that lists specific text to * ignore.

*/ inline AllowListCriteria& WithS3WordsList(S3WordsList&& value) { SetS3WordsList(std::move(value)); return *this;} private: Aws::String m_regex; bool m_regexHasBeenSet = false; S3WordsList m_s3WordsList; bool m_s3WordsListHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws