Struct aws_sdk_transcribe::types::builders::ContentRedactionBuilder
source · #[non_exhaustive]pub struct ContentRedactionBuilder { /* private fields */ }
Expand description
A builder for ContentRedaction
.
Implementations§
source§impl ContentRedactionBuilder
impl ContentRedactionBuilder
sourcepub fn redaction_type(self, input: RedactionType) -> Self
pub fn redaction_type(self, input: RedactionType) -> Self
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. If you do not include PiiEntityTypes
in your request, all PII is redacted.
sourcepub fn set_redaction_type(self, input: Option<RedactionType>) -> Self
pub fn set_redaction_type(self, input: Option<RedactionType>) -> Self
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. If you do not include PiiEntityTypes
in your request, all PII is redacted.
sourcepub fn get_redaction_type(&self) -> &Option<RedactionType>
pub fn get_redaction_type(&self) -> &Option<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. If you do not include PiiEntityTypes
in your request, all PII is redacted.
sourcepub fn redaction_output(self, input: RedactionOutput) -> Self
pub fn redaction_output(self, input: RedactionOutput) -> Self
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).
sourcepub fn set_redaction_output(self, input: Option<RedactionOutput>) -> Self
pub fn set_redaction_output(self, input: Option<RedactionOutput>) -> Self
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).
sourcepub fn get_redaction_output(&self) -> &Option<RedactionOutput>
pub fn get_redaction_output(&self) -> &Option<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).
sourcepub fn pii_entity_types(self, input: PiiEntityType) -> Self
pub fn pii_entity_types(self, input: PiiEntityType) -> Self
Appends an item to pii_entity_types
.
To override the contents of this collection use set_pii_entity_types
.
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
. If you do not include PiiEntityTypes
in your request, all PII is redacted.
sourcepub fn set_pii_entity_types(self, input: Option<Vec<PiiEntityType>>) -> Self
pub fn set_pii_entity_types(self, input: Option<Vec<PiiEntityType>>) -> Self
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
. If you do not include PiiEntityTypes
in your request, all PII is redacted.
sourcepub fn get_pii_entity_types(&self) -> &Option<Vec<PiiEntityType>>
pub fn get_pii_entity_types(&self) -> &Option<Vec<PiiEntityType>>
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
. If you do not include PiiEntityTypes
in your request, all PII is redacted.
sourcepub fn build(self) -> Result<ContentRedaction, BuildError>
pub fn build(self) -> Result<ContentRedaction, BuildError>
Consumes the builder and constructs a ContentRedaction
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ContentRedactionBuilder
impl Clone for ContentRedactionBuilder
source§fn clone(&self) -> ContentRedactionBuilder
fn clone(&self) -> ContentRedactionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ContentRedactionBuilder
impl Debug for ContentRedactionBuilder
source§impl Default for ContentRedactionBuilder
impl Default for ContentRedactionBuilder
source§fn default() -> ContentRedactionBuilder
fn default() -> ContentRedactionBuilder
source§impl PartialEq for ContentRedactionBuilder
impl PartialEq for ContentRedactionBuilder
source§fn eq(&self, other: &ContentRedactionBuilder) -> bool
fn eq(&self, other: &ContentRedactionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.