/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Macie2 { namespace Model { class GetCustomDataIdentifierResult { public: AWS_MACIE2_API GetCustomDataIdentifierResult(); AWS_MACIE2_API GetCustomDataIdentifierResult(const Aws::AmazonWebServiceResult& result); AWS_MACIE2_API GetCustomDataIdentifierResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The Amazon Resource Name (ARN) of the custom data identifier.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) of the custom data identifier.

*/ inline void SetArn(const Aws::String& value) { m_arn = value; } /** *

The Amazon Resource Name (ARN) of the custom data identifier.

*/ inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the custom data identifier.

*/ inline void SetArn(const char* value) { m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) of the custom data identifier.

*/ inline GetCustomDataIdentifierResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the custom data identifier.

*/ inline GetCustomDataIdentifierResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the custom data identifier.

*/ inline GetCustomDataIdentifierResult& WithArn(const char* value) { SetArn(value); return *this;} /** *

The date and time, in UTC and extended ISO 8601 format, when the custom data * identifier was created.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The date and time, in UTC and extended ISO 8601 format, when the custom data * identifier was created.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; } /** *

The date and time, in UTC and extended ISO 8601 format, when the custom data * identifier was created.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); } /** *

The date and time, in UTC and extended ISO 8601 format, when the custom data * identifier was created.

*/ inline GetCustomDataIdentifierResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The date and time, in UTC and extended ISO 8601 format, when the custom data * identifier was created.

*/ inline GetCustomDataIdentifierResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

Specifies whether the custom data identifier was deleted. If you delete a * custom data identifier, Amazon Macie doesn't delete it permanently. Instead, it * soft deletes the identifier.

*/ inline bool GetDeleted() const{ return m_deleted; } /** *

Specifies whether the custom data identifier was deleted. If you delete a * custom data identifier, Amazon Macie doesn't delete it permanently. Instead, it * soft deletes the identifier.

*/ inline void SetDeleted(bool value) { m_deleted = value; } /** *

Specifies whether the custom data identifier was deleted. If you delete a * custom data identifier, Amazon Macie doesn't delete it permanently. Instead, it * soft deletes the identifier.

*/ inline GetCustomDataIdentifierResult& WithDeleted(bool value) { SetDeleted(value); return *this;} /** *

The custom description of the custom data identifier.

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

The custom description of the custom data identifier.

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

The custom description of the custom data identifier.

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

The custom description of the custom data identifier.

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

The custom description of the custom data identifier.

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

The custom description of the custom data identifier.

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

The custom description of the custom data identifier.

*/ inline GetCustomDataIdentifierResult& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The unique identifier for the custom data identifier.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The unique identifier for the custom data identifier.

*/ inline void SetId(const Aws::String& value) { m_id = value; } /** *

The unique identifier for the custom data identifier.

*/ inline void SetId(Aws::String&& value) { m_id = std::move(value); } /** *

The unique identifier for the custom data identifier.

*/ inline void SetId(const char* value) { m_id.assign(value); } /** *

The unique identifier for the custom data identifier.

*/ inline GetCustomDataIdentifierResult& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The unique identifier for the custom data identifier.

*/ inline GetCustomDataIdentifierResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The unique identifier for the custom data identifier.

*/ inline GetCustomDataIdentifierResult& WithId(const char* value) { SetId(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. 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. Ignore words are case * sensitive.

*/ inline void SetIgnoreWords(const Aws::Vector& value) { 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. Ignore words are case * sensitive.

*/ inline void SetIgnoreWords(Aws::Vector&& value) { 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. Ignore words are case * sensitive.

*/ inline GetCustomDataIdentifierResult& 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. Ignore words are case * sensitive.

*/ inline GetCustomDataIdentifierResult& 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. Ignore words are case * sensitive.

*/ inline GetCustomDataIdentifierResult& AddIgnoreWords(const Aws::String& value) { 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. Ignore words are case * sensitive.

*/ inline GetCustomDataIdentifierResult& AddIgnoreWords(Aws::String&& value) { 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. Ignore words are case * sensitive.

*/ inline GetCustomDataIdentifierResult& AddIgnoreWords(const char* value) { 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. 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. Keywords aren't case sensitive.

*/ inline void SetKeywords(const Aws::Vector& value) { 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. Keywords aren't case sensitive.

*/ inline void SetKeywords(Aws::Vector&& value) { 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. Keywords aren't case sensitive.

*/ inline GetCustomDataIdentifierResult& 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. Keywords aren't case sensitive.

*/ inline GetCustomDataIdentifierResult& 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. Keywords aren't case sensitive.

*/ inline GetCustomDataIdentifierResult& AddKeywords(const Aws::String& value) { 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. Keywords aren't case sensitive.

*/ inline GetCustomDataIdentifierResult& AddKeywords(Aws::String&& value) { 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. Keywords aren't case sensitive.

*/ inline GetCustomDataIdentifierResult& AddKeywords(const char* value) { 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. Otherwise, Macie excludes the result.

*/ 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. Otherwise, Macie excludes the result.

*/ inline void SetMaximumMatchDistance(int value) { 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. Otherwise, Macie excludes the result.

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

The custom name of the custom data identifier.

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

The custom name of the custom data identifier.

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

The custom name of the custom data identifier.

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

The custom name of the custom data identifier.

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

The custom name of the custom data identifier.

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

The custom name of the custom data identifier.

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

The custom name of the custom data identifier.

*/ inline GetCustomDataIdentifierResult& WithName(const char* value) { SetName(value); return *this;} /** *

The regular expression (regex) that defines the pattern to match.

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

The regular expression (regex) that defines the pattern to match.

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

The regular expression (regex) that defines the pattern to match.

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

The regular expression (regex) that defines the pattern to match.

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

The regular expression (regex) that defines the pattern to match.

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

The regular expression (regex) that defines the pattern to match.

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

The regular expression (regex) that defines the pattern to match.

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

Specifies the severity that's assigned to findings that the custom data * identifier produces, based on the number of occurrences of text that match the * custom data identifier's detection criteria. By default, Amazon Macie creates * findings for S3 objects that contain at least one occurrence of text that * matches the detection criteria, and Macie assigns the MEDIUM severity to those * findings.

*/ inline const Aws::Vector& GetSeverityLevels() const{ return m_severityLevels; } /** *

Specifies the severity that's assigned to findings that the custom data * identifier produces, based on the number of occurrences of text that match the * custom data identifier's detection criteria. By default, Amazon Macie creates * findings for S3 objects that contain at least one occurrence of text that * matches the detection criteria, and Macie assigns the MEDIUM severity to those * findings.

*/ inline void SetSeverityLevels(const Aws::Vector& value) { m_severityLevels = value; } /** *

Specifies the severity that's assigned to findings that the custom data * identifier produces, based on the number of occurrences of text that match the * custom data identifier's detection criteria. By default, Amazon Macie creates * findings for S3 objects that contain at least one occurrence of text that * matches the detection criteria, and Macie assigns the MEDIUM severity to those * findings.

*/ inline void SetSeverityLevels(Aws::Vector&& value) { m_severityLevels = std::move(value); } /** *

Specifies the severity that's assigned to findings that the custom data * identifier produces, based on the number of occurrences of text that match the * custom data identifier's detection criteria. By default, Amazon Macie creates * findings for S3 objects that contain at least one occurrence of text that * matches the detection criteria, and Macie assigns the MEDIUM severity to those * findings.

*/ inline GetCustomDataIdentifierResult& WithSeverityLevels(const Aws::Vector& value) { SetSeverityLevels(value); return *this;} /** *

Specifies the severity that's assigned to findings that the custom data * identifier produces, based on the number of occurrences of text that match the * custom data identifier's detection criteria. By default, Amazon Macie creates * findings for S3 objects that contain at least one occurrence of text that * matches the detection criteria, and Macie assigns the MEDIUM severity to those * findings.

*/ inline GetCustomDataIdentifierResult& WithSeverityLevels(Aws::Vector&& value) { SetSeverityLevels(std::move(value)); return *this;} /** *

Specifies the severity that's assigned to findings that the custom data * identifier produces, based on the number of occurrences of text that match the * custom data identifier's detection criteria. By default, Amazon Macie creates * findings for S3 objects that contain at least one occurrence of text that * matches the detection criteria, and Macie assigns the MEDIUM severity to those * findings.

*/ inline GetCustomDataIdentifierResult& AddSeverityLevels(const SeverityLevel& value) { m_severityLevels.push_back(value); return *this; } /** *

Specifies the severity that's assigned to findings that the custom data * identifier produces, based on the number of occurrences of text that match the * custom data identifier's detection criteria. By default, Amazon Macie creates * findings for S3 objects that contain at least one occurrence of text that * matches the detection criteria, and Macie assigns the MEDIUM severity to those * findings.

*/ inline GetCustomDataIdentifierResult& AddSeverityLevels(SeverityLevel&& value) { m_severityLevels.push_back(std::move(value)); return *this; } /** *

A map of key-value pairs that identifies the tags (keys and values) that are * associated with the custom data identifier.

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

A map of key-value pairs that identifies the tags (keys and values) that are * associated with the custom data identifier.

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

A map of key-value pairs that identifies the tags (keys and values) that are * associated with the custom data identifier.

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

A map of key-value pairs that identifies the tags (keys and values) that are * associated with the custom data identifier.

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

A map of key-value pairs that identifies the tags (keys and values) that are * associated with the custom data identifier.

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

A map of key-value pairs that identifies the tags (keys and values) that are * associated with the custom data identifier.

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

A map of key-value pairs that identifies the tags (keys and values) that are * associated with the custom data identifier.

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

A map of key-value pairs that identifies the tags (keys and values) that are * associated with the custom data identifier.

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

A map of key-value pairs that identifies the tags (keys and values) that are * associated with the custom data identifier.

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

A map of key-value pairs that identifies the tags (keys and values) that are * associated with the custom data identifier.

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

A map of key-value pairs that identifies the tags (keys and values) that are * associated with the custom data identifier.

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

A map of key-value pairs that identifies the tags (keys and values) that are * associated with the custom data identifier.

*/ inline GetCustomDataIdentifierResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetCustomDataIdentifierResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetCustomDataIdentifierResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetCustomDataIdentifierResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_arn; Aws::Utils::DateTime m_createdAt; bool m_deleted; Aws::String m_description; Aws::String m_id; Aws::Vector m_ignoreWords; Aws::Vector m_keywords; int m_maximumMatchDistance; Aws::String m_name; Aws::String m_regex; Aws::Vector m_severityLevels; Aws::Map m_tags; Aws::String m_requestId; }; } // namespace Model } // namespace Macie2 } // namespace Aws