* The evidence that the GetEvidence
API returned.
*
* The evidence that the GetEvidence
API returned.
*
GetEvidence
API returned.
*/
public void setEvidence(Evidence evidence) {
this.evidence = evidence;
}
/**
*
* The evidence that the GetEvidence
API returned.
*
GetEvidence
API returned.
*/
public Evidence getEvidence() {
return this.evidence;
}
/**
*
* The evidence that the GetEvidence
API returned.
*
GetEvidence
API returned.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetEvidenceResult withEvidence(Evidence evidence) {
setEvidence(evidence);
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 (getEvidence() != null)
sb.append("Evidence: ").append(getEvidence());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof GetEvidenceResult == false)
return false;
GetEvidenceResult other = (GetEvidenceResult) obj;
if (other.getEvidence() == null ^ this.getEvidence() == null)
return false;
if (other.getEvidence() != null && other.getEvidence().equals(this.getEvidence()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getEvidence() == null) ? 0 : getEvidence().hashCode());
return hashCode;
}
@Override
public GetEvidenceResult clone() {
try {
return (GetEvidenceResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}