@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getVocabularyName() == null) ? 0 : getVocabularyName().hashCode()); hashCode = prime * hashCode + ((getLanguageCode() == null) ? 0 : getLanguageCode().hashCode()); hashCode = prime * hashCode + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); hashCode = prime * hashCode + ((getVocabularyState() == null) ? 0 : getVocabularyState().hashCode()); return hashCode; }
/** * <p> * The language code of the vocabulary entries. * </p> * * @param languageCode * The language code of the vocabulary entries. * @return Returns a reference to this object so that method calls can be chained together. * @see LanguageCode */ public UpdateVocabularyResult withLanguageCode(String languageCode) { setLanguageCode(languageCode); return this; }
/** * <p> * The date and time that the vocabulary was updated. * </p> * * @param lastModifiedTime * The date and time that the vocabulary was updated. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateVocabularyResult withLastModifiedTime(java.util.Date lastModifiedTime) { setLastModifiedTime(lastModifiedTime); return this; }
public UpdateVocabularyResult unmarshall(JsonUnmarshallerContext context) throws Exception { UpdateVocabularyResult updateVocabularyResult = new UpdateVocabularyResult(); if (context.testExpression("VocabularyName", targetDepth)) { context.nextToken(); updateVocabularyResult.setVocabularyName(context.getUnmarshaller(String.class).unmarshall(context)); updateVocabularyResult.setLanguageCode(context.getUnmarshaller(String.class).unmarshall(context)); updateVocabularyResult.setLastModifiedTime(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); updateVocabularyResult.setVocabularyState(context.getUnmarshaller(String.class).unmarshall(context));
/** * <p> * The name of the vocabulary that was updated. * </p> * * @param vocabularyName * The name of the vocabulary that was updated. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateVocabularyResult withVocabularyName(String vocabularyName) { setVocabularyName(vocabularyName); return this; }
/** * <p> * The processing state of the vocabulary. When the <code>VocabularyState</code> field contains <code>READY</code> * the vocabulary is ready to be used in a <code>StartTranscriptionJob</code> request. * </p> * * @param vocabularyState * The processing state of the vocabulary. When the <code>VocabularyState</code> field contains * <code>READY</code> the vocabulary is ready to be used in a <code>StartTranscriptionJob</code> request. * @return Returns a reference to this object so that method calls can be chained together. * @see VocabularyState */ public UpdateVocabularyResult withVocabularyState(String vocabularyState) { setVocabularyState(vocabularyState); return this; }
public UpdateVocabularyResult unmarshall(JsonUnmarshallerContext context) throws Exception { UpdateVocabularyResult updateVocabularyResult = new UpdateVocabularyResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("VocabularyName")) { updateVocabularyResult.setVocabularyName(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("LanguageCode")) { updateVocabularyResult.setLanguageCode(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("LastModifiedTime")) { updateVocabularyResult.setLastModifiedTime(DateJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("VocabularyState")) { updateVocabularyResult.setVocabularyState(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return updateVocabularyResult; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateVocabularyResult == false) return false; UpdateVocabularyResult other = (UpdateVocabularyResult) obj; if (other.getVocabularyName() == null ^ this.getVocabularyName() == null) return false; if (other.getVocabularyName() != null && other.getVocabularyName().equals(this.getVocabularyName()) == false) return false; if (other.getLanguageCode() == null ^ this.getLanguageCode() == null) return false; if (other.getLanguageCode() != null && other.getLanguageCode().equals(this.getLanguageCode()) == false) return false; if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) return false; if (other.getLastModifiedTime() != null && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) return false; if (other.getVocabularyState() == null ^ this.getVocabularyState() == null) return false; if (other.getVocabularyState() != null && other.getVocabularyState().equals(this.getVocabularyState()) == false) return false; return true; }
/** * 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 (getLanguageCode() != null) sb.append("LanguageCode: ").append(getLanguageCode()).append(","); if (getLastModifiedTime() != null) sb.append("LastModifiedTime: ").append(getLastModifiedTime()).append(","); if (getVocabularyState() != null) sb.append("VocabularyState: ").append(getVocabularyState()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getVocabularyName() == null) ? 0 : getVocabularyName().hashCode()); hashCode = prime * hashCode + ((getLanguageCode() == null) ? 0 : getLanguageCode().hashCode()); hashCode = prime * hashCode + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); hashCode = prime * hashCode + ((getVocabularyState() == null) ? 0 : getVocabularyState().hashCode()); return hashCode; }
UpdateVocabularyResult other = (UpdateVocabularyResult) obj; if (other.getVocabularyName() == null ^ this.getVocabularyName() == null) return false; if (other.getVocabularyName() != null && other.getVocabularyName().equals(this.getVocabularyName()) == false) return false; if (other.getLanguageCode() == null ^ this.getLanguageCode() == null) return false; if (other.getLanguageCode() != null && other.getLanguageCode().equals(this.getLanguageCode()) == false) return false; if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) return false; if (other.getLastModifiedTime() != null && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) return false; if (other.getVocabularyState() == null ^ this.getVocabularyState() == null) return false; if (other.getVocabularyState() != null && other.getVocabularyState().equals(this.getVocabularyState()) == false) return false; return true;
/** * 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 (getLanguageCode() != null) sb.append("LanguageCode: " + getLanguageCode() + ","); if (getLastModifiedTime() != null) sb.append("LastModifiedTime: " + getLastModifiedTime() + ","); if (getVocabularyState() != null) sb.append("VocabularyState: " + getVocabularyState()); sb.append("}"); return sb.toString(); }