* The collection of PHI entities extracted from the input text and their associated information. For each entity, * the response provides the entity text, the entity category, where the entity text begins and ends, and the level * of confidence that Amazon Comprehend Medical has in its detection. *
*/ private java.util.List
* If the result of the previous request to DetectPHI
was truncated, include the
* PaginationToken
to fetch the next page of PHI entities.
*
* The version of the model used to analyze the documents. The version number looks like X.X.X. You can use this * information to track the model used for a particular batch of documents. *
*/ private String modelVersion; /** ** The collection of PHI entities extracted from the input text and their associated information. For each entity, * the response provides the entity text, the entity category, where the entity text begins and ends, and the level * of confidence that Amazon Comprehend Medical has in its detection. *
* * @return The collection of PHI entities extracted from the input text and their associated information. For each * entity, the response provides the entity text, the entity category, where the entity text begins and * ends, and the level of confidence that Amazon Comprehend Medical has in its detection. */ public java.util.List* The collection of PHI entities extracted from the input text and their associated information. For each entity, * the response provides the entity text, the entity category, where the entity text begins and ends, and the level * of confidence that Amazon Comprehend Medical has in its detection. *
* * @param entities * The collection of PHI entities extracted from the input text and their associated information. For each * entity, the response provides the entity text, the entity category, where the entity text begins and ends, * and the level of confidence that Amazon Comprehend Medical has in its detection. */ public void setEntities(java.util.Collection* The collection of PHI entities extracted from the input text and their associated information. For each entity, * the response provides the entity text, the entity category, where the entity text begins and ends, and the level * of confidence that Amazon Comprehend Medical has in its detection. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setEntities(java.util.Collection)} or {@link #withEntities(java.util.Collection)} if you want to override * the existing values. *
* * @param entities * The collection of PHI entities extracted from the input text and their associated information. For each * entity, the response provides the entity text, the entity category, where the entity text begins and ends, * and the level of confidence that Amazon Comprehend Medical has in its detection. * @return Returns a reference to this object so that method calls can be chained together. */ public DetectPHIResult withEntities(Entity... entities) { if (this.entities == null) { setEntities(new java.util.ArrayList* The collection of PHI entities extracted from the input text and their associated information. For each entity, * the response provides the entity text, the entity category, where the entity text begins and ends, and the level * of confidence that Amazon Comprehend Medical has in its detection. *
* * @param entities * The collection of PHI entities extracted from the input text and their associated information. For each * entity, the response provides the entity text, the entity category, where the entity text begins and ends, * and the level of confidence that Amazon Comprehend Medical has in its detection. * @return Returns a reference to this object so that method calls can be chained together. */ public DetectPHIResult withEntities(java.util.Collection
* If the result of the previous request to DetectPHI
was truncated, include the
* PaginationToken
to fetch the next page of PHI entities.
*
DetectPHI
was truncated, include the
* PaginationToken
to fetch the next page of PHI entities.
*/
public void setPaginationToken(String paginationToken) {
this.paginationToken = paginationToken;
}
/**
*
* If the result of the previous request to DetectPHI
was truncated, include the
* PaginationToken
to fetch the next page of PHI entities.
*
DetectPHI
was truncated, include the
* PaginationToken
to fetch the next page of PHI entities.
*/
public String getPaginationToken() {
return this.paginationToken;
}
/**
*
* If the result of the previous request to DetectPHI
was truncated, include the
* PaginationToken
to fetch the next page of PHI entities.
*
DetectPHI
was truncated, include the
* PaginationToken
to fetch the next page of PHI entities.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DetectPHIResult withPaginationToken(String paginationToken) {
setPaginationToken(paginationToken);
return this;
}
/**
* * The version of the model used to analyze the documents. The version number looks like X.X.X. You can use this * information to track the model used for a particular batch of documents. *
* * @param modelVersion * The version of the model used to analyze the documents. The version number looks like X.X.X. You can use * this information to track the model used for a particular batch of documents. */ public void setModelVersion(String modelVersion) { this.modelVersion = modelVersion; } /** ** The version of the model used to analyze the documents. The version number looks like X.X.X. You can use this * information to track the model used for a particular batch of documents. *
* * @return The version of the model used to analyze the documents. The version number looks like X.X.X. You can use * this information to track the model used for a particular batch of documents. */ public String getModelVersion() { return this.modelVersion; } /** ** The version of the model used to analyze the documents. The version number looks like X.X.X. You can use this * information to track the model used for a particular batch of documents. *
* * @param modelVersion * The version of the model used to analyze the documents. The version number looks like X.X.X. You can use * this information to track the model used for a particular batch of documents. * @return Returns a reference to this object so that method calls can be chained together. */ public DetectPHIResult withModelVersion(String modelVersion) { setModelVersion(modelVersion); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getEntities() != null) sb.append("Entities: ").append(getEntities()).append(","); if (getPaginationToken() != null) sb.append("PaginationToken: ").append(getPaginationToken()).append(","); if (getModelVersion() != null) sb.append("ModelVersion: ").append(getModelVersion()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DetectPHIResult == false) return false; DetectPHIResult other = (DetectPHIResult) obj; if (other.getEntities() == null ^ this.getEntities() == null) return false; if (other.getEntities() != null && other.getEntities().equals(this.getEntities()) == false) return false; if (other.getPaginationToken() == null ^ this.getPaginationToken() == null) return false; if (other.getPaginationToken() != null && other.getPaginationToken().equals(this.getPaginationToken()) == false) return false; if (other.getModelVersion() == null ^ this.getModelVersion() == null) return false; if (other.getModelVersion() != null && other.getModelVersion().equals(this.getModelVersion()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEntities() == null) ? 0 : getEntities().hashCode()); hashCode = prime * hashCode + ((getPaginationToken() == null) ? 0 : getPaginationToken().hashCode()); hashCode = prime * hashCode + ((getModelVersion() == null) ? 0 : getModelVersion().hashCode()); return hashCode; } @Override public DetectPHIResult clone() { try { return (DetectPHIResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }