/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Comprehend { namespace Model { /** *

Provides configuration parameters for PII entity redaction.

See * Also:

AWS * API Reference

*/ class RedactionConfig { public: AWS_COMPREHEND_API RedactionConfig(); AWS_COMPREHEND_API RedactionConfig(Aws::Utils::Json::JsonView jsonValue); AWS_COMPREHEND_API RedactionConfig& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

An array of the types of PII entities that Amazon Comprehend detects in the * input text for your request.

*/ inline const Aws::Vector& GetPiiEntityTypes() const{ return m_piiEntityTypes; } /** *

An array of the types of PII entities that Amazon Comprehend detects in the * input text for your request.

*/ inline bool PiiEntityTypesHasBeenSet() const { return m_piiEntityTypesHasBeenSet; } /** *

An array of the types of PII entities that Amazon Comprehend detects in the * input text for your request.

*/ inline void SetPiiEntityTypes(const Aws::Vector& value) { m_piiEntityTypesHasBeenSet = true; m_piiEntityTypes = value; } /** *

An array of the types of PII entities that Amazon Comprehend detects in the * input text for your request.

*/ inline void SetPiiEntityTypes(Aws::Vector&& value) { m_piiEntityTypesHasBeenSet = true; m_piiEntityTypes = std::move(value); } /** *

An array of the types of PII entities that Amazon Comprehend detects in the * input text for your request.

*/ inline RedactionConfig& WithPiiEntityTypes(const Aws::Vector& value) { SetPiiEntityTypes(value); return *this;} /** *

An array of the types of PII entities that Amazon Comprehend detects in the * input text for your request.

*/ inline RedactionConfig& WithPiiEntityTypes(Aws::Vector&& value) { SetPiiEntityTypes(std::move(value)); return *this;} /** *

An array of the types of PII entities that Amazon Comprehend detects in the * input text for your request.

*/ inline RedactionConfig& AddPiiEntityTypes(const PiiEntityType& value) { m_piiEntityTypesHasBeenSet = true; m_piiEntityTypes.push_back(value); return *this; } /** *

An array of the types of PII entities that Amazon Comprehend detects in the * input text for your request.

*/ inline RedactionConfig& AddPiiEntityTypes(PiiEntityType&& value) { m_piiEntityTypesHasBeenSet = true; m_piiEntityTypes.push_back(std::move(value)); return *this; } /** *

Specifies whether the PII entity is redacted with the mask character or the * entity type.

*/ inline const PiiEntitiesDetectionMaskMode& GetMaskMode() const{ return m_maskMode; } /** *

Specifies whether the PII entity is redacted with the mask character or the * entity type.

*/ inline bool MaskModeHasBeenSet() const { return m_maskModeHasBeenSet; } /** *

Specifies whether the PII entity is redacted with the mask character or the * entity type.

*/ inline void SetMaskMode(const PiiEntitiesDetectionMaskMode& value) { m_maskModeHasBeenSet = true; m_maskMode = value; } /** *

Specifies whether the PII entity is redacted with the mask character or the * entity type.

*/ inline void SetMaskMode(PiiEntitiesDetectionMaskMode&& value) { m_maskModeHasBeenSet = true; m_maskMode = std::move(value); } /** *

Specifies whether the PII entity is redacted with the mask character or the * entity type.

*/ inline RedactionConfig& WithMaskMode(const PiiEntitiesDetectionMaskMode& value) { SetMaskMode(value); return *this;} /** *

Specifies whether the PII entity is redacted with the mask character or the * entity type.

*/ inline RedactionConfig& WithMaskMode(PiiEntitiesDetectionMaskMode&& value) { SetMaskMode(std::move(value)); return *this;} /** *

A character that replaces each character in the redacted PII entity.

*/ inline const Aws::String& GetMaskCharacter() const{ return m_maskCharacter; } /** *

A character that replaces each character in the redacted PII entity.

*/ inline bool MaskCharacterHasBeenSet() const { return m_maskCharacterHasBeenSet; } /** *

A character that replaces each character in the redacted PII entity.

*/ inline void SetMaskCharacter(const Aws::String& value) { m_maskCharacterHasBeenSet = true; m_maskCharacter = value; } /** *

A character that replaces each character in the redacted PII entity.

*/ inline void SetMaskCharacter(Aws::String&& value) { m_maskCharacterHasBeenSet = true; m_maskCharacter = std::move(value); } /** *

A character that replaces each character in the redacted PII entity.

*/ inline void SetMaskCharacter(const char* value) { m_maskCharacterHasBeenSet = true; m_maskCharacter.assign(value); } /** *

A character that replaces each character in the redacted PII entity.

*/ inline RedactionConfig& WithMaskCharacter(const Aws::String& value) { SetMaskCharacter(value); return *this;} /** *

A character that replaces each character in the redacted PII entity.

*/ inline RedactionConfig& WithMaskCharacter(Aws::String&& value) { SetMaskCharacter(std::move(value)); return *this;} /** *

A character that replaces each character in the redacted PII entity.

*/ inline RedactionConfig& WithMaskCharacter(const char* value) { SetMaskCharacter(value); return *this;} private: Aws::Vector m_piiEntityTypes; bool m_piiEntityTypesHasBeenSet = false; PiiEntitiesDetectionMaskMode m_maskMode; bool m_maskModeHasBeenSet = false; Aws::String m_maskCharacter; bool m_maskCharacterHasBeenSet = false; }; } // namespace Model } // namespace Comprehend } // namespace Aws