@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()); return hashCode; }
/** * <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 CreateVocabularyResult withFailureReason(String failureReason) { setFailureReason(failureReason); return this; }
/** * <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 CreateVocabularyResult withLanguageCode(String languageCode) { setLanguageCode(languageCode); return this; }
public CreateVocabularyResult unmarshall(JsonUnmarshallerContext context) throws Exception { CreateVocabularyResult createVocabularyResult = new CreateVocabularyResult(); if (context.testExpression("VocabularyName", targetDepth)) { context.nextToken(); createVocabularyResult.setVocabularyName(context.getUnmarshaller(String.class).unmarshall(context)); createVocabularyResult.setLanguageCode(context.getUnmarshaller(String.class).unmarshall(context)); createVocabularyResult.setVocabularyState(context.getUnmarshaller(String.class).unmarshall(context)); createVocabularyResult.setLastModifiedTime(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); createVocabularyResult.setFailureReason(context.getUnmarshaller(String.class).unmarshall(context));
/** * <p> * The name of the vocabulary. * </p> * * @param vocabularyName * The name of the vocabulary. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVocabularyResult withVocabularyName(String vocabularyName) { setVocabularyName(vocabularyName); return this; }
/** * <p> * The date and time that the vocabulary was created. * </p> * * @param lastModifiedTime * The date and time that the vocabulary was created. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateVocabularyResult withLastModifiedTime(java.util.Date lastModifiedTime) { setLastModifiedTime(lastModifiedTime); return this; }
public CreateVocabularyResult unmarshall(JsonUnmarshallerContext context) throws Exception { CreateVocabularyResult createVocabularyResult = new CreateVocabularyResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("VocabularyName")) { createVocabularyResult.setVocabularyName(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("LanguageCode")) { createVocabularyResult.setLanguageCode(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("VocabularyState")) { createVocabularyResult.setVocabularyState(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("LastModifiedTime")) { createVocabularyResult.setLastModifiedTime(DateJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("FailureReason")) { createVocabularyResult.setFailureReason(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return createVocabularyResult; }
return false; CreateVocabularyResult other = (CreateVocabularyResult) 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; 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()); 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()); 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 (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()); sb.append("}"); return sb.toString(); }
CreateVocabularyResult other = (CreateVocabularyResult) 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; return true;