@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getVocabularyName() == null) ? 0 : getVocabularyName().hashCode()); hashCode = prime * hashCode + ((getShowSpeakerLabels() == null) ? 0 : getShowSpeakerLabels().hashCode()); hashCode = prime * hashCode + ((getMaxSpeakerLabels() == null) ? 0 : getMaxSpeakerLabels().hashCode()); hashCode = prime * hashCode + ((getChannelIdentification() == null) ? 0 : getChannelIdentification().hashCode()); return hashCode; }
/** * 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 (getVocabularyName() != null) sb.append("VocabularyName: ").append(getVocabularyName()).append(","); if (getShowSpeakerLabels() != null) sb.append("ShowSpeakerLabels: ").append(getShowSpeakerLabels()).append(","); if (getMaxSpeakerLabels() != null) sb.append("MaxSpeakerLabels: ").append(getMaxSpeakerLabels()).append(","); if (getChannelIdentification() != null) sb.append("ChannelIdentification: ").append(getChannelIdentification()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Settings == false) return false; Settings other = (Settings) obj; if (other.getVocabularyName() == null ^ this.getVocabularyName() == null) return false; if (other.getVocabularyName() != null && other.getVocabularyName().equals(this.getVocabularyName()) == false) return false; if (other.getShowSpeakerLabels() == null ^ this.getShowSpeakerLabels() == null) return false; if (other.getShowSpeakerLabels() != null && other.getShowSpeakerLabels().equals(this.getShowSpeakerLabels()) == false) return false; if (other.getMaxSpeakerLabels() == null ^ this.getMaxSpeakerLabels() == null) return false; if (other.getMaxSpeakerLabels() != null && other.getMaxSpeakerLabels().equals(this.getMaxSpeakerLabels()) == false) return false; if (other.getChannelIdentification() == null ^ this.getChannelIdentification() == null) return false; if (other.getChannelIdentification() != null && other.getChannelIdentification().equals(this.getChannelIdentification()) == false) return false; return true; }
/** * Marshall the given parameter object. */ public void marshall(Settings settings, ProtocolMarshaller protocolMarshaller) { if (settings == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(settings.getVocabularyName(), VOCABULARYNAME_BINDING); protocolMarshaller.marshall(settings.getShowSpeakerLabels(), SHOWSPEAKERLABELS_BINDING); protocolMarshaller.marshall(settings.getMaxSpeakerLabels(), MAXSPEAKERLABELS_BINDING); protocolMarshaller.marshall(settings.getChannelIdentification(), CHANNELIDENTIFICATION_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getVocabularyName() == null) ? 0 : getVocabularyName().hashCode()); hashCode = prime * hashCode + ((getShowSpeakerLabels() == null) ? 0 : getShowSpeakerLabels().hashCode()); hashCode = prime * hashCode + ((getMaxSpeakerLabels() == null) ? 0 : getMaxSpeakerLabels().hashCode()); hashCode = prime * hashCode + ((getChannelIdentification() == null) ? 0 : getChannelIdentification().hashCode()); return hashCode; }
/** * 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 (getVocabularyName() != null) sb.append("VocabularyName: " + getVocabularyName() + ","); if (getShowSpeakerLabels() != null) sb.append("ShowSpeakerLabels: " + getShowSpeakerLabels() + ","); if (getMaxSpeakerLabels() != null) sb.append("MaxSpeakerLabels: " + getMaxSpeakerLabels() + ","); if (getChannelIdentification() != null) sb.append("ChannelIdentification: " + getChannelIdentification()); sb.append("}"); return sb.toString(); }
&& other.getShowSpeakerLabels().equals(this.getShowSpeakerLabels()) == false) return false; if (other.getMaxSpeakerLabels() == null ^ this.getMaxSpeakerLabels() == null) return false; if (other.getMaxSpeakerLabels() != null && other.getMaxSpeakerLabels().equals(this.getMaxSpeakerLabels()) == false) return false; if (other.getChannelIdentification() == null ^ this.getChannelIdentification() == null)
public void marshall(Settings settings, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (settings.getVocabularyName() != null) { String vocabularyName = settings.getVocabularyName(); jsonWriter.name("VocabularyName"); jsonWriter.value(vocabularyName); } if (settings.getShowSpeakerLabels() != null) { Boolean showSpeakerLabels = settings.getShowSpeakerLabels(); jsonWriter.name("ShowSpeakerLabels"); jsonWriter.value(showSpeakerLabels); } if (settings.getMaxSpeakerLabels() != null) { Integer maxSpeakerLabels = settings.getMaxSpeakerLabels(); jsonWriter.name("MaxSpeakerLabels"); jsonWriter.value(maxSpeakerLabels); } if (settings.getChannelIdentification() != null) { Boolean channelIdentification = settings.getChannelIdentification(); jsonWriter.name("ChannelIdentification"); jsonWriter.value(channelIdentification); } jsonWriter.endObject(); }