/** * 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 CreateAllowListRequest : public Macie2Request { public: AWS_MACIE2_API CreateAllowListRequest(); // 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 "CreateAllowList"; } AWS_MACIE2_API 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 CreateAllowListRequest& 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 CreateAllowListRequest& 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 CreateAllowListRequest& WithClientToken(const char* value) { SetClientToken(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 bool CriteriaHasBeenSet() const { return m_criteriaHasBeenSet; } /** *

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_criteriaHasBeenSet = true; 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_criteriaHasBeenSet = true; 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 CreateAllowListRequest& 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 CreateAllowListRequest& WithCriteria(AllowListCriteria&& value) { SetCriteria(std::move(value)); return *this;} /** *

A custom description of the allow list. The description can contain as many * as 512 characters.

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

A custom description of the allow list. The description can contain as many * as 512 characters.

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

A custom description of the allow list. The description can contain as many * as 512 characters.

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

A custom description of the allow list. The description can contain as many * as 512 characters.

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

A custom description of the allow list. The description can contain as many * as 512 characters.

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

A custom description of the allow list. The description can contain as many * as 512 characters.

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

A custom description of the allow list. The description can contain as many * as 512 characters.

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

A custom description of the allow list. The description can contain as many * as 512 characters.

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

A custom name for the allow list. The name can contain as many as 128 * characters.

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

A custom name for the allow list. The name can contain as many as 128 * characters.

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

A custom name for the allow list. The name can contain as many as 128 * characters.

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

A custom name for the allow list. The name can contain as many as 128 * characters.

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

A custom name for the allow list. The name can contain as many as 128 * characters.

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

A custom name for the allow list. The name can contain as many as 128 * characters.

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

A custom name for the allow list. The name can contain as many as 128 * characters.

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

A custom name for the allow list. The name can contain as many as 128 * characters.

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

A map of key-value pairs that specifies the tags to associate with the allow * list.

An allow list 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 allow * list.

An allow list 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 allow * list.

An allow list 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 allow * list.

An allow list 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 allow * list.

An allow list 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 CreateAllowListRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

A map of key-value pairs that specifies the tags to associate with the allow * list.

An allow list 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 CreateAllowListRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

A map of key-value pairs that specifies the tags to associate with the allow * list.

An allow list 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 CreateAllowListRequest& 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 allow * list.

An allow list 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 CreateAllowListRequest& 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 allow * list.

An allow list 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 CreateAllowListRequest& 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 allow * list.

An allow list 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 CreateAllowListRequest& 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 allow * list.

An allow list 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 CreateAllowListRequest& 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 allow * list.

An allow list 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 CreateAllowListRequest& 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 allow * list.

An allow list 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 CreateAllowListRequest& 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 = false; AllowListCriteria m_criteria; bool m_criteriaHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws