/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Macie2 { namespace Model { /** */ class TestCustomDataIdentifierRequest : public Macie2Request { public: AWS_MACIE2_API TestCustomDataIdentifierRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "TestCustomDataIdentifier"; } AWS_MACIE2_API Aws::String SerializePayload() const override; /** *

An array that lists specific character sequences (ignore words) to * exclude from the results. If the text matched by the regular expression contains * any string in this array, Amazon Macie ignores it. The array can contain as many * as 10 ignore words. Each ignore word can contain 4-90 UTF-8 characters. Ignore * words are case sensitive.

*/ inline const Aws::Vector& GetIgnoreWords() const{ return m_ignoreWords; } /** *

An array that lists specific character sequences (ignore words) to * exclude from the results. If the text matched by the regular expression contains * any string in this array, Amazon Macie ignores it. The array can contain as many * as 10 ignore words. Each ignore word can contain 4-90 UTF-8 characters. Ignore * words are case sensitive.

*/ inline bool IgnoreWordsHasBeenSet() const { return m_ignoreWordsHasBeenSet; } /** *

An array that lists specific character sequences (ignore words) to * exclude from the results. If the text matched by the regular expression contains * any string in this array, Amazon Macie ignores it. The array can contain as many * as 10 ignore words. Each ignore word can contain 4-90 UTF-8 characters. Ignore * words are case sensitive.

*/ inline void SetIgnoreWords(const Aws::Vector& value) { m_ignoreWordsHasBeenSet = true; m_ignoreWords = value; } /** *

An array that lists specific character sequences (ignore words) to * exclude from the results. If the text matched by the regular expression contains * any string in this array, Amazon Macie ignores it. The array can contain as many * as 10 ignore words. Each ignore word can contain 4-90 UTF-8 characters. Ignore * words are case sensitive.

*/ inline void SetIgnoreWords(Aws::Vector&& value) { m_ignoreWordsHasBeenSet = true; m_ignoreWords = std::move(value); } /** *

An array that lists specific character sequences (ignore words) to * exclude from the results. If the text matched by the regular expression contains * any string in this array, Amazon Macie ignores it. The array can contain as many * as 10 ignore words. Each ignore word can contain 4-90 UTF-8 characters. Ignore * words are case sensitive.

*/ inline TestCustomDataIdentifierRequest& WithIgnoreWords(const Aws::Vector& value) { SetIgnoreWords(value); return *this;} /** *

An array that lists specific character sequences (ignore words) to * exclude from the results. If the text matched by the regular expression contains * any string in this array, Amazon Macie ignores it. The array can contain as many * as 10 ignore words. Each ignore word can contain 4-90 UTF-8 characters. Ignore * words are case sensitive.

*/ inline TestCustomDataIdentifierRequest& WithIgnoreWords(Aws::Vector&& value) { SetIgnoreWords(std::move(value)); return *this;} /** *

An array that lists specific character sequences (ignore words) to * exclude from the results. If the text matched by the regular expression contains * any string in this array, Amazon Macie ignores it. The array can contain as many * as 10 ignore words. Each ignore word can contain 4-90 UTF-8 characters. Ignore * words are case sensitive.

*/ inline TestCustomDataIdentifierRequest& AddIgnoreWords(const Aws::String& value) { m_ignoreWordsHasBeenSet = true; m_ignoreWords.push_back(value); return *this; } /** *

An array that lists specific character sequences (ignore words) to * exclude from the results. If the text matched by the regular expression contains * any string in this array, Amazon Macie ignores it. The array can contain as many * as 10 ignore words. Each ignore word can contain 4-90 UTF-8 characters. Ignore * words are case sensitive.

*/ inline TestCustomDataIdentifierRequest& AddIgnoreWords(Aws::String&& value) { m_ignoreWordsHasBeenSet = true; m_ignoreWords.push_back(std::move(value)); return *this; } /** *

An array that lists specific character sequences (ignore words) to * exclude from the results. If the text matched by the regular expression contains * any string in this array, Amazon Macie ignores it. The array can contain as many * as 10 ignore words. Each ignore word can contain 4-90 UTF-8 characters. Ignore * words are case sensitive.

*/ inline TestCustomDataIdentifierRequest& AddIgnoreWords(const char* value) { m_ignoreWordsHasBeenSet = true; m_ignoreWords.push_back(value); return *this; } /** *

An array that lists specific character sequences (keywords), one of * which must precede and be within proximity (maximumMatchDistance) of the regular * expression to match. The array can contain as many as 50 keywords. Each keyword * can contain 3-90 UTF-8 characters. Keywords aren't case sensitive.

*/ inline const Aws::Vector& GetKeywords() const{ return m_keywords; } /** *

An array that lists specific character sequences (keywords), one of * which must precede and be within proximity (maximumMatchDistance) of the regular * expression to match. The array can contain as many as 50 keywords. Each keyword * can contain 3-90 UTF-8 characters. Keywords aren't case sensitive.

*/ inline bool KeywordsHasBeenSet() const { return m_keywordsHasBeenSet; } /** *

An array that lists specific character sequences (keywords), one of * which must precede and be within proximity (maximumMatchDistance) of the regular * expression to match. The array can contain as many as 50 keywords. Each keyword * can contain 3-90 UTF-8 characters. Keywords aren't case sensitive.

*/ inline void SetKeywords(const Aws::Vector& value) { m_keywordsHasBeenSet = true; m_keywords = value; } /** *

An array that lists specific character sequences (keywords), one of * which must precede and be within proximity (maximumMatchDistance) of the regular * expression to match. The array can contain as many as 50 keywords. Each keyword * can contain 3-90 UTF-8 characters. Keywords aren't case sensitive.

*/ inline void SetKeywords(Aws::Vector&& value) { m_keywordsHasBeenSet = true; m_keywords = std::move(value); } /** *

An array that lists specific character sequences (keywords), one of * which must precede and be within proximity (maximumMatchDistance) of the regular * expression to match. The array can contain as many as 50 keywords. Each keyword * can contain 3-90 UTF-8 characters. Keywords aren't case sensitive.

*/ inline TestCustomDataIdentifierRequest& WithKeywords(const Aws::Vector& value) { SetKeywords(value); return *this;} /** *

An array that lists specific character sequences (keywords), one of * which must precede and be within proximity (maximumMatchDistance) of the regular * expression to match. The array can contain as many as 50 keywords. Each keyword * can contain 3-90 UTF-8 characters. Keywords aren't case sensitive.

*/ inline TestCustomDataIdentifierRequest& WithKeywords(Aws::Vector&& value) { SetKeywords(std::move(value)); return *this;} /** *

An array that lists specific character sequences (keywords), one of * which must precede and be within proximity (maximumMatchDistance) of the regular * expression to match. The array can contain as many as 50 keywords. Each keyword * can contain 3-90 UTF-8 characters. Keywords aren't case sensitive.

*/ inline TestCustomDataIdentifierRequest& AddKeywords(const Aws::String& value) { m_keywordsHasBeenSet = true; m_keywords.push_back(value); return *this; } /** *

An array that lists specific character sequences (keywords), one of * which must precede and be within proximity (maximumMatchDistance) of the regular * expression to match. The array can contain as many as 50 keywords. Each keyword * can contain 3-90 UTF-8 characters. Keywords aren't case sensitive.

*/ inline TestCustomDataIdentifierRequest& AddKeywords(Aws::String&& value) { m_keywordsHasBeenSet = true; m_keywords.push_back(std::move(value)); return *this; } /** *

An array that lists specific character sequences (keywords), one of * which must precede and be within proximity (maximumMatchDistance) of the regular * expression to match. The array can contain as many as 50 keywords. Each keyword * can contain 3-90 UTF-8 characters. Keywords aren't case sensitive.

*/ inline TestCustomDataIdentifierRequest& AddKeywords(const char* value) { m_keywordsHasBeenSet = true; m_keywords.push_back(value); return *this; } /** *

The maximum number of characters that can exist between the end of at least * one complete character sequence specified by the keywords array and the end of * the text that matches the regex pattern. If a complete keyword precedes all the * text that matches the pattern and the keyword is within the specified distance, * Amazon Macie includes the result. The distance can be 1-300 characters. The * default value is 50.

*/ inline int GetMaximumMatchDistance() const{ return m_maximumMatchDistance; } /** *

The maximum number of characters that can exist between the end of at least * one complete character sequence specified by the keywords array and the end of * the text that matches the regex pattern. If a complete keyword precedes all the * text that matches the pattern and the keyword is within the specified distance, * Amazon Macie includes the result. The distance can be 1-300 characters. The * default value is 50.

*/ inline bool MaximumMatchDistanceHasBeenSet() const { return m_maximumMatchDistanceHasBeenSet; } /** *

The maximum number of characters that can exist between the end of at least * one complete character sequence specified by the keywords array and the end of * the text that matches the regex pattern. If a complete keyword precedes all the * text that matches the pattern and the keyword is within the specified distance, * Amazon Macie includes the result. The distance can be 1-300 characters. The * default value is 50.

*/ inline void SetMaximumMatchDistance(int value) { m_maximumMatchDistanceHasBeenSet = true; m_maximumMatchDistance = value; } /** *

The maximum number of characters that can exist between the end of at least * one complete character sequence specified by the keywords array and the end of * the text that matches the regex pattern. If a complete keyword precedes all the * text that matches the pattern and the keyword is within the specified distance, * Amazon Macie includes the result. The distance can be 1-300 characters. The * default value is 50.

*/ inline TestCustomDataIdentifierRequest& WithMaximumMatchDistance(int value) { SetMaximumMatchDistance(value); return *this;} /** *

The regular expression (regex) that defines the pattern to match. 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 pattern to match. The * expression can contain as many as 512 characters.

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

The regular expression (regex) that defines the pattern to match. 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 pattern to match. 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 pattern to match. 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 pattern to match. The * expression can contain as many as 512 characters.

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

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

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

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

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

The sample text to inspect by using the custom data identifier. The text can * contain as many as 1,000 characters.

*/ inline const Aws::String& GetSampleText() const{ return m_sampleText; } /** *

The sample text to inspect by using the custom data identifier. The text can * contain as many as 1,000 characters.

*/ inline bool SampleTextHasBeenSet() const { return m_sampleTextHasBeenSet; } /** *

The sample text to inspect by using the custom data identifier. The text can * contain as many as 1,000 characters.

*/ inline void SetSampleText(const Aws::String& value) { m_sampleTextHasBeenSet = true; m_sampleText = value; } /** *

The sample text to inspect by using the custom data identifier. The text can * contain as many as 1,000 characters.

*/ inline void SetSampleText(Aws::String&& value) { m_sampleTextHasBeenSet = true; m_sampleText = std::move(value); } /** *

The sample text to inspect by using the custom data identifier. The text can * contain as many as 1,000 characters.

*/ inline void SetSampleText(const char* value) { m_sampleTextHasBeenSet = true; m_sampleText.assign(value); } /** *

The sample text to inspect by using the custom data identifier. The text can * contain as many as 1,000 characters.

*/ inline TestCustomDataIdentifierRequest& WithSampleText(const Aws::String& value) { SetSampleText(value); return *this;} /** *

The sample text to inspect by using the custom data identifier. The text can * contain as many as 1,000 characters.

*/ inline TestCustomDataIdentifierRequest& WithSampleText(Aws::String&& value) { SetSampleText(std::move(value)); return *this;} /** *

The sample text to inspect by using the custom data identifier. The text can * contain as many as 1,000 characters.

*/ inline TestCustomDataIdentifierRequest& WithSampleText(const char* value) { SetSampleText(value); return *this;} private: Aws::Vector m_ignoreWords; bool m_ignoreWordsHasBeenSet = false; Aws::Vector m_keywords; bool m_keywordsHasBeenSet = false; int m_maximumMatchDistance; bool m_maximumMatchDistanceHasBeenSet = false; Aws::String m_regex; bool m_regexHasBeenSet = false; Aws::String m_sampleText; bool m_sampleTextHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws