/** * 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 TranscribeService { namespace Model { /** *

Makes it possible to redact or flag specified personally identifiable * information (PII) in your transcript. If you use ContentRedaction, * you must also include the sub-parameters: PiiEntityTypes, * RedactionOutput, and RedactionType.

See * Also:

AWS * API Reference

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

Specify the category of information you want to redact; PII * (personally identifiable information) is the only valid value. You can use * PiiEntityTypes to choose which types of PII you want to redact.

*/ inline const RedactionType& GetRedactionType() const{ return m_redactionType; } /** *

Specify the category of information you want to redact; PII * (personally identifiable information) is the only valid value. You can use * PiiEntityTypes to choose which types of PII you want to redact.

*/ inline bool RedactionTypeHasBeenSet() const { return m_redactionTypeHasBeenSet; } /** *

Specify the category of information you want to redact; PII * (personally identifiable information) is the only valid value. You can use * PiiEntityTypes to choose which types of PII you want to redact.

*/ inline void SetRedactionType(const RedactionType& value) { m_redactionTypeHasBeenSet = true; m_redactionType = value; } /** *

Specify the category of information you want to redact; PII * (personally identifiable information) is the only valid value. You can use * PiiEntityTypes to choose which types of PII you want to redact.

*/ inline void SetRedactionType(RedactionType&& value) { m_redactionTypeHasBeenSet = true; m_redactionType = std::move(value); } /** *

Specify the category of information you want to redact; PII * (personally identifiable information) is the only valid value. You can use * PiiEntityTypes to choose which types of PII you want to redact.

*/ inline ContentRedaction& WithRedactionType(const RedactionType& value) { SetRedactionType(value); return *this;} /** *

Specify the category of information you want to redact; PII * (personally identifiable information) is the only valid value. You can use * PiiEntityTypes to choose which types of PII you want to redact.

*/ inline ContentRedaction& WithRedactionType(RedactionType&& value) { SetRedactionType(std::move(value)); return *this;} /** *

Specify if you want only a redacted transcript, or if you want a redacted and * an unredacted transcript.

When you choose redacted Amazon * Transcribe creates only a redacted transcript.

When you choose * redacted_and_unredacted Amazon Transcribe creates a redacted and an * unredacted transcript (as two separate files).

*/ inline const RedactionOutput& GetRedactionOutput() const{ return m_redactionOutput; } /** *

Specify if you want only a redacted transcript, or if you want a redacted and * an unredacted transcript.

When you choose redacted Amazon * Transcribe creates only a redacted transcript.

When you choose * redacted_and_unredacted Amazon Transcribe creates a redacted and an * unredacted transcript (as two separate files).

*/ inline bool RedactionOutputHasBeenSet() const { return m_redactionOutputHasBeenSet; } /** *

Specify if you want only a redacted transcript, or if you want a redacted and * an unredacted transcript.

When you choose redacted Amazon * Transcribe creates only a redacted transcript.

When you choose * redacted_and_unredacted Amazon Transcribe creates a redacted and an * unredacted transcript (as two separate files).

*/ inline void SetRedactionOutput(const RedactionOutput& value) { m_redactionOutputHasBeenSet = true; m_redactionOutput = value; } /** *

Specify if you want only a redacted transcript, or if you want a redacted and * an unredacted transcript.

When you choose redacted Amazon * Transcribe creates only a redacted transcript.

When you choose * redacted_and_unredacted Amazon Transcribe creates a redacted and an * unredacted transcript (as two separate files).

*/ inline void SetRedactionOutput(RedactionOutput&& value) { m_redactionOutputHasBeenSet = true; m_redactionOutput = std::move(value); } /** *

Specify if you want only a redacted transcript, or if you want a redacted and * an unredacted transcript.

When you choose redacted Amazon * Transcribe creates only a redacted transcript.

When you choose * redacted_and_unredacted Amazon Transcribe creates a redacted and an * unredacted transcript (as two separate files).

*/ inline ContentRedaction& WithRedactionOutput(const RedactionOutput& value) { SetRedactionOutput(value); return *this;} /** *

Specify if you want only a redacted transcript, or if you want a redacted and * an unredacted transcript.

When you choose redacted Amazon * Transcribe creates only a redacted transcript.

When you choose * redacted_and_unredacted Amazon Transcribe creates a redacted and an * unredacted transcript (as two separate files).

*/ inline ContentRedaction& WithRedactionOutput(RedactionOutput&& value) { SetRedactionOutput(std::move(value)); return *this;} /** *

Specify which types of personally identifiable information (PII) you want to * redact in your transcript. You can include as many types as you'd like, or you * can select ALL.

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

Specify which types of personally identifiable information (PII) you want to * redact in your transcript. You can include as many types as you'd like, or you * can select ALL.

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

Specify which types of personally identifiable information (PII) you want to * redact in your transcript. You can include as many types as you'd like, or you * can select ALL.

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

Specify which types of personally identifiable information (PII) you want to * redact in your transcript. You can include as many types as you'd like, or you * can select ALL.

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

Specify which types of personally identifiable information (PII) you want to * redact in your transcript. You can include as many types as you'd like, or you * can select ALL.

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

Specify which types of personally identifiable information (PII) you want to * redact in your transcript. You can include as many types as you'd like, or you * can select ALL.

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

Specify which types of personally identifiable information (PII) you want to * redact in your transcript. You can include as many types as you'd like, or you * can select ALL.

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

Specify which types of personally identifiable information (PII) you want to * redact in your transcript. You can include as many types as you'd like, or you * can select ALL.

*/ inline ContentRedaction& AddPiiEntityTypes(PiiEntityType&& value) { m_piiEntityTypesHasBeenSet = true; m_piiEntityTypes.push_back(std::move(value)); return *this; } private: RedactionType m_redactionType; bool m_redactionTypeHasBeenSet = false; RedactionOutput m_redactionOutput; bool m_redactionOutputHasBeenSet = false; Aws::Vector m_piiEntityTypes; bool m_piiEntityTypesHasBeenSet = false; }; } // namespace Model } // namespace TranscribeService } // namespace Aws