#[non_exhaustive]
pub struct PiiEntitiesDetectionJobPropertiesBuilder { /* private fields */ }
Expand description

Implementations§

source§

impl PiiEntitiesDetectionJobPropertiesBuilder

source

pub fn job_id(self, input: impl Into<String>) -> Self

The identifier assigned to the PII entities detection job.

source

pub fn set_job_id(self, input: Option<String>) -> Self

The identifier assigned to the PII entities detection job.

source

pub fn get_job_id(&self) -> &Option<String>

The identifier assigned to the PII entities detection job.

source

pub fn job_arn(self, input: impl Into<String>) -> Self

The Amazon Resource Name (ARN) of the PII entities detection job. It is a unique, fully qualified identifier for the job. It includes the Amazon Web Services account, Amazon Web Services Region, and the job ID. The format of the ARN is as follows:

arn: :comprehend: : :pii-entities-detection-job/

The following is an example job ARN:

arn:aws:comprehend:us-west-2:111122223333:pii-entities-detection-job/1234abcd12ab34cd56ef1234567890ab

source

pub fn set_job_arn(self, input: Option<String>) -> Self

The Amazon Resource Name (ARN) of the PII entities detection job. It is a unique, fully qualified identifier for the job. It includes the Amazon Web Services account, Amazon Web Services Region, and the job ID. The format of the ARN is as follows:

arn: :comprehend: : :pii-entities-detection-job/

The following is an example job ARN:

arn:aws:comprehend:us-west-2:111122223333:pii-entities-detection-job/1234abcd12ab34cd56ef1234567890ab

source

pub fn get_job_arn(&self) -> &Option<String>

The Amazon Resource Name (ARN) of the PII entities detection job. It is a unique, fully qualified identifier for the job. It includes the Amazon Web Services account, Amazon Web Services Region, and the job ID. The format of the ARN is as follows:

arn: :comprehend: : :pii-entities-detection-job/

The following is an example job ARN:

arn:aws:comprehend:us-west-2:111122223333:pii-entities-detection-job/1234abcd12ab34cd56ef1234567890ab

source

pub fn job_name(self, input: impl Into<String>) -> Self

The name that you assigned the PII entities detection job.

source

pub fn set_job_name(self, input: Option<String>) -> Self

The name that you assigned the PII entities detection job.

source

pub fn get_job_name(&self) -> &Option<String>

The name that you assigned the PII entities detection job.

source

pub fn job_status(self, input: JobStatus) -> Self

The current status of the PII entities detection job. If the status is FAILED, the Message field shows the reason for the failure.

source

pub fn set_job_status(self, input: Option<JobStatus>) -> Self

The current status of the PII entities detection job. If the status is FAILED, the Message field shows the reason for the failure.

source

pub fn get_job_status(&self) -> &Option<JobStatus>

The current status of the PII entities detection job. If the status is FAILED, the Message field shows the reason for the failure.

source

pub fn message(self, input: impl Into<String>) -> Self

A description of the status of a job.

source

pub fn set_message(self, input: Option<String>) -> Self

A description of the status of a job.

source

pub fn get_message(&self) -> &Option<String>

A description of the status of a job.

source

pub fn submit_time(self, input: DateTime) -> Self

The time that the PII entities detection job was submitted for processing.

source

pub fn set_submit_time(self, input: Option<DateTime>) -> Self

The time that the PII entities detection job was submitted for processing.

source

pub fn get_submit_time(&self) -> &Option<DateTime>

The time that the PII entities detection job was submitted for processing.

source

pub fn end_time(self, input: DateTime) -> Self

The time that the PII entities detection job completed.

source

pub fn set_end_time(self, input: Option<DateTime>) -> Self

The time that the PII entities detection job completed.

source

pub fn get_end_time(&self) -> &Option<DateTime>

The time that the PII entities detection job completed.

source

pub fn input_data_config(self, input: InputDataConfig) -> Self

The input properties for a PII entities detection job.

source

pub fn set_input_data_config(self, input: Option<InputDataConfig>) -> Self

The input properties for a PII entities detection job.

source

pub fn get_input_data_config(&self) -> &Option<InputDataConfig>

The input properties for a PII entities detection job.

source

pub fn output_data_config(self, input: PiiOutputDataConfig) -> Self

The output data configuration that you supplied when you created the PII entities detection job.

source

pub fn set_output_data_config(self, input: Option<PiiOutputDataConfig>) -> Self

The output data configuration that you supplied when you created the PII entities detection job.

source

pub fn get_output_data_config(&self) -> &Option<PiiOutputDataConfig>

The output data configuration that you supplied when you created the PII entities detection job.

source

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.

source

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.

source

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.

source

pub fn language_code(self, input: LanguageCode) -> Self

The language code of the input documents

source

pub fn set_language_code(self, input: Option<LanguageCode>) -> Self

The language code of the input documents

source

pub fn get_language_code(&self) -> &Option<LanguageCode>

The language code of the input documents

source

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.

source

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.

source

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.

source

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.

source

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.

source

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.

source

pub fn build(self) -> PiiEntitiesDetectionJobProperties

Consumes the builder and constructs a PiiEntitiesDetectionJobProperties.

Trait Implementations§

source§

impl Clone for PiiEntitiesDetectionJobPropertiesBuilder

source§

fn clone(&self) -> PiiEntitiesDetectionJobPropertiesBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for PiiEntitiesDetectionJobPropertiesBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for PiiEntitiesDetectionJobPropertiesBuilder

source§

fn default() -> PiiEntitiesDetectionJobPropertiesBuilder

Returns the “default value” for a type. Read more
source§

impl PartialEq for PiiEntitiesDetectionJobPropertiesBuilder

source§

fn eq(&self, other: &PiiEntitiesDetectionJobPropertiesBuilder) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for PiiEntitiesDetectionJobPropertiesBuilder

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<Unshared, Shared> IntoShared<Shared> for Unsharedwhere Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more