Struct aws_sdk_comprehend::types::builders::RedactionConfigBuilder
source · #[non_exhaustive]pub struct RedactionConfigBuilder { /* private fields */ }Expand description
A builder for RedactionConfig.
Implementations§
source§impl RedactionConfigBuilder
impl RedactionConfigBuilder
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.
An array of the types of PII entities that Amazon Comprehend detects in the input text for your request.
sourcepub fn set_pii_entity_types(self, input: Option<Vec<PiiEntityType>>) -> Self
pub fn set_pii_entity_types(self, input: Option<Vec<PiiEntityType>>) -> Self
An array of the types of PII entities that Amazon Comprehend detects in the input text for your request.
sourcepub fn get_pii_entity_types(&self) -> &Option<Vec<PiiEntityType>>
pub fn get_pii_entity_types(&self) -> &Option<Vec<PiiEntityType>>
An array of the types of PII entities that Amazon Comprehend detects in the input text for your request.
sourcepub fn mask_mode(self, input: PiiEntitiesDetectionMaskMode) -> Self
pub fn mask_mode(self, input: PiiEntitiesDetectionMaskMode) -> Self
Specifies whether the PII entity is redacted with the mask character or the entity type.
sourcepub fn set_mask_mode(self, input: Option<PiiEntitiesDetectionMaskMode>) -> Self
pub fn set_mask_mode(self, input: Option<PiiEntitiesDetectionMaskMode>) -> Self
Specifies whether the PII entity is redacted with the mask character or the entity type.
sourcepub fn get_mask_mode(&self) -> &Option<PiiEntitiesDetectionMaskMode>
pub fn get_mask_mode(&self) -> &Option<PiiEntitiesDetectionMaskMode>
Specifies whether the PII entity is redacted with the mask character or the entity type.
sourcepub fn mask_character(self, input: impl Into<String>) -> Self
pub fn mask_character(self, input: impl Into<String>) -> Self
A character that replaces each character in the redacted PII entity.
sourcepub fn set_mask_character(self, input: Option<String>) -> Self
pub fn set_mask_character(self, input: Option<String>) -> Self
A character that replaces each character in the redacted PII entity.
sourcepub fn get_mask_character(&self) -> &Option<String>
pub fn get_mask_character(&self) -> &Option<String>
A character that replaces each character in the redacted PII entity.
sourcepub fn build(self) -> RedactionConfig
pub fn build(self) -> RedactionConfig
Consumes the builder and constructs a RedactionConfig.
Trait Implementations§
source§impl Clone for RedactionConfigBuilder
impl Clone for RedactionConfigBuilder
source§fn clone(&self) -> RedactionConfigBuilder
fn clone(&self) -> RedactionConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for RedactionConfigBuilder
impl Debug for RedactionConfigBuilder
source§impl Default for RedactionConfigBuilder
impl Default for RedactionConfigBuilder
source§fn default() -> RedactionConfigBuilder
fn default() -> RedactionConfigBuilder
source§impl PartialEq for RedactionConfigBuilder
impl PartialEq for RedactionConfigBuilder
source§fn eq(&self, other: &RedactionConfigBuilder) -> bool
fn eq(&self, other: &RedactionConfigBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for RedactionConfigBuilder
Auto Trait Implementations§
impl Freeze for RedactionConfigBuilder
impl RefUnwindSafe for RedactionConfigBuilder
impl Send for RedactionConfigBuilder
impl Sync for RedactionConfigBuilder
impl Unpin for RedactionConfigBuilder
impl UnwindSafe for RedactionConfigBuilder
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