/** * 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 GetAllowListResult { public: AWS_MACIE2_API GetAllowListResult(); AWS_MACIE2_API GetAllowListResult(const Aws::AmazonWebServiceResult& result); AWS_MACIE2_API GetAllowListResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The Amazon Resource Name (ARN) of the allow list.

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

The Amazon Resource Name (ARN) of the allow list.

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

The Amazon Resource Name (ARN) of the allow list.

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

The Amazon Resource Name (ARN) of the allow list.

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

The Amazon Resource Name (ARN) of the allow list.

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

The Amazon Resource Name (ARN) of the allow list.

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

The Amazon Resource Name (ARN) of the allow list.

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

The date and time, in UTC and extended ISO 8601 format, when the allow list * was created in Amazon Macie.

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

The date and time, in UTC and extended ISO 8601 format, when the allow list * was created in Amazon Macie.

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

The date and time, in UTC and extended ISO 8601 format, when the allow list * was created in Amazon Macie.

*/ 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 allow list * was created in Amazon Macie.

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

The date and time, in UTC and extended ISO 8601 format, when the allow list * was created in Amazon Macie.

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

The criteria that specify the text or text pattern to ignore. The criteria * can be the location and name of an S3 object that lists specific text to ignore * (s3WordsList), or a regular expression (regex) that defines a text pattern to * ignore.

*/ inline const AllowListCriteria& GetCriteria() const{ return m_criteria; } /** *

The criteria that specify the text or text pattern to ignore. The criteria * can be the location and name of an S3 object that lists specific text to ignore * (s3WordsList), or a regular expression (regex) that defines a text pattern to * ignore.

*/ inline void SetCriteria(const AllowListCriteria& value) { m_criteria = value; } /** *

The criteria that specify the text or text pattern to ignore. The criteria * can be the location and name of an S3 object that lists specific text to ignore * (s3WordsList), or a regular expression (regex) that defines a text pattern to * ignore.

*/ inline void SetCriteria(AllowListCriteria&& value) { m_criteria = std::move(value); } /** *

The criteria that specify the text or text pattern to ignore. The criteria * can be the location and name of an S3 object that lists specific text to ignore * (s3WordsList), or a regular expression (regex) that defines a text pattern to * ignore.

*/ inline GetAllowListResult& WithCriteria(const AllowListCriteria& value) { SetCriteria(value); return *this;} /** *

The criteria that specify the text or text pattern to ignore. The criteria * can be the location and name of an S3 object that lists specific text to ignore * (s3WordsList), or a regular expression (regex) that defines a text pattern to * ignore.

*/ inline GetAllowListResult& WithCriteria(AllowListCriteria&& value) { SetCriteria(std::move(value)); return *this;} /** *

The custom description of the allow list.

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

The custom description of the allow list.

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

The custom description of the allow list.

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

The custom description of the allow list.

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

The custom description of the allow list.

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

The custom description of the allow list.

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

The custom description of the allow list.

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

The unique identifier for the allow list.

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

The unique identifier for the allow list.

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

The unique identifier for the allow list.

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

The unique identifier for the allow list.

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

The unique identifier for the allow list.

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

The unique identifier for the allow list.

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

The unique identifier for the allow list.

*/ inline GetAllowListResult& WithId(const char* value) { SetId(value); return *this;} /** *

The custom name of the allow list.

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

The custom name of the allow list.

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

The custom name of the allow list.

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

The custom name of the allow list.

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

The custom name of the allow list.

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

The custom name of the allow list.

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

The custom name of the allow list.

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

The current status of the allow list, which indicates whether Amazon Macie * can access and use the list's criteria.

*/ inline const AllowListStatus& GetStatus() const{ return m_status; } /** *

The current status of the allow list, which indicates whether Amazon Macie * can access and use the list's criteria.

*/ inline void SetStatus(const AllowListStatus& value) { m_status = value; } /** *

The current status of the allow list, which indicates whether Amazon Macie * can access and use the list's criteria.

*/ inline void SetStatus(AllowListStatus&& value) { m_status = std::move(value); } /** *

The current status of the allow list, which indicates whether Amazon Macie * can access and use the list's criteria.

*/ inline GetAllowListResult& WithStatus(const AllowListStatus& value) { SetStatus(value); return *this;} /** *

The current status of the allow list, which indicates whether Amazon Macie * can access and use the list's criteria.

*/ inline GetAllowListResult& WithStatus(AllowListStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

A map of key-value pairs that specifies which tags (keys and values) are * associated with the allow list.

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

A map of key-value pairs that specifies which tags (keys and values) are * associated with the allow list.

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

A map of key-value pairs that specifies which tags (keys and values) are * associated with the allow list.

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

A map of key-value pairs that specifies which tags (keys and values) are * associated with the allow list.

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

A map of key-value pairs that specifies which tags (keys and values) are * associated with the allow list.

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

A map of key-value pairs that specifies which tags (keys and values) are * associated with the allow list.

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

A map of key-value pairs that specifies which tags (keys and values) are * associated with the allow list.

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

A map of key-value pairs that specifies which tags (keys and values) are * associated with the allow list.

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

A map of key-value pairs that specifies which tags (keys and values) are * associated with the allow list.

*/ inline GetAllowListResult& 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 specifies which tags (keys and values) are * associated with the allow list.

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

A map of key-value pairs that specifies which tags (keys and values) are * associated with the allow list.

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

A map of key-value pairs that specifies which tags (keys and values) are * associated with the allow list.

*/ inline GetAllowListResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } /** *

The date and time, in UTC and extended ISO 8601 format, when the allow list's * settings were most recently changed in Amazon Macie.

*/ inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; } /** *

The date and time, in UTC and extended ISO 8601 format, when the allow list's * settings were most recently changed in Amazon Macie.

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

The date and time, in UTC and extended ISO 8601 format, when the allow list's * settings were most recently changed in Amazon Macie.

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

The date and time, in UTC and extended ISO 8601 format, when the allow list's * settings were most recently changed in Amazon Macie.

*/ inline GetAllowListResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;} /** *

The date and time, in UTC and extended ISO 8601 format, when the allow list's * settings were most recently changed in Amazon Macie.

*/ inline GetAllowListResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(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 GetAllowListResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetAllowListResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetAllowListResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_arn; Aws::Utils::DateTime m_createdAt; AllowListCriteria m_criteria; Aws::String m_description; Aws::String m_id; Aws::String m_name; AllowListStatus m_status; Aws::Map m_tags; Aws::Utils::DateTime m_updatedAt; Aws::String m_requestId; }; } // namespace Model } // namespace Macie2 } // namespace Aws