@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getVocabularies() == null) ? 0 : getVocabularies().hashCode()); return hashCode; }
/** * <p> * The <code>ListVocabularies</code> operation returns a page of vocabularies at a time. The maximum size of the * page is set by the <code>MaxResults</code> parameter. If there are more jobs in the list than the page size, * Amazon Transcribe returns the <code>NextPage</code> token. Include the token in the next request to the * <code>ListVocabularies</code> operation to return in the next page of jobs. * </p> * * @param nextToken * The <code>ListVocabularies</code> operation returns a page of vocabularies at a time. The maximum size of * the page is set by the <code>MaxResults</code> parameter. If there are more jobs in the list than the page * size, Amazon Transcribe returns the <code>NextPage</code> token. Include the token in the next request to * the <code>ListVocabularies</code> operation to return in the next page of jobs. * @return Returns a reference to this object so that method calls can be chained together. */ public ListVocabulariesResult withNextToken(String nextToken) { setNextToken(nextToken); return this; }
/** * <p> * The requested vocabulary state. * </p> * * @param status * The requested vocabulary state. * @return Returns a reference to this object so that method calls can be chained together. * @see TranscriptionJobStatus */ public ListVocabulariesResult withStatus(String status) { setStatus(status); return this; }
public ListVocabulariesResult unmarshall(JsonUnmarshallerContext context) throws Exception { ListVocabulariesResult listVocabulariesResult = new ListVocabulariesResult(); if (context.testExpression("Status", targetDepth)) { context.nextToken(); listVocabulariesResult.setStatus(context.getUnmarshaller(String.class).unmarshall(context)); listVocabulariesResult.setNextToken(context.getUnmarshaller(String.class).unmarshall(context)); listVocabulariesResult.setVocabularies(new ListUnmarshaller<VocabularyInfo>(VocabularyInfoJsonUnmarshaller.getInstance()) .unmarshall(context));
/** * <p> * A list of objects that describe the vocabularies that match the search criteria in the request. * </p> * * @param vocabularies * A list of objects that describe the vocabularies that match the search criteria in the request. * @return Returns a reference to this object so that method calls can be chained together. */ public ListVocabulariesResult withVocabularies(java.util.Collection<VocabularyInfo> vocabularies) { setVocabularies(vocabularies); return this; }
/** * <p> * A list of objects that describe the vocabularies that match the search * criteria in the request. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param vocabularies <p> * A list of objects that describe the vocabularies that match * the search criteria in the request. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public ListVocabulariesResult withVocabularies(VocabularyInfo... vocabularies) { if (getVocabularies() == null) { this.vocabularies = new java.util.ArrayList<VocabularyInfo>(vocabularies.length); } for (VocabularyInfo value : vocabularies) { this.vocabularies.add(value); } return this; }
public ListVocabulariesResult unmarshall(JsonUnmarshallerContext context) throws Exception { ListVocabulariesResult listVocabulariesResult = new ListVocabulariesResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("Status")) { listVocabulariesResult.setStatus(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("NextToken")) { listVocabulariesResult.setNextToken(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Vocabularies")) { listVocabulariesResult.setVocabularies(new ListUnmarshaller<VocabularyInfo>( VocabularyInfoJsonUnmarshaller.getInstance() ) .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return listVocabulariesResult; }
/** * <p> * A list of objects that describe the vocabularies that match the search criteria in the request. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setVocabularies(java.util.Collection)} or {@link #withVocabularies(java.util.Collection)} if you want to * override the existing values. * </p> * * @param vocabularies * A list of objects that describe the vocabularies that match the search criteria in the request. * @return Returns a reference to this object so that method calls can be chained together. */ public ListVocabulariesResult withVocabularies(VocabularyInfo... vocabularies) { if (this.vocabularies == null) { setVocabularies(new java.util.ArrayList<VocabularyInfo>(vocabularies.length)); } for (VocabularyInfo ele : vocabularies) { this.vocabularies.add(ele); } return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListVocabulariesResult == false) return false; ListVocabulariesResult other = (ListVocabulariesResult) obj; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; if (other.getVocabularies() == null ^ this.getVocabularies() == null) return false; if (other.getVocabularies() != null && other.getVocabularies().equals(this.getVocabularies()) == false) return false; return true; }
/** * <p> * A list of objects that describe the vocabularies that match the search * criteria in the request. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param vocabularies <p> * A list of objects that describe the vocabularies that match * the search criteria in the request. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public ListVocabulariesResult withVocabularies(java.util.Collection<VocabularyInfo> vocabularies) { setVocabularies(vocabularies); return this; }
/** * 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 (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getVocabularies() != null) sb.append("Vocabularies: ").append(getVocabularies()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getVocabularies() == null) ? 0 : getVocabularies().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListVocabulariesResult == false) return false; ListVocabulariesResult other = (ListVocabulariesResult) obj; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; if (other.getVocabularies() == null ^ this.getVocabularies() == null) return false; if (other.getVocabularies() != null && other.getVocabularies().equals(this.getVocabularies()) == 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 (getStatus() != null) sb.append("Status: " + getStatus() + ","); if (getNextToken() != null) sb.append("NextToken: " + getNextToken() + ","); if (getVocabularies() != null) sb.append("Vocabularies: " + getVocabularies()); sb.append("}"); return sb.toString(); }