/* * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.comprehend.model; import java.io.Serializable; /** *
* Provides information about a PII entities detection job. *
*/ public class PiiEntitiesDetectionJobProperties implements Serializable { /** ** The identifier assigned to the PII entities detection job. *
*
* Constraints:
* Length: 1 - 32
* Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-%@]*)$
*/
private String jobId;
/**
*
* 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:<partition>:comprehend:<region>:<account-id>:pii-entities-detection-job/<job-id>
*
* The following is an example job ARN: *
*
* arn:aws:comprehend:us-west-2:111122223333:pii-entities-detection-job/1234abcd12ab34cd56ef1234567890ab
*
* Constraints:
* Length: - 256
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
* /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
* 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*/
private String jobArn;
/**
*
* The name that you assigned the PII entities detection job. *
*
* Constraints:
* Length: 1 - 256
* Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-%@]*)$
*/
private String jobName;
/**
*
* 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
*/
private String jobStatus;
/**
*
* A description of the status of a job. *
*/ private String message; /** ** The time that the PII entities detection job was submitted for * processing. *
*/ private java.util.Date submitTime; /** ** The time that the PII entities detection job completed. *
*/ private java.util.Date endTime; /** ** The input properties for a PII entities detection job. *
*/ private InputDataConfig inputDataConfig; /** ** The output data configuration that you supplied when you created the PII * entities detection job. *
*/ private PiiOutputDataConfig outputDataConfig; /** ** 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.
*
* The language code of the input documents *
*
* Constraints:
* Allowed Values: en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
*/
private String languageCode;
/**
*
* The Amazon Resource Name (ARN) of the IAM role that grants Amazon * Comprehend read access to your input data. *
*
* Constraints:
* Length: 20 - 2048
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*/
private String dataAccessRoleArn;
/**
*
* 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
*/
private String mode;
/**
*
* The identifier assigned to the PII entities detection job. *
*
* Constraints:
* Length: 1 - 32
* Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-%@]*)$
*
* @return
* The identifier assigned to the PII entities detection job. *
*/ public String getJobId() { return jobId; } /** ** The identifier assigned to the PII entities detection job. *
*
* Constraints:
* Length: 1 - 32
* Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-%@]*)$
*
* @param jobId
* The identifier assigned to the PII entities detection job. *
*/ public void setJobId(String jobId) { this.jobId = 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}_.:/=+\-%@]*)$
*
* @param jobId
* The identifier assigned to the PII entities detection job. *
* @return A reference to this updated object so that method calls can be * chained together. */ public PiiEntitiesDetectionJobProperties withJobId(String jobId) { this.jobId = jobId; return this; } /** ** 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:<partition>:comprehend:<region>:<account-id>:pii-entities-detection-job/<job-id>
*
* The following is an example job ARN: *
*
* arn:aws:comprehend:us-west-2:111122223333:pii-entities-detection-job/1234abcd12ab34cd56ef1234567890ab
*
* Constraints:
* Length: - 256
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
* /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
* 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*
* @return
* 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:<partition>:comprehend:<region>:<account-id>:pii-entities-detection-job/<job-id>
*
* The following is an example job ARN: *
*
* arn:aws:comprehend:us-west-2:111122223333:pii-entities-detection-job/1234abcd12ab34cd56ef1234567890ab
*
* 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:<partition>:comprehend:<region>:<account-id>:pii-entities-detection-job/<job-id>
*
* The following is an example job ARN: *
*
* arn:aws:comprehend:us-west-2:111122223333:pii-entities-detection-job/1234abcd12ab34cd56ef1234567890ab
*
* Constraints:
* Length: - 256
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
* /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
* 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*
* @param jobArn
* 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:<partition>:comprehend:<region>:<account-id>:pii-entities-detection-job/<job-id>
*
* The following is an example job ARN: *
*
* arn:aws:comprehend:us-west-2:111122223333:pii-entities-detection-job/1234abcd12ab34cd56ef1234567890ab
*
* 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:<partition>:comprehend:<region>:<account-id>:pii-entities-detection-job/<job-id>
*
* The following is an example job ARN: *
*
* arn:aws:comprehend:us-west-2:111122223333:pii-entities-detection-job/1234abcd12ab34cd56ef1234567890ab
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: - 256
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:[a-zA-
* Z0-9-]{1,64}
* /[a-zA-Z0-9](-*[a-zA-Z0-9])*((/dataset/[a-zA-Z0-9](-*[a-zA-Z0-
* 9])*)|(/version/[a-zA-Z0-9](-*[a-zA-Z0-9])*))?
*
* @param jobArn
* 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:<partition>:comprehend:<region>:<account-id>:pii-entities-detection-job/<job-id>
*
* The following is an example job ARN: *
*
* arn:aws:comprehend:us-west-2:111122223333:pii-entities-detection-job/1234abcd12ab34cd56ef1234567890ab
*
* The name that you assigned the PII entities detection job. *
*
* Constraints:
* Length: 1 - 256
* Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-%@]*)$
*
* @return
* The name that you assigned the PII entities detection job. *
*/ public String getJobName() { return jobName; } /** ** The name that you assigned the PII entities detection job. *
*
* Constraints:
* Length: 1 - 256
* Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-%@]*)$
*
* @param jobName
* The name that you assigned the PII entities detection job. *
*/ public void setJobName(String jobName) { this.jobName = 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}_.:/=+\-%@]*)$
*
* @param jobName
* The name that you assigned the PII entities detection job. *
* @return A reference to this updated object so that method calls can be * chained together. */ public PiiEntitiesDetectionJobProperties withJobName(String jobName) { this.jobName = jobName; return this; } /** *
* 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
*
* @return
* The current status of the PII entities detection job. If the
* status is FAILED
, the Message
field
* shows the reason for the failure.
*
* 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
*
* @param jobStatus
* The current status of the PII entities detection job. If the
* status is FAILED
, the Message
field
* shows the reason for the failure.
*
* 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
*
* @param jobStatus
* The current status of the PII entities detection job. If the
* status is FAILED
, the Message
field
* shows the reason for the failure.
*
* 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
*
* @param jobStatus
* The current status of the PII entities detection job. If the
* status is FAILED
, the Message
field
* shows the reason for the failure.
*
* 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
*
* @param jobStatus
* The current status of the PII entities detection job. If the
* status is FAILED
, the Message
field
* shows the reason for the failure.
*
* A description of the status of a job. *
* * @return* A description of the status of a job. *
*/ public String getMessage() { return message; } /** ** A description of the status of a job. *
* * @param message* A description of the status of a job. *
*/ public void setMessage(String message) { this.message = message; } /** ** A description of the status of a job. *
** Returns a reference to this object so that method calls can be chained * together. * * @param message
* A description of the status of a job. *
* @return A reference to this updated object so that method calls can be * chained together. */ public PiiEntitiesDetectionJobProperties withMessage(String message) { this.message = message; return this; } /** ** The time that the PII entities detection job was submitted for * processing. *
* * @return* The time that the PII entities detection job was submitted for * processing. *
*/ public java.util.Date getSubmitTime() { return submitTime; } /** ** The time that the PII entities detection job was submitted for * processing. *
* * @param submitTime* The time that the PII entities detection job was submitted for * processing. *
*/ public void setSubmitTime(java.util.Date submitTime) { this.submitTime = 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. * * @param submitTime
* The time that the PII entities detection job was submitted for * processing. *
* @return A reference to this updated object so that method calls can be * chained together. */ public PiiEntitiesDetectionJobProperties withSubmitTime(java.util.Date submitTime) { this.submitTime = submitTime; return this; } /** ** The time that the PII entities detection job completed. *
* * @return* The time that the PII entities detection job completed. *
*/ public java.util.Date getEndTime() { return endTime; } /** ** The time that the PII entities detection job completed. *
* * @param endTime* The time that the PII entities detection job completed. *
*/ public void setEndTime(java.util.Date endTime) { this.endTime = endTime; } /** ** The time that the PII entities detection job completed. *
** Returns a reference to this object so that method calls can be chained * together. * * @param endTime
* The time that the PII entities detection job completed. *
* @return A reference to this updated object so that method calls can be * chained together. */ public PiiEntitiesDetectionJobProperties withEndTime(java.util.Date endTime) { this.endTime = endTime; return this; } /** ** The input properties for a PII entities detection job. *
* * @return* The input properties for a PII entities detection job. *
*/ public InputDataConfig getInputDataConfig() { return inputDataConfig; } /** ** The input properties for a PII entities detection job. *
* * @param inputDataConfig* The input properties for a PII entities detection job. *
*/ public void setInputDataConfig(InputDataConfig inputDataConfig) { this.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. * * @param inputDataConfig
* The input properties for a PII entities detection job. *
* @return A reference to this updated object so that method calls can be * chained together. */ public PiiEntitiesDetectionJobProperties withInputDataConfig(InputDataConfig inputDataConfig) { this.inputDataConfig = inputDataConfig; return this; } /** ** The output data configuration that you supplied when you created the PII * entities detection job. *
* * @return* The output data configuration that you supplied when you created * the PII entities detection job. *
*/ public PiiOutputDataConfig getOutputDataConfig() { return outputDataConfig; } /** ** The output data configuration that you supplied when you created the PII * entities detection job. *
* * @param outputDataConfig* The output data configuration that you supplied when you * created the PII entities detection job. *
*/ public void setOutputDataConfig(PiiOutputDataConfig outputDataConfig) { this.outputDataConfig = 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. * * @param outputDataConfig
* The output data configuration that you supplied when you * created the PII entities detection job. *
* @return A reference to this updated object so that method calls can be * chained together. */ public PiiEntitiesDetectionJobProperties withOutputDataConfig( PiiOutputDataConfig outputDataConfig) { this.outputDataConfig = outputDataConfig; return this; } /** ** 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.
*
* 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.
*
* 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. * * @param 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.
*
* The language code of the input documents *
*
* Constraints:
* Allowed Values: en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
*
* @return
* The language code of the input documents *
* @see LanguageCode */ public String getLanguageCode() { return languageCode; } /** ** The language code of the input documents *
*
* Constraints:
* Allowed Values: en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
*
* @param languageCode
* The language code of the input documents *
* @see LanguageCode */ public void setLanguageCode(String languageCode) { this.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
*
* @param languageCode
* The language code of the input documents *
* @return A reference to this updated object so that method calls can be * chained together. * @see LanguageCode */ public PiiEntitiesDetectionJobProperties withLanguageCode(String languageCode) { this.languageCode = languageCode; return this; } /** ** The language code of the input documents *
*
* Constraints:
* Allowed Values: en, es, fr, de, it, pt, ar, hi, ja, ko, zh, zh-TW
*
* @param languageCode
* The language code of the input documents *
* @see LanguageCode */ public void setLanguageCode(LanguageCode languageCode) { this.languageCode = languageCode.toString(); } /** ** 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
*
* @param languageCode
* The language code of the input documents *
* @return A reference to this updated object so that method calls can be * chained together. * @see LanguageCode */ public PiiEntitiesDetectionJobProperties withLanguageCode(LanguageCode languageCode) { this.languageCode = languageCode.toString(); return this; } /** ** The Amazon Resource Name (ARN) of the IAM role that grants Amazon * Comprehend read access to your input data. *
*
* Constraints:
* Length: 20 - 2048
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @return
* The Amazon Resource Name (ARN) of the IAM role that grants Amazon * Comprehend read access to your input data. *
*/ public String getDataAccessRoleArn() { return dataAccessRoleArn; } /** ** The Amazon Resource Name (ARN) of the IAM role that grants Amazon * Comprehend read access to your input data. *
*
* Constraints:
* Length: 20 - 2048
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @param dataAccessRoleArn
* The Amazon Resource Name (ARN) of the IAM role that grants * Amazon Comprehend read access to your input data. *
*/ public void setDataAccessRoleArn(String dataAccessRoleArn) { this.dataAccessRoleArn = dataAccessRoleArn; } /** ** The Amazon Resource Name (ARN) of the 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/.+
*
* @param dataAccessRoleArn
* The Amazon Resource Name (ARN) of the IAM role that grants * Amazon Comprehend read access to your input data. *
* @return A reference to this updated object so that method calls can be * chained together. */ public PiiEntitiesDetectionJobProperties withDataAccessRoleArn(String dataAccessRoleArn) { this.dataAccessRoleArn = dataAccessRoleArn; return this; } /** ** 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
*
* @return
* Specifies whether the output provides the locations (offsets) of * PII entities or a file in which PII entities are redacted. *
* @see PiiEntitiesDetectionMode */ public String getMode() { return 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
*
* @param mode
* Specifies whether the output provides the locations (offsets) * of PII entities or a file in which PII entities are redacted. *
* @see PiiEntitiesDetectionMode */ public void setMode(String mode) { this.mode = 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
*
* @param mode
* Specifies whether the output provides the locations (offsets) * of PII entities or a file in which PII entities are redacted. *
* @return A reference to this updated object so that method calls can be * chained together. * @see PiiEntitiesDetectionMode */ public PiiEntitiesDetectionJobProperties withMode(String mode) { this.mode = mode; return this; } /** ** 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
*
* @param mode
* Specifies whether the output provides the locations (offsets) * of PII entities or a file in which PII entities are redacted. *
* @see PiiEntitiesDetectionMode */ public void setMode(PiiEntitiesDetectionMode mode) { this.mode = mode.toString(); } /** ** 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
*
* @param mode
* Specifies whether the output provides the locations (offsets) * of PII entities or a file in which PII entities are redacted. *
* @return A reference to this updated object so that method calls can be * chained together. * @see PiiEntitiesDetectionMode */ public PiiEntitiesDetectionJobProperties withMode(PiiEntitiesDetectionMode mode) { this.mode = mode.toString(); return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getJobId() != null) sb.append("JobId: " + getJobId() + ","); if (getJobArn() != null) sb.append("JobArn: " + getJobArn() + ","); if (getJobName() != null) sb.append("JobName: " + getJobName() + ","); if (getJobStatus() != null) sb.append("JobStatus: " + getJobStatus() + ","); if (getMessage() != null) sb.append("Message: " + getMessage() + ","); if (getSubmitTime() != null) sb.append("SubmitTime: " + getSubmitTime() + ","); if (getEndTime() != null) sb.append("EndTime: " + getEndTime() + ","); if (getInputDataConfig() != null) sb.append("InputDataConfig: " + getInputDataConfig() + ","); if (getOutputDataConfig() != null) sb.append("OutputDataConfig: " + getOutputDataConfig() + ","); if (getRedactionConfig() != null) sb.append("RedactionConfig: " + getRedactionConfig() + ","); if (getLanguageCode() != null) sb.append("LanguageCode: " + getLanguageCode() + ","); if (getDataAccessRoleArn() != null) sb.append("DataAccessRoleArn: " + getDataAccessRoleArn() + ","); if (getMode() != null) sb.append("Mode: " + getMode()); sb.append("}"); return sb.toString(); } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getJobId() == null) ? 0 : getJobId().hashCode()); hashCode = prime * hashCode + ((getJobArn() == null) ? 0 : getJobArn().hashCode()); hashCode = prime * hashCode + ((getJobName() == null) ? 0 : getJobName().hashCode()); hashCode = prime * hashCode + ((getJobStatus() == null) ? 0 : getJobStatus().hashCode()); hashCode = prime * hashCode + ((getMessage() == null) ? 0 : getMessage().hashCode()); hashCode = prime * hashCode + ((getSubmitTime() == null) ? 0 : getSubmitTime().hashCode()); hashCode = prime * hashCode + ((getEndTime() == null) ? 0 : getEndTime().hashCode()); hashCode = prime * hashCode + ((getInputDataConfig() == null) ? 0 : getInputDataConfig().hashCode()); hashCode = prime * hashCode + ((getOutputDataConfig() == null) ? 0 : getOutputDataConfig().hashCode()); hashCode = prime * hashCode + ((getRedactionConfig() == null) ? 0 : getRedactionConfig().hashCode()); hashCode = prime * hashCode + ((getLanguageCode() == null) ? 0 : getLanguageCode().hashCode()); hashCode = prime * hashCode + ((getDataAccessRoleArn() == null) ? 0 : getDataAccessRoleArn().hashCode()); hashCode = prime * hashCode + ((getMode() == null) ? 0 : getMode().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PiiEntitiesDetectionJobProperties == false) return false; PiiEntitiesDetectionJobProperties other = (PiiEntitiesDetectionJobProperties) obj; if (other.getJobId() == null ^ this.getJobId() == null) return false; if (other.getJobId() != null && other.getJobId().equals(this.getJobId()) == false) return false; if (other.getJobArn() == null ^ this.getJobArn() == null) return false; if (other.getJobArn() != null && other.getJobArn().equals(this.getJobArn()) == false) return false; if (other.getJobName() == null ^ this.getJobName() == null) return false; if (other.getJobName() != null && other.getJobName().equals(this.getJobName()) == false) return false; if (other.getJobStatus() == null ^ this.getJobStatus() == null) return false; if (other.getJobStatus() != null && other.getJobStatus().equals(this.getJobStatus()) == false) return false; if (other.getMessage() == null ^ this.getMessage() == null) return false; if (other.getMessage() != null && other.getMessage().equals(this.getMessage()) == false) return false; if (other.getSubmitTime() == null ^ this.getSubmitTime() == null) return false; if (other.getSubmitTime() != null && other.getSubmitTime().equals(this.getSubmitTime()) == false) return false; if (other.getEndTime() == null ^ this.getEndTime() == null) return false; if (other.getEndTime() != null && other.getEndTime().equals(this.getEndTime()) == false) return false; if (other.getInputDataConfig() == null ^ this.getInputDataConfig() == null) return false; if (other.getInputDataConfig() != null && other.getInputDataConfig().equals(this.getInputDataConfig()) == false) return false; if (other.getOutputDataConfig() == null ^ this.getOutputDataConfig() == null) return false; if (other.getOutputDataConfig() != null && other.getOutputDataConfig().equals(this.getOutputDataConfig()) == false) return false; if (other.getRedactionConfig() == null ^ this.getRedactionConfig() == null) return false; if (other.getRedactionConfig() != null && other.getRedactionConfig().equals(this.getRedactionConfig()) == false) return false; if (other.getLanguageCode() == null ^ this.getLanguageCode() == null) return false; if (other.getLanguageCode() != null && other.getLanguageCode().equals(this.getLanguageCode()) == false) return false; if (other.getDataAccessRoleArn() == null ^ this.getDataAccessRoleArn() == null) return false; if (other.getDataAccessRoleArn() != null && other.getDataAccessRoleArn().equals(this.getDataAccessRoleArn()) == false) return false; if (other.getMode() == null ^ this.getMode() == null) return false; if (other.getMode() != null && other.getMode().equals(this.getMode()) == false) return false; return true; } }