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 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 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 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
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
Returns the “default value” for a type. Read more
source§impl PartialEq<RedactionConfigBuilder> for RedactionConfigBuilder
impl PartialEq<RedactionConfigBuilder> for RedactionConfigBuilder
source§fn eq(&self, other: &RedactionConfigBuilder) -> bool
fn eq(&self, other: &RedactionConfigBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.