/** * 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 (getJobStatus() != null) sb.append("JobStatus: ").append(getJobStatus()).append(","); if (getStatusMessage() != null) sb.append("StatusMessage: ").append(getStatusMessage()).append(","); if (getVideoMetadata() != null) sb.append("VideoMetadata: ").append(getVideoMetadata()).append(","); if (getModerationLabels() != null) sb.append("ModerationLabels: ").append(getModerationLabels()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getJobStatus() == null) ? 0 : getJobStatus().hashCode()); hashCode = prime * hashCode + ((getStatusMessage() == null) ? 0 : getStatusMessage().hashCode()); hashCode = prime * hashCode + ((getVideoMetadata() == null) ? 0 : getVideoMetadata().hashCode()); hashCode = prime * hashCode + ((getModerationLabels() == null) ? 0 : getModerationLabels().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); return hashCode; }
if (other.getVideoMetadata() != null && other.getVideoMetadata().equals(this.getVideoMetadata()) == false) return false; if (other.getModerationLabels() == null ^ this.getModerationLabels() == null) return false; if (other.getModerationLabels() != null && other.getModerationLabels().equals(this.getModerationLabels()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null)
/** * <p> * The detected moderation labels and the time(s) they were detected. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param moderationLabels <p> * The detected moderation labels and the time(s) they were * detected. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public GetContentModerationResult withModerationLabels( ContentModerationDetection... moderationLabels) { if (getModerationLabels() == null) { this.moderationLabels = new java.util.ArrayList<ContentModerationDetection>( moderationLabels.length); } for (ContentModerationDetection value : moderationLabels) { this.moderationLabels.add(value); } 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 (getJobStatus() != null) sb.append("JobStatus: " + getJobStatus() + ","); if (getStatusMessage() != null) sb.append("StatusMessage: " + getStatusMessage() + ","); if (getVideoMetadata() != null) sb.append("VideoMetadata: " + getVideoMetadata() + ","); if (getModerationLabels() != null) sb.append("ModerationLabels: " + getModerationLabels() + ","); if (getNextToken() != null) sb.append("NextToken: " + getNextToken() + ","); if (getBillableDurationSeconds() != null) sb.append("BillableDurationSeconds: " + getBillableDurationSeconds() + ","); if (getErrorCode() != null) sb.append("ErrorCode: " + getErrorCode() + ","); if (getWarnings() != null) sb.append("Warnings: " + getWarnings()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getJobStatus() == null) ? 0 : getJobStatus().hashCode()); hashCode = prime * hashCode + ((getStatusMessage() == null) ? 0 : getStatusMessage().hashCode()); hashCode = prime * hashCode + ((getVideoMetadata() == null) ? 0 : getVideoMetadata().hashCode()); hashCode = prime * hashCode + ((getModerationLabels() == null) ? 0 : getModerationLabels().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getBillableDurationSeconds() == null) ? 0 : getBillableDurationSeconds() .hashCode()); hashCode = prime * hashCode + ((getErrorCode() == null) ? 0 : getErrorCode().hashCode()); hashCode = prime * hashCode + ((getWarnings() == null) ? 0 : getWarnings().hashCode()); return hashCode; }
&& other.getVideoMetadata().equals(this.getVideoMetadata()) == false) return false; if (other.getModerationLabels() == null ^ this.getModerationLabels() == null) return false; if (other.getModerationLabels() != null && other.getModerationLabels().equals(this.getModerationLabels()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null)