@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getJobNameContains() == null) ? 0 : getJobNameContains().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); return hashCode; }
/** * <p> * When specified, the jobs returned in the list are limited to jobs whose name contains the specified string. * </p> * * @param jobNameContains * When specified, the jobs returned in the list are limited to jobs whose name contains the specified * string. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTranscriptionJobsRequest withJobNameContains(String jobNameContains) { setJobNameContains(jobNameContains); return this; }
/** * <p> * The maximum number of jobs to return in the response. If there are fewer results in the list, this response * contains only the actual results. * </p> * * @param maxResults * The maximum number of jobs to return in the response. If there are fewer results in the list, this * response contains only the actual results. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTranscriptionJobsRequest withMaxResults(Integer maxResults) { setMaxResults(maxResults); return this; }
/** * <p> * If the result of the previous request to <code>ListTranscriptionJobs</code> was truncated, include the * <code>NextToken</code> to fetch the next set of jobs. * </p> * * @param nextToken * If the result of the previous request to <code>ListTranscriptionJobs</code> was truncated, include the * <code>NextToken</code> to fetch the next set of jobs. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTranscriptionJobsRequest withNextToken(String nextToken) { setNextToken(nextToken); return this; }
/** * <p> * When specified, returns only transcription jobs with the specified status. Jobs are ordered by creation date, * with the newest jobs returned first. If you don’t specify a status, Amazon Transcribe returns all transcription * jobs ordered by creation date. * </p> * * @param status * When specified, returns only transcription jobs with the specified status. Jobs are ordered by creation * date, with the newest jobs returned first. If you don’t specify a status, Amazon Transcribe returns all * transcription jobs ordered by creation date. * @return Returns a reference to this object so that method calls can be chained together. * @see TranscriptionJobStatus */ public ListTranscriptionJobsRequest withStatus(String status) { setStatus(status); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListTranscriptionJobsRequest == false) return false; ListTranscriptionJobsRequest other = (ListTranscriptionJobsRequest) obj; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getJobNameContains() == null ^ this.getJobNameContains() == null) return false; if (other.getJobNameContains() != null && other.getJobNameContains().equals(this.getJobNameContains()) == 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.getMaxResults() == null ^ this.getMaxResults() == null) return false; if (other.getMaxResults() != null && other.getMaxResults().equals(this.getMaxResults()) == 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 (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getJobNameContains() != null) sb.append("JobNameContains: ").append(getJobNameContains()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getMaxResults() != null) sb.append("MaxResults: ").append(getMaxResults()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(ListTranscriptionJobsRequest listTranscriptionJobsRequest, ProtocolMarshaller protocolMarshaller) { if (listTranscriptionJobsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(listTranscriptionJobsRequest.getStatus(), STATUS_BINDING); protocolMarshaller.marshall(listTranscriptionJobsRequest.getJobNameContains(), JOBNAMECONTAINS_BINDING); protocolMarshaller.marshall(listTranscriptionJobsRequest.getNextToken(), NEXTTOKEN_BINDING); protocolMarshaller.marshall(listTranscriptionJobsRequest.getMaxResults(), MAXRESULTS_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getJobNameContains() == null) ? 0 : getJobNameContains().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); return hashCode; }
ListTranscriptionJobsRequest other = (ListTranscriptionJobsRequest) obj; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getJobNameContains() == null ^ this.getJobNameContains() == null) return false; if (other.getJobNameContains() != null && other.getJobNameContains().equals(this.getJobNameContains()) == 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.getMaxResults() == null ^ this.getMaxResults() == null) return false; if (other.getMaxResults() != null && other.getMaxResults().equals(this.getMaxResults()) == 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 (getJobNameContains() != null) sb.append("JobNameContains: " + getJobNameContains() + ","); if (getNextToken() != null) sb.append("NextToken: " + getNextToken() + ","); if (getMaxResults() != null) sb.append("MaxResults: " + getMaxResults()); sb.append("}"); return sb.toString(); }
jsonWriter.beginObject(); if (listTranscriptionJobsRequest.getStatus() != null) { String status = listTranscriptionJobsRequest.getStatus(); jsonWriter.name("Status"); jsonWriter.value(status); if (listTranscriptionJobsRequest.getJobNameContains() != null) { String jobNameContains = listTranscriptionJobsRequest.getJobNameContains(); jsonWriter.name("JobNameContains"); jsonWriter.value(jobNameContains); if (listTranscriptionJobsRequest.getNextToken() != null) { String nextToken = listTranscriptionJobsRequest.getNextToken(); jsonWriter.name("NextToken"); jsonWriter.value(nextToken); if (listTranscriptionJobsRequest.getMaxResults() != null) { Integer maxResults = listTranscriptionJobsRequest.getMaxResults(); jsonWriter.name("MaxResults"); jsonWriter.value(maxResults);