/** * 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 (getVideo() != null) sb.append("Video: " + getVideo() + ","); if (getClientRequestToken() != null) sb.append("ClientRequestToken: " + getClientRequestToken() + ","); if (getNotificationChannel() != null) sb.append("NotificationChannel: " + getNotificationChannel() + ","); if (getEnablePersonTracking() != null) sb.append("EnablePersonTracking: " + getEnablePersonTracking() + ","); if (getJobTag() != null) sb.append("JobTag: " + getJobTag()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getVideo() == null) ? 0 : getVideo().hashCode()); hashCode = prime * hashCode + ((getClientRequestToken() == null) ? 0 : getClientRequestToken().hashCode()); hashCode = prime * hashCode + ((getNotificationChannel() == null) ? 0 : getNotificationChannel().hashCode()); hashCode = prime * hashCode + ((getEnablePersonTracking() == null) ? 0 : getEnablePersonTracking().hashCode()); hashCode = prime * hashCode + ((getJobTag() == null) ? 0 : getJobTag().hashCode()); return hashCode; }
&& other.getNotificationChannel().equals(this.getNotificationChannel()) == false) return false; if (other.getEnablePersonTracking() == null ^ this.getEnablePersonTracking() == null) return false; if (other.getEnablePersonTracking() != null && other.getEnablePersonTracking().equals(this.getEnablePersonTracking()) == false) return false; if (other.getJobTag() == null ^ this.getJobTag() == null)
jsonWriter); if (startCelebrityRecognitionRequest.getEnablePersonTracking() != null) { Boolean enablePersonTracking = startCelebrityRecognitionRequest .getEnablePersonTracking(); jsonWriter.name("EnablePersonTracking"); jsonWriter.value(enablePersonTracking);