Struct aws_sdk_comprehend::operation::start_pii_entities_detection_job::builders::StartPiiEntitiesDetectionJobInputBuilder
source · #[non_exhaustive]pub struct StartPiiEntitiesDetectionJobInputBuilder { /* private fields */ }Expand description
A builder for StartPiiEntitiesDetectionJobInput.
Implementations§
source§impl StartPiiEntitiesDetectionJobInputBuilder
impl StartPiiEntitiesDetectionJobInputBuilder
sourcepub fn input_data_config(self, input: InputDataConfig) -> Self
pub fn input_data_config(self, input: InputDataConfig) -> Self
The input properties for a PII entities detection job.
This field is required.sourcepub fn set_input_data_config(self, input: Option<InputDataConfig>) -> Self
pub fn set_input_data_config(self, input: Option<InputDataConfig>) -> Self
The input properties for a PII entities detection job.
sourcepub fn get_input_data_config(&self) -> &Option<InputDataConfig>
pub fn get_input_data_config(&self) -> &Option<InputDataConfig>
The input properties for a PII entities detection job.
sourcepub fn output_data_config(self, input: OutputDataConfig) -> Self
pub fn output_data_config(self, input: OutputDataConfig) -> Self
Provides configuration parameters for the output of PII entity detection jobs.
This field is required.sourcepub fn set_output_data_config(self, input: Option<OutputDataConfig>) -> Self
pub fn set_output_data_config(self, input: Option<OutputDataConfig>) -> Self
Provides configuration parameters for the output of PII entity detection jobs.
sourcepub fn get_output_data_config(&self) -> &Option<OutputDataConfig>
pub fn get_output_data_config(&self) -> &Option<OutputDataConfig>
Provides configuration parameters for the output of PII entity detection jobs.
sourcepub fn mode(self, input: PiiEntitiesDetectionMode) -> Self
pub fn mode(self, input: PiiEntitiesDetectionMode) -> Self
Specifies whether the output provides the locations (offsets) of PII entities or a file in which PII entities are redacted.
This field is required.sourcepub fn set_mode(self, input: Option<PiiEntitiesDetectionMode>) -> Self
pub fn set_mode(self, input: Option<PiiEntitiesDetectionMode>) -> Self
Specifies whether the output provides the locations (offsets) of PII entities or a file in which PII entities are redacted.
sourcepub fn get_mode(&self) -> &Option<PiiEntitiesDetectionMode>
pub fn get_mode(&self) -> &Option<PiiEntitiesDetectionMode>
Specifies whether the output provides the locations (offsets) of PII entities or a file in which PII entities are redacted.
sourcepub fn redaction_config(self, input: RedactionConfig) -> Self
pub fn redaction_config(self, input: RedactionConfig) -> Self
Provides configuration parameters for PII entity redaction.
This parameter is required if you set the Mode parameter to ONLY_REDACTION. In that case, you must provide a RedactionConfig definition that includes the PiiEntityTypes parameter.
sourcepub fn set_redaction_config(self, input: Option<RedactionConfig>) -> Self
pub fn set_redaction_config(self, input: Option<RedactionConfig>) -> Self
Provides configuration parameters for PII entity redaction.
This parameter is required if you set the Mode parameter to ONLY_REDACTION. In that case, you must provide a RedactionConfig definition that includes the PiiEntityTypes parameter.
sourcepub fn get_redaction_config(&self) -> &Option<RedactionConfig>
pub fn get_redaction_config(&self) -> &Option<RedactionConfig>
Provides configuration parameters for PII entity redaction.
This parameter is required if you set the Mode parameter to ONLY_REDACTION. In that case, you must provide a RedactionConfig definition that includes the PiiEntityTypes parameter.
sourcepub fn data_access_role_arn(self, input: impl Into<String>) -> Self
pub fn data_access_role_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data.
This field is required.sourcepub fn set_data_access_role_arn(self, input: Option<String>) -> Self
pub fn set_data_access_role_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data.
sourcepub fn get_data_access_role_arn(&self) -> &Option<String>
pub fn get_data_access_role_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data.
sourcepub fn set_job_name(self, input: Option<String>) -> Self
pub fn set_job_name(self, input: Option<String>) -> Self
The identifier of the job.
sourcepub fn get_job_name(&self) -> &Option<String>
pub fn get_job_name(&self) -> &Option<String>
The identifier of the job.
sourcepub fn language_code(self, input: LanguageCode) -> Self
pub fn language_code(self, input: LanguageCode) -> Self
The language of the input documents. Currently, English is the only valid language.
This field is required.sourcepub fn set_language_code(self, input: Option<LanguageCode>) -> Self
pub fn set_language_code(self, input: Option<LanguageCode>) -> Self
The language of the input documents. Currently, English is the only valid language.
sourcepub fn get_language_code(&self) -> &Option<LanguageCode>
pub fn get_language_code(&self) -> &Option<LanguageCode>
The language of the input documents. Currently, English is the only valid language.
sourcepub fn client_request_token(self, input: impl Into<String>) -> Self
pub fn client_request_token(self, input: impl Into<String>) -> Self
A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.
sourcepub fn set_client_request_token(self, input: Option<String>) -> Self
pub fn set_client_request_token(self, input: Option<String>) -> Self
A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.
sourcepub fn get_client_request_token(&self) -> &Option<String>
pub fn get_client_request_token(&self) -> &Option<String>
A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.
Appends an item to tags.
To override the contents of this collection use set_tags.
Tags to associate with the PII entities detection job. A tag is a key-value pair that adds metadata to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a resource to indicate its use by the sales department.
Tags to associate with the PII entities detection job. A tag is a key-value pair that adds metadata to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a resource to indicate its use by the sales department.
Tags to associate with the PII entities detection job. A tag is a key-value pair that adds metadata to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a resource to indicate its use by the sales department.
sourcepub fn build(self) -> Result<StartPiiEntitiesDetectionJobInput, BuildError>
pub fn build(self) -> Result<StartPiiEntitiesDetectionJobInput, BuildError>
Consumes the builder and constructs a StartPiiEntitiesDetectionJobInput.
source§impl StartPiiEntitiesDetectionJobInputBuilder
impl StartPiiEntitiesDetectionJobInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<StartPiiEntitiesDetectionJobOutput, SdkError<StartPiiEntitiesDetectionJobError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<StartPiiEntitiesDetectionJobOutput, SdkError<StartPiiEntitiesDetectionJobError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for StartPiiEntitiesDetectionJobInputBuilder
impl Clone for StartPiiEntitiesDetectionJobInputBuilder
source§fn clone(&self) -> StartPiiEntitiesDetectionJobInputBuilder
fn clone(&self) -> StartPiiEntitiesDetectionJobInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for StartPiiEntitiesDetectionJobInputBuilder
impl Default for StartPiiEntitiesDetectionJobInputBuilder
source§fn default() -> StartPiiEntitiesDetectionJobInputBuilder
fn default() -> StartPiiEntitiesDetectionJobInputBuilder
source§impl PartialEq for StartPiiEntitiesDetectionJobInputBuilder
impl PartialEq for StartPiiEntitiesDetectionJobInputBuilder
source§fn eq(&self, other: &StartPiiEntitiesDetectionJobInputBuilder) -> bool
fn eq(&self, other: &StartPiiEntitiesDetectionJobInputBuilder) -> bool
self and other values to be equal, and is used
by ==.