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

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 that defines a text pattern to ignore * (regex).

You can change a list's underlying criteria, such as the name of * the S3 object or the regular expression to use. However, you can't change the * type from s3WordsList to regex or the other way around.

*/ 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 that defines a text pattern to ignore * (regex).

You can change a list's underlying criteria, such as the name of * the S3 object or the regular expression to use. However, you can't change the * type from s3WordsList to regex or the other way around.

*/ 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 that defines a text pattern to ignore * (regex).

You can change a list's underlying criteria, such as the name of * the S3 object or the regular expression to use. However, you can't change the * type from s3WordsList to regex or the other way around.

*/ 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 that defines a text pattern to ignore * (regex).

You can change a list's underlying criteria, such as the name of * the S3 object or the regular expression to use. However, you can't change the * type from s3WordsList to regex or the other way around.

*/ 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 that defines a text pattern to ignore * (regex).

You can change a list's underlying criteria, such as the name of * the S3 object or the regular expression to use. However, you can't change the * type from s3WordsList to regex or the other way around.

*/ inline UpdateAllowListRequest& 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 that defines a text pattern to ignore * (regex).

You can change a list's underlying criteria, such as the name of * the S3 object or the regular expression to use. However, you can't change the * type from s3WordsList to regex or the other way around.

*/ inline UpdateAllowListRequest& 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 UpdateAllowListRequest& 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 UpdateAllowListRequest& 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 UpdateAllowListRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The unique identifier for the Amazon Macie resource that the request applies * to.

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

The unique identifier for the Amazon Macie resource that the request applies * to.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The unique identifier for the Amazon Macie resource that the request applies * to.

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

The unique identifier for the Amazon Macie resource that the request applies * to.

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

The unique identifier for the Amazon Macie resource that the request applies * to.

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

The unique identifier for the Amazon Macie resource that the request applies * to.

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

The unique identifier for the Amazon Macie resource that the request applies * to.

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

The unique identifier for the Amazon Macie resource that the request applies * to.

*/ inline UpdateAllowListRequest& WithId(const char* value) { SetId(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 UpdateAllowListRequest& 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 UpdateAllowListRequest& 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 UpdateAllowListRequest& WithName(const char* value) { SetName(value); return *this;} private: AllowListCriteria m_criteria; bool m_criteriaHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws