@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 + ((getTranscriptionJobSummaries() == null) ? 0 : getTranscriptionJobSummaries().hashCode()); return hashCode; }
/** * <p> * The <code>ListTranscriptionJobs</code> operation returns a page of jobs 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>ListTranscriptionJobs</code> operation to return in the next page of jobs. * </p> * * @param nextToken * The <code>ListTranscriptionJobs</code> operation returns a page of jobs 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>ListTranscriptionJobs</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 ListTranscriptionJobsResult withNextToken(String nextToken) { setNextToken(nextToken); return this; }
/** * <p> * The requested status of the jobs returned. * </p> * * @param status * The requested status of the jobs returned. * @return Returns a reference to this object so that method calls can be chained together. * @see TranscriptionJobStatus */ public ListTranscriptionJobsResult withStatus(String status) { setStatus(status); return this; }
public ListTranscriptionJobsResult unmarshall(JsonUnmarshallerContext context) throws Exception { ListTranscriptionJobsResult listTranscriptionJobsResult = new ListTranscriptionJobsResult(); if (context.testExpression("Status", targetDepth)) { context.nextToken(); listTranscriptionJobsResult.setStatus(context.getUnmarshaller(String.class).unmarshall(context)); listTranscriptionJobsResult.setNextToken(context.getUnmarshaller(String.class).unmarshall(context)); listTranscriptionJobsResult.setTranscriptionJobSummaries(new ListUnmarshaller<TranscriptionJobSummary>( TranscriptionJobSummaryJsonUnmarshaller.getInstance()).unmarshall(context));
/** * <p> * A list of objects containing summary information for a transcription job. * </p> * * @param transcriptionJobSummaries * A list of objects containing summary information for a transcription job. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTranscriptionJobsResult withTranscriptionJobSummaries(java.util.Collection<TranscriptionJobSummary> transcriptionJobSummaries) { setTranscriptionJobSummaries(transcriptionJobSummaries); return this; }
/** * <p> * A list of objects containing summary information for a transcription job. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param transcriptionJobSummaries <p> * A list of objects containing summary information for a * transcription job. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public ListTranscriptionJobsResult withTranscriptionJobSummaries( TranscriptionJobSummary... transcriptionJobSummaries) { if (getTranscriptionJobSummaries() == null) { this.transcriptionJobSummaries = new java.util.ArrayList<TranscriptionJobSummary>( transcriptionJobSummaries.length); } for (TranscriptionJobSummary value : transcriptionJobSummaries) { this.transcriptionJobSummaries.add(value); } return this; }
public ListTranscriptionJobsResult unmarshall(JsonUnmarshallerContext context) throws Exception { ListTranscriptionJobsResult listTranscriptionJobsResult = new ListTranscriptionJobsResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("Status")) { listTranscriptionJobsResult.setStatus(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("NextToken")) { listTranscriptionJobsResult.setNextToken(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("TranscriptionJobSummaries")) { listTranscriptionJobsResult .setTranscriptionJobSummaries(new ListUnmarshaller<TranscriptionJobSummary>( TranscriptionJobSummaryJsonUnmarshaller.getInstance() ) .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return listTranscriptionJobsResult; }
/** * <p> * A list of objects containing summary information for a transcription job. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setTranscriptionJobSummaries(java.util.Collection)} or * {@link #withTranscriptionJobSummaries(java.util.Collection)} if you want to override the existing values. * </p> * * @param transcriptionJobSummaries * A list of objects containing summary information for a transcription job. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTranscriptionJobsResult withTranscriptionJobSummaries(TranscriptionJobSummary... transcriptionJobSummaries) { if (this.transcriptionJobSummaries == null) { setTranscriptionJobSummaries(new java.util.ArrayList<TranscriptionJobSummary>(transcriptionJobSummaries.length)); } for (TranscriptionJobSummary ele : transcriptionJobSummaries) { this.transcriptionJobSummaries.add(ele); } return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListTranscriptionJobsResult == false) return false; ListTranscriptionJobsResult other = (ListTranscriptionJobsResult) 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.getTranscriptionJobSummaries() == null ^ this.getTranscriptionJobSummaries() == null) return false; if (other.getTranscriptionJobSummaries() != null && other.getTranscriptionJobSummaries().equals(this.getTranscriptionJobSummaries()) == false) return false; return true; }
/** * <p> * A list of objects containing summary information for a transcription job. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param transcriptionJobSummaries <p> * A list of objects containing summary information for a * transcription job. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public ListTranscriptionJobsResult withTranscriptionJobSummaries( java.util.Collection<TranscriptionJobSummary> transcriptionJobSummaries) { setTranscriptionJobSummaries(transcriptionJobSummaries); 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 (getTranscriptionJobSummaries() != null) sb.append("TranscriptionJobSummaries: ").append(getTranscriptionJobSummaries()); 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 + ((getTranscriptionJobSummaries() == null) ? 0 : getTranscriptionJobSummaries() .hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListTranscriptionJobsResult == false) return false; ListTranscriptionJobsResult other = (ListTranscriptionJobsResult) 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.getTranscriptionJobSummaries() == null ^ this.getTranscriptionJobSummaries() == null) return false; if (other.getTranscriptionJobSummaries() != null && other.getTranscriptionJobSummaries().equals(this.getTranscriptionJobSummaries()) == 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 (getTranscriptionJobSummaries() != null) sb.append("TranscriptionJobSummaries: " + getTranscriptionJobSummaries()); sb.append("}"); return sb.toString(); }