public class StartPiiEntitiesDetectionJobRequest extends AmazonWebServiceRequest implements java.io.Serializable
Starts an asynchronous PII entity detection job for a collection of documents.
Constructor and Description |
---|
StartPiiEntitiesDetectionJobRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getClientRequestToken()
A unique identifier for the request.
|
java.lang.String |
getDataAccessRoleArn()
The Amazon Resource Name (ARN) of the AWS Identity and Access Management
(IAM) role that grants Amazon Comprehend read access to your input data.
|
InputDataConfig |
getInputDataConfig()
The input properties for a PII entities detection job.
|
java.lang.String |
getJobName()
The identifier of the job.
|
java.lang.String |
getLanguageCode()
The language of the input documents.
|
java.lang.String |
getMode()
Specifies whether the output provides the locations (offsets) of PII
entities or a file in which PII entities are redacted.
|
OutputDataConfig |
getOutputDataConfig()
Provides configuration parameters for the output of PII entity detection
jobs.
|
RedactionConfig |
getRedactionConfig()
Provides configuration parameters for PII entity redaction.
|
int |
hashCode() |
void |
setClientRequestToken(java.lang.String clientRequestToken)
A unique identifier for the request.
|
void |
setDataAccessRoleArn(java.lang.String dataAccessRoleArn)
The Amazon Resource Name (ARN) of the AWS Identity and Access Management
(IAM) role that grants Amazon Comprehend read access to your input data.
|
void |
setInputDataConfig(InputDataConfig inputDataConfig)
The input properties for a PII entities detection job.
|
void |
setJobName(java.lang.String jobName)
The identifier of the job.
|
void |
setLanguageCode(LanguageCode languageCode)
The language of the input documents.
|
void |
setLanguageCode(java.lang.String languageCode)
The language of the input documents.
|
void |
setMode(PiiEntitiesDetectionMode mode)
Specifies whether the output provides the locations (offsets) of PII
entities or a file in which PII entities are redacted.
|
void |
setMode(java.lang.String mode)
Specifies whether the output provides the locations (offsets) of PII
entities or a file in which PII entities are redacted.
|
void |
setOutputDataConfig(OutputDataConfig outputDataConfig)
Provides configuration parameters for the output of PII entity detection
jobs.
|
void |
setRedactionConfig(RedactionConfig redactionConfig)
Provides configuration parameters for PII entity redaction.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
StartPiiEntitiesDetectionJobRequest |
withClientRequestToken(java.lang.String clientRequestToken)
A unique identifier for the request.
|
StartPiiEntitiesDetectionJobRequest |
withDataAccessRoleArn(java.lang.String dataAccessRoleArn)
The Amazon Resource Name (ARN) of the AWS Identity and Access Management
(IAM) role that grants Amazon Comprehend read access to your input data.
|
StartPiiEntitiesDetectionJobRequest |
withInputDataConfig(InputDataConfig inputDataConfig)
The input properties for a PII entities detection job.
|
StartPiiEntitiesDetectionJobRequest |
withJobName(java.lang.String jobName)
The identifier of the job.
|
StartPiiEntitiesDetectionJobRequest |
withLanguageCode(LanguageCode languageCode)
The language of the input documents.
|
StartPiiEntitiesDetectionJobRequest |
withLanguageCode(java.lang.String languageCode)
The language of the input documents.
|
StartPiiEntitiesDetectionJobRequest |
withMode(PiiEntitiesDetectionMode mode)
Specifies whether the output provides the locations (offsets) of PII
entities or a file in which PII entities are redacted.
|
StartPiiEntitiesDetectionJobRequest |
withMode(java.lang.String mode)
Specifies whether the output provides the locations (offsets) of PII
entities or a file in which PII entities are redacted.
|
StartPiiEntitiesDetectionJobRequest |
withOutputDataConfig(OutputDataConfig outputDataConfig)
Provides configuration parameters for the output of PII entity detection
jobs.
|
StartPiiEntitiesDetectionJobRequest |
withRedactionConfig(RedactionConfig redactionConfig)
Provides configuration parameters for PII entity redaction.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public InputDataConfig getInputDataConfig()
The input properties for a PII entities detection job.
The input properties for a PII entities detection job.
public void setInputDataConfig(InputDataConfig inputDataConfig)
The input properties for a PII entities detection job.
inputDataConfig
- The input properties for a PII entities detection job.
public StartPiiEntitiesDetectionJobRequest withInputDataConfig(InputDataConfig inputDataConfig)
The input properties for a PII entities detection job.
Returns a reference to this object so that method calls can be chained together.
inputDataConfig
- The input properties for a PII entities detection job.
public OutputDataConfig getOutputDataConfig()
Provides configuration parameters for the output of PII entity detection jobs.
Provides configuration parameters for the output of PII entity detection jobs.
public void setOutputDataConfig(OutputDataConfig outputDataConfig)
Provides configuration parameters for the output of PII entity detection jobs.
outputDataConfig
- Provides configuration parameters for the output of PII entity detection jobs.
public StartPiiEntitiesDetectionJobRequest withOutputDataConfig(OutputDataConfig outputDataConfig)
Provides configuration parameters for the output of PII entity detection jobs.
Returns a reference to this object so that method calls can be chained together.
outputDataConfig
- Provides configuration parameters for the output of PII entity detection jobs.
public java.lang.String getMode()
Specifies whether the output provides the locations (offsets) of PII entities or a file in which PII entities are redacted.
Constraints:
Allowed Values: ONLY_REDACTION, ONLY_OFFSETS
Specifies whether the output provides the locations (offsets) of PII entities or a file in which PII entities are redacted.
PiiEntitiesDetectionMode
public void setMode(java.lang.String mode)
Specifies whether the output provides the locations (offsets) of PII entities or a file in which PII entities are redacted.
Constraints:
Allowed Values: ONLY_REDACTION, ONLY_OFFSETS
mode
- Specifies whether the output provides the locations (offsets) of PII entities or a file in which PII entities are redacted.
PiiEntitiesDetectionMode
public StartPiiEntitiesDetectionJobRequest withMode(java.lang.String mode)
Specifies whether the output provides the locations (offsets) of PII entities or a file in which PII entities are redacted.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ONLY_REDACTION, ONLY_OFFSETS
mode
- Specifies whether the output provides the locations (offsets) of PII entities or a file in which PII entities are redacted.
PiiEntitiesDetectionMode
public void setMode(PiiEntitiesDetectionMode mode)
Specifies whether the output provides the locations (offsets) of PII entities or a file in which PII entities are redacted.
Constraints:
Allowed Values: ONLY_REDACTION, ONLY_OFFSETS
mode
- Specifies whether the output provides the locations (offsets) of PII entities or a file in which PII entities are redacted.
PiiEntitiesDetectionMode
public StartPiiEntitiesDetectionJobRequest withMode(PiiEntitiesDetectionMode mode)
Specifies whether the output provides the locations (offsets) of PII entities or a file in which PII entities are redacted.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ONLY_REDACTION, ONLY_OFFSETS
mode
- Specifies whether the output provides the locations (offsets) of PII entities or a file in which PII entities are redacted.
PiiEntitiesDetectionMode
public RedactionConfig getRedactionConfig()
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.
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.
public void setRedactionConfig(RedactionConfig 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.
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.
public StartPiiEntitiesDetectionJobRequest withRedactionConfig(RedactionConfig 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.
Returns a reference to this object so that method calls can be chained together.
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.
public java.lang.String getDataAccessRoleArn()
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend read access to your input data.
Constraints:
Length: 20 - 2048
Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend read access to your input data.
public void setDataAccessRoleArn(java.lang.String dataAccessRoleArn)
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend read access to your input data.
Constraints:
Length: 20 - 2048
Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
dataAccessRoleArn
- The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend read access to your input data.
public StartPiiEntitiesDetectionJobRequest withDataAccessRoleArn(java.lang.String dataAccessRoleArn)
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend read access to your input data.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 20 - 2048
Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
dataAccessRoleArn
- The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend read access to your input data.
public java.lang.String getJobName()
The identifier of the job.
Constraints:
Length: 1 - 256
Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-%@]*)$
The identifier of the job.
public void setJobName(java.lang.String jobName)
The identifier of the job.
Constraints:
Length: 1 - 256
Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-%@]*)$
jobName
- The identifier of the job.
public StartPiiEntitiesDetectionJobRequest withJobName(java.lang.String jobName)
The identifier of the job.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-%@]*)$
jobName
- The identifier of the job.
public java.lang.String getLanguageCode()
The language of the input documents.
Constraints:
Allowed Values: en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
The language of the input documents.
LanguageCode
public void setLanguageCode(java.lang.String languageCode)
The language of the input documents.
Constraints:
Allowed Values: en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
languageCode
- The language of the input documents.
LanguageCode
public StartPiiEntitiesDetectionJobRequest withLanguageCode(java.lang.String languageCode)
The language of the input documents.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
languageCode
- The language of the input documents.
LanguageCode
public void setLanguageCode(LanguageCode languageCode)
The language of the input documents.
Constraints:
Allowed Values: en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
languageCode
- The language of the input documents.
LanguageCode
public StartPiiEntitiesDetectionJobRequest withLanguageCode(LanguageCode languageCode)
The language of the input documents.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
languageCode
- The language of the input documents.
LanguageCode
public java.lang.String getClientRequestToken()
A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.
Constraints:
Length: 1 - 64
Pattern: ^[a-zA-Z0-9-]+$
A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.
public void setClientRequestToken(java.lang.String clientRequestToken)
A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.
Constraints:
Length: 1 - 64
Pattern: ^[a-zA-Z0-9-]+$
clientRequestToken
- A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.
public StartPiiEntitiesDetectionJobRequest withClientRequestToken(java.lang.String clientRequestToken)
A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: ^[a-zA-Z0-9-]+$
clientRequestToken
- A unique identifier for the request. If you don't set the client request token, Amazon Comprehend generates one.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.