public class PiiEntitiesDetectionJobProperties
extends java.lang.Object
implements java.io.Serializable
Provides information about a PII entities detection job.
Constructor and Description |
---|
PiiEntitiesDetectionJobProperties() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDataAccessRoleArn()
The Amazon Resource Name (ARN) that gives Amazon Comprehend read access
to your input data.
|
java.util.Date |
getEndTime()
The time that the PII entities detection job completed.
|
InputDataConfig |
getInputDataConfig()
The input properties for a PII entities detection job.
|
java.lang.String |
getJobId()
The identifier assigned to the PII entities detection job.
|
java.lang.String |
getJobName()
The name that you assigned the PII entities detection job.
|
java.lang.String |
getJobStatus()
The current status of the PII entities detection job.
|
java.lang.String |
getLanguageCode()
The language code of the input documents
|
java.lang.String |
getMessage()
A description of the status of a job.
|
java.lang.String |
getMode()
Specifies whether the output provides the locations (offsets) of PII
entities or a file in which PII entities are redacted.
|
PiiOutputDataConfig |
getOutputDataConfig()
The output data configuration that you supplied when you created the PII
entities detection job.
|
RedactionConfig |
getRedactionConfig()
Provides configuration parameters for PII entity redaction.
|
java.util.Date |
getSubmitTime()
The time that the PII entities detection job was submitted for
processing.
|
int |
hashCode() |
void |
setDataAccessRoleArn(java.lang.String dataAccessRoleArn)
The Amazon Resource Name (ARN) that gives Amazon Comprehend read access
to your input data.
|
void |
setEndTime(java.util.Date endTime)
The time that the PII entities detection job completed.
|
void |
setInputDataConfig(InputDataConfig inputDataConfig)
The input properties for a PII entities detection job.
|
void |
setJobId(java.lang.String jobId)
The identifier assigned to the PII entities detection job.
|
void |
setJobName(java.lang.String jobName)
The name that you assigned the PII entities detection job.
|
void |
setJobStatus(JobStatus jobStatus)
The current status of the PII entities detection job.
|
void |
setJobStatus(java.lang.String jobStatus)
The current status of the PII entities detection job.
|
void |
setLanguageCode(LanguageCode languageCode)
The language code of the input documents
|
void |
setLanguageCode(java.lang.String languageCode)
The language code of the input documents
|
void |
setMessage(java.lang.String message)
A description of the status of a job.
|
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(PiiOutputDataConfig outputDataConfig)
The output data configuration that you supplied when you created the PII
entities detection job.
|
void |
setRedactionConfig(RedactionConfig redactionConfig)
Provides configuration parameters for PII entity redaction.
|
void |
setSubmitTime(java.util.Date submitTime)
The time that the PII entities detection job was submitted for
processing.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PiiEntitiesDetectionJobProperties |
withDataAccessRoleArn(java.lang.String dataAccessRoleArn)
The Amazon Resource Name (ARN) that gives Amazon Comprehend read access
to your input data.
|
PiiEntitiesDetectionJobProperties |
withEndTime(java.util.Date endTime)
The time that the PII entities detection job completed.
|
PiiEntitiesDetectionJobProperties |
withInputDataConfig(InputDataConfig inputDataConfig)
The input properties for a PII entities detection job.
|
PiiEntitiesDetectionJobProperties |
withJobId(java.lang.String jobId)
The identifier assigned to the PII entities detection job.
|
PiiEntitiesDetectionJobProperties |
withJobName(java.lang.String jobName)
The name that you assigned the PII entities detection job.
|
PiiEntitiesDetectionJobProperties |
withJobStatus(JobStatus jobStatus)
The current status of the PII entities detection job.
|
PiiEntitiesDetectionJobProperties |
withJobStatus(java.lang.String jobStatus)
The current status of the PII entities detection job.
|
PiiEntitiesDetectionJobProperties |
withLanguageCode(LanguageCode languageCode)
The language code of the input documents
|
PiiEntitiesDetectionJobProperties |
withLanguageCode(java.lang.String languageCode)
The language code of the input documents
|
PiiEntitiesDetectionJobProperties |
withMessage(java.lang.String message)
A description of the status of a job.
|
PiiEntitiesDetectionJobProperties |
withMode(PiiEntitiesDetectionMode mode)
Specifies whether the output provides the locations (offsets) of PII
entities or a file in which PII entities are redacted.
|
PiiEntitiesDetectionJobProperties |
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.
|
PiiEntitiesDetectionJobProperties |
withOutputDataConfig(PiiOutputDataConfig outputDataConfig)
The output data configuration that you supplied when you created the PII
entities detection job.
|
PiiEntitiesDetectionJobProperties |
withRedactionConfig(RedactionConfig redactionConfig)
Provides configuration parameters for PII entity redaction.
|
PiiEntitiesDetectionJobProperties |
withSubmitTime(java.util.Date submitTime)
The time that the PII entities detection job was submitted for
processing.
|
public java.lang.String getJobId()
The identifier assigned to the PII entities detection job.
Constraints:
Length: 1 - 32
Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-%@]*)$
The identifier assigned to the PII entities detection job.
public void setJobId(java.lang.String jobId)
The identifier assigned to the PII entities detection job.
Constraints:
Length: 1 - 32
Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-%@]*)$
jobId
- The identifier assigned to the PII entities detection job.
public PiiEntitiesDetectionJobProperties withJobId(java.lang.String jobId)
The identifier assigned to the PII entities detection job.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 32
Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-%@]*)$
jobId
- The identifier assigned to the PII entities detection job.
public java.lang.String getJobName()
The name that you assigned the PII entities detection job.
Constraints:
Length: 1 - 256
Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-%@]*)$
The name that you assigned the PII entities detection job.
public void setJobName(java.lang.String jobName)
The name that you assigned the PII entities detection job.
Constraints:
Length: 1 - 256
Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-%@]*)$
jobName
- The name that you assigned the PII entities detection job.
public PiiEntitiesDetectionJobProperties withJobName(java.lang.String jobName)
The name that you assigned the PII entities detection 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 name that you assigned the PII entities detection job.
public java.lang.String getJobStatus()
The current status of the PII entities detection job. If the status is
FAILED
, the Message
field shows the reason for
the failure.
Constraints:
Allowed Values: SUBMITTED, IN_PROGRESS, COMPLETED, FAILED,
STOP_REQUESTED, STOPPED
The current status of the PII entities detection job. If the
status is FAILED
, the Message
field
shows the reason for the failure.
JobStatus
public void setJobStatus(java.lang.String jobStatus)
The current status of the PII entities detection job. If the status is
FAILED
, the Message
field shows the reason for
the failure.
Constraints:
Allowed Values: SUBMITTED, IN_PROGRESS, COMPLETED, FAILED,
STOP_REQUESTED, STOPPED
jobStatus
-
The current status of the PII entities detection job. If the
status is FAILED
, the Message
field
shows the reason for the failure.
JobStatus
public PiiEntitiesDetectionJobProperties withJobStatus(java.lang.String jobStatus)
The current status of the PII entities detection job. If the status is
FAILED
, the Message
field shows the reason for
the failure.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: SUBMITTED, IN_PROGRESS, COMPLETED, FAILED,
STOP_REQUESTED, STOPPED
jobStatus
-
The current status of the PII entities detection job. If the
status is FAILED
, the Message
field
shows the reason for the failure.
JobStatus
public void setJobStatus(JobStatus jobStatus)
The current status of the PII entities detection job. If the status is
FAILED
, the Message
field shows the reason for
the failure.
Constraints:
Allowed Values: SUBMITTED, IN_PROGRESS, COMPLETED, FAILED,
STOP_REQUESTED, STOPPED
jobStatus
-
The current status of the PII entities detection job. If the
status is FAILED
, the Message
field
shows the reason for the failure.
JobStatus
public PiiEntitiesDetectionJobProperties withJobStatus(JobStatus jobStatus)
The current status of the PII entities detection job. If the status is
FAILED
, the Message
field shows the reason for
the failure.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: SUBMITTED, IN_PROGRESS, COMPLETED, FAILED,
STOP_REQUESTED, STOPPED
jobStatus
-
The current status of the PII entities detection job. If the
status is FAILED
, the Message
field
shows the reason for the failure.
JobStatus
public java.lang.String getMessage()
A description of the status of a job.
A description of the status of a job.
public void setMessage(java.lang.String message)
A description of the status of a job.
message
- A description of the status of a job.
public PiiEntitiesDetectionJobProperties withMessage(java.lang.String message)
A description of the status of a job.
Returns a reference to this object so that method calls can be chained together.
message
- A description of the status of a job.
public java.util.Date getSubmitTime()
The time that the PII entities detection job was submitted for processing.
The time that the PII entities detection job was submitted for processing.
public void setSubmitTime(java.util.Date submitTime)
The time that the PII entities detection job was submitted for processing.
submitTime
- The time that the PII entities detection job was submitted for processing.
public PiiEntitiesDetectionJobProperties withSubmitTime(java.util.Date submitTime)
The time that the PII entities detection job was submitted for processing.
Returns a reference to this object so that method calls can be chained together.
submitTime
- The time that the PII entities detection job was submitted for processing.
public java.util.Date getEndTime()
The time that the PII entities detection job completed.
The time that the PII entities detection job completed.
public void setEndTime(java.util.Date endTime)
The time that the PII entities detection job completed.
endTime
- The time that the PII entities detection job completed.
public PiiEntitiesDetectionJobProperties withEndTime(java.util.Date endTime)
The time that the PII entities detection job completed.
Returns a reference to this object so that method calls can be chained together.
endTime
- The time that the PII entities detection job completed.
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 PiiEntitiesDetectionJobProperties 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 PiiOutputDataConfig getOutputDataConfig()
The output data configuration that you supplied when you created the PII entities detection job.
The output data configuration that you supplied when you created the PII entities detection job.
public void setOutputDataConfig(PiiOutputDataConfig outputDataConfig)
The output data configuration that you supplied when you created the PII entities detection job.
outputDataConfig
- The output data configuration that you supplied when you created the PII entities detection job.
public PiiEntitiesDetectionJobProperties withOutputDataConfig(PiiOutputDataConfig outputDataConfig)
The output data configuration that you supplied when you created the PII entities detection job.
Returns a reference to this object so that method calls can be chained together.
outputDataConfig
- The output data configuration that you supplied when you created the PII entities detection job.
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 PiiEntitiesDetectionJobProperties 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 getLanguageCode()
The language code of the input documents
Constraints:
Allowed Values: en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
The language code of the input documents
LanguageCode
public void setLanguageCode(java.lang.String languageCode)
The language code of the input documents
Constraints:
Allowed Values: en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
languageCode
- The language code of the input documents
LanguageCode
public PiiEntitiesDetectionJobProperties withLanguageCode(java.lang.String languageCode)
The language code 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 code of the input documents
LanguageCode
public void setLanguageCode(LanguageCode languageCode)
The language code of the input documents
Constraints:
Allowed Values: en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
languageCode
- The language code of the input documents
LanguageCode
public PiiEntitiesDetectionJobProperties withLanguageCode(LanguageCode languageCode)
The language code 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 code of the input documents
LanguageCode
public java.lang.String getDataAccessRoleArn()
The Amazon Resource Name (ARN) that gives 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) that gives Amazon Comprehend read access to your input data.
public void setDataAccessRoleArn(java.lang.String dataAccessRoleArn)
The Amazon Resource Name (ARN) that gives 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) that gives Amazon Comprehend read access to your input data.
public PiiEntitiesDetectionJobProperties withDataAccessRoleArn(java.lang.String dataAccessRoleArn)
The Amazon Resource Name (ARN) that gives 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) that gives Amazon Comprehend read access to your input data.
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 PiiEntitiesDetectionJobProperties 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 PiiEntitiesDetectionJobProperties 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 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.