/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Macie2 { namespace Model { /** */ class AWS_MACIE2_API CreateCustomDataIdentifierRequest : public Macie2Request { public: CreateCustomDataIdentifierRequest(); // 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 "CreateCustomDataIdentifier"; } Aws::String SerializePayload() const override; /** *

A unique, case-sensitive token that you provide to ensure the idempotency of * the request.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

A unique, case-sensitive token that you provide to ensure the idempotency of * the request.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

A unique, case-sensitive token that you provide to ensure the idempotency of * the request.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

A unique, case-sensitive token that you provide to ensure the idempotency of * the request.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

A unique, case-sensitive token that you provide to ensure the idempotency of * the request.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

A unique, case-sensitive token that you provide to ensure the idempotency of * the request.

*/ inline CreateCustomDataIdentifierRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

A unique, case-sensitive token that you provide to ensure the idempotency of * the request.

*/ inline CreateCustomDataIdentifierRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

A unique, case-sensitive token that you provide to ensure the idempotency of * the request.

*/ inline CreateCustomDataIdentifierRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

A custom description of the custom data identifier. The description can * contain as many as 512 characters.

We strongly recommend that you avoid * including any sensitive data in the description of a custom data identifier. * Other users of your account might be able to see the identifier's description, * depending on the actions that they're allowed to perform in Amazon Macie.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A custom description of the custom data identifier. The description can * contain as many as 512 characters.

We strongly recommend that you avoid * including any sensitive data in the description of a custom data identifier. * Other users of your account might be able to see the identifier's description, * depending on the actions that they're allowed to perform in Amazon Macie.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A custom description of the custom data identifier. The description can * contain as many as 512 characters.

We strongly recommend that you avoid * including any sensitive data in the description of a custom data identifier. * Other users of your account might be able to see the identifier's description, * depending on the actions that they're allowed to perform in Amazon Macie.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A custom description of the custom data identifier. The description can * contain as many as 512 characters.

We strongly recommend that you avoid * including any sensitive data in the description of a custom data identifier. * Other users of your account might be able to see the identifier's description, * depending on the actions that they're allowed to perform in Amazon Macie.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A custom description of the custom data identifier. The description can * contain as many as 512 characters.

We strongly recommend that you avoid * including any sensitive data in the description of a custom data identifier. * Other users of your account might be able to see the identifier's description, * depending on the actions that they're allowed to perform in Amazon Macie.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A custom description of the custom data identifier. The description can * contain as many as 512 characters.

We strongly recommend that you avoid * including any sensitive data in the description of a custom data identifier. * Other users of your account might be able to see the identifier's description, * depending on the actions that they're allowed to perform in Amazon Macie.

*/ inline CreateCustomDataIdentifierRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A custom description of the custom data identifier. The description can * contain as many as 512 characters.

We strongly recommend that you avoid * including any sensitive data in the description of a custom data identifier. * Other users of your account might be able to see the identifier's description, * depending on the actions that they're allowed to perform in Amazon Macie.

*/ inline CreateCustomDataIdentifierRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A custom description of the custom data identifier. The description can * contain as many as 512 characters.

We strongly recommend that you avoid * including any sensitive data in the description of a custom data identifier. * Other users of your account might be able to see the identifier's description, * depending on the actions that they're allowed to perform in Amazon Macie.

*/ inline CreateCustomDataIdentifierRequest& WithDescription(const char* value) { SetDescription(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 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.

*/ 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 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.

*/ 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 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.

*/ 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 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.

*/ 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 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.

*/ inline CreateCustomDataIdentifierRequest& 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 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.

*/ inline CreateCustomDataIdentifierRequest& 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 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.

*/ inline CreateCustomDataIdentifierRequest& 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 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.

*/ inline CreateCustomDataIdentifierRequest& 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 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.

*/ inline CreateCustomDataIdentifierRequest& 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 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.

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

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.

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

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.

*/ 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 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.

*/ 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 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.

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

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.

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

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.

*/ inline CreateCustomDataIdentifierRequest& 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 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.

*/ inline CreateCustomDataIdentifierRequest& 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 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.

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

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.

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

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.

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

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.

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

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.

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

A custom name for the custom data identifier. The name can contain as many as * 128 characters.

We strongly recommend that you avoid including any * sensitive data in the name of a custom data identifier. Other users of your * account might be able to see the identifier's name, depending on the actions * that they're allowed to perform in Amazon Macie.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

A custom name for the custom data identifier. The name can contain as many as * 128 characters.

We strongly recommend that you avoid including any * sensitive data in the name of a custom data identifier. Other users of your * account might be able to see the identifier's name, depending on the actions * that they're allowed to perform in Amazon Macie.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

A custom name for the custom data identifier. The name can contain as many as * 128 characters.

We strongly recommend that you avoid including any * sensitive data in the name of a custom data identifier. Other users of your * account might be able to see the identifier's name, depending on the actions * that they're allowed to perform in Amazon Macie.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

A custom name for the custom data identifier. The name can contain as many as * 128 characters.

We strongly recommend that you avoid including any * sensitive data in the name of a custom data identifier. Other users of your * account might be able to see the identifier's name, depending on the actions * that they're allowed to perform in Amazon Macie.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

A custom name for the custom data identifier. The name can contain as many as * 128 characters.

We strongly recommend that you avoid including any * sensitive data in the name of a custom data identifier. Other users of your * account might be able to see the identifier's name, depending on the actions * that they're allowed to perform in Amazon Macie.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

A custom name for the custom data identifier. The name can contain as many as * 128 characters.

We strongly recommend that you avoid including any * sensitive data in the name of a custom data identifier. Other users of your * account might be able to see the identifier's name, depending on the actions * that they're allowed to perform in Amazon Macie.

*/ inline CreateCustomDataIdentifierRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

A custom name for the custom data identifier. The name can contain as many as * 128 characters.

We strongly recommend that you avoid including any * sensitive data in the name of a custom data identifier. Other users of your * account might be able to see the identifier's name, depending on the actions * that they're allowed to perform in Amazon Macie.

*/ inline CreateCustomDataIdentifierRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

A custom name for the custom data identifier. The name can contain as many as * 128 characters.

We strongly recommend that you avoid including any * sensitive data in the name of a custom data identifier. Other users of your * account might be able to see the identifier's name, depending on the actions * that they're allowed to perform in Amazon Macie.

*/ inline CreateCustomDataIdentifierRequest& WithName(const char* value) { SetName(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 CreateCustomDataIdentifierRequest& 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 CreateCustomDataIdentifierRequest& 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 CreateCustomDataIdentifierRequest& WithRegex(const char* value) { SetRegex(value); return *this;} /** *

A map of key-value pairs that specifies the tags to associate with the custom * data identifier.

A custom data identifier can have a maximum of 50 tags. * Each tag consists of a tag key and an associated tag value. The maximum length * of a tag key is 128 characters. The maximum length of a tag value is 256 * characters.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

A map of key-value pairs that specifies the tags to associate with the custom * data identifier.

A custom data identifier can have a maximum of 50 tags. * Each tag consists of a tag key and an associated tag value. The maximum length * of a tag key is 128 characters. The maximum length of a tag value is 256 * characters.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A map of key-value pairs that specifies the tags to associate with the custom * data identifier.

A custom data identifier can have a maximum of 50 tags. * Each tag consists of a tag key and an associated tag value. The maximum length * of a tag key is 128 characters. The maximum length of a tag value is 256 * characters.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A map of key-value pairs that specifies the tags to associate with the custom * data identifier.

A custom data identifier can have a maximum of 50 tags. * Each tag consists of a tag key and an associated tag value. The maximum length * of a tag key is 128 characters. The maximum length of a tag value is 256 * characters.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A map of key-value pairs that specifies the tags to associate with the custom * data identifier.

A custom data identifier can have a maximum of 50 tags. * Each tag consists of a tag key and an associated tag value. The maximum length * of a tag key is 128 characters. The maximum length of a tag value is 256 * characters.

*/ inline CreateCustomDataIdentifierRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

A map of key-value pairs that specifies the tags to associate with the custom * data identifier.

A custom data identifier can have a maximum of 50 tags. * Each tag consists of a tag key and an associated tag value. The maximum length * of a tag key is 128 characters. The maximum length of a tag value is 256 * characters.

*/ inline CreateCustomDataIdentifierRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

A map of key-value pairs that specifies the tags to associate with the custom * data identifier.

A custom data identifier can have a maximum of 50 tags. * Each tag consists of a tag key and an associated tag value. The maximum length * of a tag key is 128 characters. The maximum length of a tag value is 256 * characters.

*/ inline CreateCustomDataIdentifierRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

A map of key-value pairs that specifies the tags to associate with the custom * data identifier.

A custom data identifier can have a maximum of 50 tags. * Each tag consists of a tag key and an associated tag value. The maximum length * of a tag key is 128 characters. The maximum length of a tag value is 256 * characters.

*/ inline CreateCustomDataIdentifierRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

A map of key-value pairs that specifies the tags to associate with the custom * data identifier.

A custom data identifier can have a maximum of 50 tags. * Each tag consists of a tag key and an associated tag value. The maximum length * of a tag key is 128 characters. The maximum length of a tag value is 256 * characters.

*/ inline CreateCustomDataIdentifierRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

A map of key-value pairs that specifies the tags to associate with the custom * data identifier.

A custom data identifier can have a maximum of 50 tags. * Each tag consists of a tag key and an associated tag value. The maximum length * of a tag key is 128 characters. The maximum length of a tag value is 256 * characters.

*/ inline CreateCustomDataIdentifierRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

A map of key-value pairs that specifies the tags to associate with the custom * data identifier.

A custom data identifier can have a maximum of 50 tags. * Each tag consists of a tag key and an associated tag value. The maximum length * of a tag key is 128 characters. The maximum length of a tag value is 256 * characters.

*/ inline CreateCustomDataIdentifierRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

A map of key-value pairs that specifies the tags to associate with the custom * data identifier.

A custom data identifier can have a maximum of 50 tags. * Each tag consists of a tag key and an associated tag value. The maximum length * of a tag key is 128 characters. The maximum length of a tag value is 256 * characters.

*/ inline CreateCustomDataIdentifierRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

A map of key-value pairs that specifies the tags to associate with the custom * data identifier.

A custom data identifier can have a maximum of 50 tags. * Each tag consists of a tag key and an associated tag value. The maximum length * of a tag key is 128 characters. The maximum length of a tag value is 256 * characters.

*/ inline CreateCustomDataIdentifierRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_clientToken; bool m_clientTokenHasBeenSet; Aws::String m_description; bool m_descriptionHasBeenSet; Aws::Vector m_ignoreWords; bool m_ignoreWordsHasBeenSet; Aws::Vector m_keywords; bool m_keywordsHasBeenSet; int m_maximumMatchDistance; bool m_maximumMatchDistanceHasBeenSet; Aws::String m_name; bool m_nameHasBeenSet; Aws::String m_regex; bool m_regexHasBeenSet; Aws::Map m_tags; bool m_tagsHasBeenSet; }; } // namespace Model } // namespace Macie2 } // namespace Aws