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 ==.