@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 + ((getVocabularyState() == null) ? 0 : getVocabularyState().hashCode()); hashCode = prime * hashCode + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); hashCode = prime * hashCode + ((getFailureReason() == null) ? 0 : getFailureReason().hashCode()); hashCode = prime * hashCode + ((getDownloadUri() == null) ? 0 : getDownloadUri().hashCode()); return hashCode; }
/** * <p> * The S3 location where the vocabulary is stored. Use this URI to get the contents of the vocabulary. The URI is * available for a limited time. * </p> * * @param downloadUri * The S3 location where the vocabulary is stored. Use this URI to get the contents of the vocabulary. The * URI is available for a limited time. * @return Returns a reference to this object so that method calls can be chained together. */ public GetVocabularyResult withDownloadUri(String downloadUri) { setDownloadUri(downloadUri); return this; }
/** * <p> * If the <code>VocabularyState</code> field is <code>FAILED</code>, this field contains information about why the * job failed. * </p> * * @param failureReason * If the <code>VocabularyState</code> field is <code>FAILED</code>, this field contains information about * why the job failed. * @return Returns a reference to this object so that method calls can be chained together. */ public GetVocabularyResult withFailureReason(String failureReason) { setFailureReason(failureReason); return this; }
public GetVocabularyResult unmarshall(JsonUnmarshallerContext context) throws Exception { GetVocabularyResult getVocabularyResult = new GetVocabularyResult(); if (context.testExpression("VocabularyName", targetDepth)) { context.nextToken(); getVocabularyResult.setVocabularyName(context.getUnmarshaller(String.class).unmarshall(context)); getVocabularyResult.setLanguageCode(context.getUnmarshaller(String.class).unmarshall(context)); getVocabularyResult.setVocabularyState(context.getUnmarshaller(String.class).unmarshall(context)); getVocabularyResult.setLastModifiedTime(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); getVocabularyResult.setFailureReason(context.getUnmarshaller(String.class).unmarshall(context)); getVocabularyResult.setDownloadUri(context.getUnmarshaller(String.class).unmarshall(context));
/** * <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 GetVocabularyResult withLanguageCode(String languageCode) { setLanguageCode(languageCode); return this; }
public GetVocabularyResult unmarshall(JsonUnmarshallerContext context) throws Exception { GetVocabularyResult getVocabularyResult = new GetVocabularyResult(); String name = reader.nextName(); if (name.equals("VocabularyName")) { getVocabularyResult.setVocabularyName(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("LanguageCode")) { getVocabularyResult.setLanguageCode(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("VocabularyState")) { getVocabularyResult.setVocabularyState(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("LastModifiedTime")) { getVocabularyResult.setLastModifiedTime(DateJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("FailureReason")) { getVocabularyResult.setFailureReason(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("DownloadUri")) { getVocabularyResult.setDownloadUri(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else {
return false; GetVocabularyResult other = (GetVocabularyResult) 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.getVocabularyState() == null ^ this.getVocabularyState() == null) return false; if (other.getVocabularyState() != null && other.getVocabularyState().equals(this.getVocabularyState()) == 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.getFailureReason() == null ^ this.getFailureReason() == null) return false; if (other.getFailureReason() != null && other.getFailureReason().equals(this.getFailureReason()) == false) return false; if (other.getDownloadUri() == null ^ this.getDownloadUri() == null) return false; if (other.getDownloadUri() != null && other.getDownloadUri().equals(this.getDownloadUri()) == 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 (getVocabularyState() != null) sb.append("VocabularyState: ").append(getVocabularyState()).append(","); if (getLastModifiedTime() != null) sb.append("LastModifiedTime: ").append(getLastModifiedTime()).append(","); if (getFailureReason() != null) sb.append("FailureReason: ").append(getFailureReason()).append(","); if (getDownloadUri() != null) sb.append("DownloadUri: ").append(getDownloadUri()); 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 + ((getVocabularyState() == null) ? 0 : getVocabularyState().hashCode()); hashCode = prime * hashCode + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); hashCode = prime * hashCode + ((getFailureReason() == null) ? 0 : getFailureReason().hashCode()); hashCode = prime * hashCode + ((getDownloadUri() == null) ? 0 : getDownloadUri().hashCode()); return hashCode; }
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.getVocabularyState() == null ^ this.getVocabularyState() == null) return false; if (other.getVocabularyState() != null && other.getVocabularyState().equals(this.getVocabularyState()) == 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.getFailureReason() == null ^ this.getFailureReason() == null) return false; if (other.getFailureReason() != null && other.getFailureReason().equals(this.getFailureReason()) == false) return false; if (other.getDownloadUri() == null ^ this.getDownloadUri() == null) return false; if (other.getDownloadUri() != null && other.getDownloadUri().equals(this.getDownloadUri()) == false)
/** * 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 (getVocabularyState() != null) sb.append("VocabularyState: " + getVocabularyState() + ","); if (getLastModifiedTime() != null) sb.append("LastModifiedTime: " + getLastModifiedTime() + ","); if (getFailureReason() != null) sb.append("FailureReason: " + getFailureReason() + ","); if (getDownloadUri() != null) sb.append("DownloadUri: " + getDownloadUri()); sb.append("}"); return sb.toString(); }