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 ==.impl StructuralPartialEq for ContentRedactionBuilder
Auto Trait Implementations§
impl Freeze for ContentRedactionBuilder
impl RefUnwindSafe for ContentRedactionBuilder
impl Send for ContentRedactionBuilder
impl Sync for ContentRedactionBuilder
impl Unpin for ContentRedactionBuilder
impl UnwindSafe for ContentRedactionBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more