This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-macie2/include/aws/macie2/model/TestCustomDataIdentifierRequest.h

346 lines
16 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/macie2/Macie2_EXPORTS.h>
#include <aws/macie2/Macie2Request.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Macie2
{
namespace Model
{
/**
*/
class AWS_MACIE2_API TestCustomDataIdentifierRequest : public Macie2Request
{
public:
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::String SerializePayload() const override;
/**
* <p>An array that lists specific character sequences (ignore words) to exclude
* from the results. If the text matched by the regular expression is the same as
* 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 characters. Ignore words
* are case sensitive.</p>
*/
inline const Aws::Vector<Aws::String>& GetIgnoreWords() const{ return m_ignoreWords; }
/**
* <p>An array that lists specific character sequences (ignore words) to exclude
* from the results. If the text matched by the regular expression is the same as
* 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 characters. Ignore words
* are case sensitive.</p>
*/
inline bool IgnoreWordsHasBeenSet() const { return m_ignoreWordsHasBeenSet; }
/**
* <p>An array that lists specific character sequences (ignore words) to exclude
* from the results. If the text matched by the regular expression is the same as
* 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 characters. Ignore words
* are case sensitive.</p>
*/
inline void SetIgnoreWords(const Aws::Vector<Aws::String>& value) { m_ignoreWordsHasBeenSet = true; m_ignoreWords = value; }
/**
* <p>An array that lists specific character sequences (ignore words) to exclude
* from the results. If the text matched by the regular expression is the same as
* 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 characters. Ignore words
* are case sensitive.</p>
*/
inline void SetIgnoreWords(Aws::Vector<Aws::String>&& value) { m_ignoreWordsHasBeenSet = true; m_ignoreWords = std::move(value); }
/**
* <p>An array that lists specific character sequences (ignore words) to exclude
* from the results. If the text matched by the regular expression is the same as
* 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 characters. Ignore words
* are case sensitive.</p>
*/
inline TestCustomDataIdentifierRequest& WithIgnoreWords(const Aws::Vector<Aws::String>& value) { SetIgnoreWords(value); return *this;}
/**
* <p>An array that lists specific character sequences (ignore words) to exclude
* from the results. If the text matched by the regular expression is the same as
* 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 characters. Ignore words
* are case sensitive.</p>
*/
inline TestCustomDataIdentifierRequest& WithIgnoreWords(Aws::Vector<Aws::String>&& value) { SetIgnoreWords(std::move(value)); return *this;}
/**
* <p>An array that lists specific character sequences (ignore words) to exclude
* from the results. If the text matched by the regular expression is the same as
* 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 characters. Ignore words
* are case sensitive.</p>
*/
inline TestCustomDataIdentifierRequest& AddIgnoreWords(const Aws::String& value) { m_ignoreWordsHasBeenSet = true; m_ignoreWords.push_back(value); return *this; }
/**
* <p>An array that lists specific character sequences (ignore words) to exclude
* from the results. If the text matched by the regular expression is the same as
* 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 characters. Ignore words
* are case sensitive.</p>
*/
inline TestCustomDataIdentifierRequest& AddIgnoreWords(Aws::String&& value) { m_ignoreWordsHasBeenSet = true; m_ignoreWords.push_back(std::move(value)); return *this; }
/**
* <p>An array that lists specific character sequences (ignore words) to exclude
* from the results. If the text matched by the regular expression is the same as
* 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 characters. Ignore words
* are case sensitive.</p>
*/
inline TestCustomDataIdentifierRequest& AddIgnoreWords(const char* value) { m_ignoreWordsHasBeenSet = true; m_ignoreWords.push_back(value); return *this; }
/**
* <p>An array that lists specific character sequences (keywords), one of which
* must be within proximity (maximumMatchDistance) of the regular expression to
* match. The array can contain as many as 50 keywords. Each keyword can contain 4
* - 90 characters. Keywords aren't case sensitive.</p>
*/
inline const Aws::Vector<Aws::String>& GetKeywords() const{ return m_keywords; }
/**
* <p>An array that lists specific character sequences (keywords), one of which
* must be within proximity (maximumMatchDistance) of the regular expression to
* match. The array can contain as many as 50 keywords. Each keyword can contain 4
* - 90 characters. Keywords aren't case sensitive.</p>
*/
inline bool KeywordsHasBeenSet() const { return m_keywordsHasBeenSet; }
/**
* <p>An array that lists specific character sequences (keywords), one of which
* must be within proximity (maximumMatchDistance) of the regular expression to
* match. The array can contain as many as 50 keywords. Each keyword can contain 4
* - 90 characters. Keywords aren't case sensitive.</p>
*/
inline void SetKeywords(const Aws::Vector<Aws::String>& value) { m_keywordsHasBeenSet = true; m_keywords = value; }
/**
* <p>An array that lists specific character sequences (keywords), one of which
* must be within proximity (maximumMatchDistance) of the regular expression to
* match. The array can contain as many as 50 keywords. Each keyword can contain 4
* - 90 characters. Keywords aren't case sensitive.</p>
*/
inline void SetKeywords(Aws::Vector<Aws::String>&& value) { m_keywordsHasBeenSet = true; m_keywords = std::move(value); }
/**
* <p>An array that lists specific character sequences (keywords), one of which
* must be within proximity (maximumMatchDistance) of the regular expression to
* match. The array can contain as many as 50 keywords. Each keyword can contain 4
* - 90 characters. Keywords aren't case sensitive.</p>
*/
inline TestCustomDataIdentifierRequest& WithKeywords(const Aws::Vector<Aws::String>& value) { SetKeywords(value); return *this;}
/**
* <p>An array that lists specific character sequences (keywords), one of which
* must be within proximity (maximumMatchDistance) of the regular expression to
* match. The array can contain as many as 50 keywords. Each keyword can contain 4
* - 90 characters. Keywords aren't case sensitive.</p>
*/
inline TestCustomDataIdentifierRequest& WithKeywords(Aws::Vector<Aws::String>&& value) { SetKeywords(std::move(value)); return *this;}
/**
* <p>An array that lists specific character sequences (keywords), one of which
* must be within proximity (maximumMatchDistance) of the regular expression to
* match. The array can contain as many as 50 keywords. Each keyword can contain 4
* - 90 characters. Keywords aren't case sensitive.</p>
*/
inline TestCustomDataIdentifierRequest& AddKeywords(const Aws::String& value) { m_keywordsHasBeenSet = true; m_keywords.push_back(value); return *this; }
/**
* <p>An array that lists specific character sequences (keywords), one of which
* must be within proximity (maximumMatchDistance) of the regular expression to
* match. The array can contain as many as 50 keywords. Each keyword can contain 4
* - 90 characters. Keywords aren't case sensitive.</p>
*/
inline TestCustomDataIdentifierRequest& AddKeywords(Aws::String&& value) { m_keywordsHasBeenSet = true; m_keywords.push_back(std::move(value)); return *this; }
/**
* <p>An array that lists specific character sequences (keywords), one of which
* must be within proximity (maximumMatchDistance) of the regular expression to
* match. The array can contain as many as 50 keywords. Each keyword can contain 4
* - 90 characters. Keywords aren't case sensitive.</p>
*/
inline TestCustomDataIdentifierRequest& AddKeywords(const char* value) { m_keywordsHasBeenSet = true; m_keywords.push_back(value); return *this; }
/**
* <p>The maximum number of characters that can exist between text that matches the
* regex pattern and the character sequences specified by the keywords array. Macie
* includes or excludes a result based on the proximity of a keyword to text that
* matches the regex pattern. The distance can be 1 - 300 characters. The default
* value is 50.</p>
*/
inline int GetMaximumMatchDistance() const{ return m_maximumMatchDistance; }
/**
* <p>The maximum number of characters that can exist between text that matches the
* regex pattern and the character sequences specified by the keywords array. Macie
* includes or excludes a result based on the proximity of a keyword to text that
* matches the regex pattern. The distance can be 1 - 300 characters. The default
* value is 50.</p>
*/
inline bool MaximumMatchDistanceHasBeenSet() const { return m_maximumMatchDistanceHasBeenSet; }
/**
* <p>The maximum number of characters that can exist between text that matches the
* regex pattern and the character sequences specified by the keywords array. Macie
* includes or excludes a result based on the proximity of a keyword to text that
* matches the regex pattern. The distance can be 1 - 300 characters. The default
* value is 50.</p>
*/
inline void SetMaximumMatchDistance(int value) { m_maximumMatchDistanceHasBeenSet = true; m_maximumMatchDistance = value; }
/**
* <p>The maximum number of characters that can exist between text that matches the
* regex pattern and the character sequences specified by the keywords array. Macie
* includes or excludes a result based on the proximity of a keyword to text that
* matches the regex pattern. The distance can be 1 - 300 characters. The default
* value is 50.</p>
*/
inline TestCustomDataIdentifierRequest& WithMaximumMatchDistance(int value) { SetMaximumMatchDistance(value); return *this;}
/**
* <p>The regular expression (<i>regex</i>) that defines the pattern to match. The
* expression can contain as many as 512 characters.</p>
*/
inline const Aws::String& GetRegex() const{ return m_regex; }
/**
* <p>The regular expression (<i>regex</i>) that defines the pattern to match. The
* expression can contain as many as 512 characters.</p>
*/
inline bool RegexHasBeenSet() const { return m_regexHasBeenSet; }
/**
* <p>The regular expression (<i>regex</i>) that defines the pattern to match. The
* expression can contain as many as 512 characters.</p>
*/
inline void SetRegex(const Aws::String& value) { m_regexHasBeenSet = true; m_regex = value; }
/**
* <p>The regular expression (<i>regex</i>) that defines the pattern to match. The
* expression can contain as many as 512 characters.</p>
*/
inline void SetRegex(Aws::String&& value) { m_regexHasBeenSet = true; m_regex = std::move(value); }
/**
* <p>The regular expression (<i>regex</i>) that defines the pattern to match. The
* expression can contain as many as 512 characters.</p>
*/
inline void SetRegex(const char* value) { m_regexHasBeenSet = true; m_regex.assign(value); }
/**
* <p>The regular expression (<i>regex</i>) that defines the pattern to match. The
* expression can contain as many as 512 characters.</p>
*/
inline TestCustomDataIdentifierRequest& WithRegex(const Aws::String& value) { SetRegex(value); return *this;}
/**
* <p>The regular expression (<i>regex</i>) that defines the pattern to match. The
* expression can contain as many as 512 characters.</p>
*/
inline TestCustomDataIdentifierRequest& WithRegex(Aws::String&& value) { SetRegex(std::move(value)); return *this;}
/**
* <p>The regular expression (<i>regex</i>) that defines the pattern to match. The
* expression can contain as many as 512 characters.</p>
*/
inline TestCustomDataIdentifierRequest& WithRegex(const char* value) { SetRegex(value); return *this;}
/**
* <p>The sample text to inspect by using the custom data identifier. The text can
* contain as many as 1,000 characters.</p>
*/
inline const Aws::String& GetSampleText() const{ return m_sampleText; }
/**
* <p>The sample text to inspect by using the custom data identifier. The text can
* contain as many as 1,000 characters.</p>
*/
inline bool SampleTextHasBeenSet() const { return m_sampleTextHasBeenSet; }
/**
* <p>The sample text to inspect by using the custom data identifier. The text can
* contain as many as 1,000 characters.</p>
*/
inline void SetSampleText(const Aws::String& value) { m_sampleTextHasBeenSet = true; m_sampleText = value; }
/**
* <p>The sample text to inspect by using the custom data identifier. The text can
* contain as many as 1,000 characters.</p>
*/
inline void SetSampleText(Aws::String&& value) { m_sampleTextHasBeenSet = true; m_sampleText = std::move(value); }
/**
* <p>The sample text to inspect by using the custom data identifier. The text can
* contain as many as 1,000 characters.</p>
*/
inline void SetSampleText(const char* value) { m_sampleTextHasBeenSet = true; m_sampleText.assign(value); }
/**
* <p>The sample text to inspect by using the custom data identifier. The text can
* contain as many as 1,000 characters.</p>
*/
inline TestCustomDataIdentifierRequest& WithSampleText(const Aws::String& value) { SetSampleText(value); return *this;}
/**
* <p>The sample text to inspect by using the custom data identifier. The text can
* contain as many as 1,000 characters.</p>
*/
inline TestCustomDataIdentifierRequest& WithSampleText(Aws::String&& value) { SetSampleText(std::move(value)); return *this;}
/**
* <p>The sample text to inspect by using the custom data identifier. The text can
* contain as many as 1,000 characters.</p>
*/
inline TestCustomDataIdentifierRequest& WithSampleText(const char* value) { SetSampleText(value); return *this;}
private:
Aws::Vector<Aws::String> m_ignoreWords;
bool m_ignoreWordsHasBeenSet;
Aws::Vector<Aws::String> m_keywords;
bool m_keywordsHasBeenSet;
int m_maximumMatchDistance;
bool m_maximumMatchDistanceHasBeenSet;
Aws::String m_regex;
bool m_regexHasBeenSet;
Aws::String m_sampleText;
bool m_sampleTextHasBeenSet;
};
} // namespace Model
} // namespace Macie2
} // namespace Aws