@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTranscriptionJobName() == null) ? 0 : getTranscriptionJobName().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getCompletionTime() == null) ? 0 : getCompletionTime().hashCode()); hashCode = prime * hashCode + ((getLanguageCode() == null) ? 0 : getLanguageCode().hashCode()); hashCode = prime * hashCode + ((getTranscriptionJobStatus() == null) ? 0 : getTranscriptionJobStatus().hashCode()); hashCode = prime * hashCode + ((getFailureReason() == null) ? 0 : getFailureReason().hashCode()); hashCode = prime * hashCode + ((getOutputLocationType() == null) ? 0 : getOutputLocationType().hashCode()); return hashCode; }
/** * <p> * A timestamp that shows when the job was completed. * </p> * * @param completionTime * A timestamp that shows when the job was completed. * @return Returns a reference to this object so that method calls can be chained together. */ public TranscriptionJobSummary withCompletionTime(java.util.Date completionTime) { setCompletionTime(completionTime); return this; }
/** * <p> * A timestamp that shows when the job was created. * </p> * * @param creationTime * A timestamp that shows when the job was created. * @return Returns a reference to this object so that method calls can be chained together. */ public TranscriptionJobSummary withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; }
public TranscriptionJobSummary unmarshall(JsonUnmarshallerContext context) throws Exception { TranscriptionJobSummary transcriptionJobSummary = new TranscriptionJobSummary(); if (context.testExpression("TranscriptionJobName", targetDepth)) { context.nextToken(); transcriptionJobSummary.setTranscriptionJobName(context.getUnmarshaller(String.class).unmarshall(context)); transcriptionJobSummary.setCreationTime(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); transcriptionJobSummary.setCompletionTime(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); transcriptionJobSummary.setLanguageCode(context.getUnmarshaller(String.class).unmarshall(context)); transcriptionJobSummary.setTranscriptionJobStatus(context.getUnmarshaller(String.class).unmarshall(context)); transcriptionJobSummary.setFailureReason(context.getUnmarshaller(String.class).unmarshall(context)); transcriptionJobSummary.setOutputLocationType(context.getUnmarshaller(String.class).unmarshall(context));
TranscriptionJobSummary transcriptionJobSummary = new TranscriptionJobSummary(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("TranscriptionJobName")) { transcriptionJobSummary.setTranscriptionJobName(StringJsonUnmarshaller .getInstance() .unmarshall(context)); } else if (name.equals("CreationTime")) { transcriptionJobSummary.setCreationTime(DateJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("CompletionTime")) { transcriptionJobSummary.setCompletionTime(DateJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("LanguageCode")) { transcriptionJobSummary.setLanguageCode(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("TranscriptionJobStatus")) { transcriptionJobSummary.setTranscriptionJobStatus(StringJsonUnmarshaller .getInstance() .unmarshall(context)); } else if (name.equals("FailureReason")) { transcriptionJobSummary.setFailureReason(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("OutputLocationType")) { transcriptionJobSummary.setOutputLocationType(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else {
return false; TranscriptionJobSummary other = (TranscriptionJobSummary) obj; if (other.getTranscriptionJobName() == null ^ this.getTranscriptionJobName() == null) return false; if (other.getTranscriptionJobName() != null && other.getTranscriptionJobName().equals(this.getTranscriptionJobName()) == false) return false; if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false) return false; if (other.getCompletionTime() == null ^ this.getCompletionTime() == null) return false; if (other.getCompletionTime() != null && other.getCompletionTime().equals(this.getCompletionTime()) == 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.getTranscriptionJobStatus() == null ^ this.getTranscriptionJobStatus() == null) return false; if (other.getTranscriptionJobStatus() != null && other.getTranscriptionJobStatus().equals(this.getTranscriptionJobStatus()) == 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.getOutputLocationType() == null ^ this.getOutputLocationType() == null) return false; if (other.getOutputLocationType() != null && other.getOutputLocationType().equals(this.getOutputLocationType()) == false)
/** * 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 (getTranscriptionJobName() != null) sb.append("TranscriptionJobName: ").append(getTranscriptionJobName()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getCompletionTime() != null) sb.append("CompletionTime: ").append(getCompletionTime()).append(","); if (getLanguageCode() != null) sb.append("LanguageCode: ").append(getLanguageCode()).append(","); if (getTranscriptionJobStatus() != null) sb.append("TranscriptionJobStatus: ").append(getTranscriptionJobStatus()).append(","); if (getFailureReason() != null) sb.append("FailureReason: ").append(getFailureReason()).append(","); if (getOutputLocationType() != null) sb.append("OutputLocationType: ").append(getOutputLocationType()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(TranscriptionJobSummary transcriptionJobSummary, ProtocolMarshaller protocolMarshaller) { if (transcriptionJobSummary == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(transcriptionJobSummary.getTranscriptionJobName(), TRANSCRIPTIONJOBNAME_BINDING); protocolMarshaller.marshall(transcriptionJobSummary.getCreationTime(), CREATIONTIME_BINDING); protocolMarshaller.marshall(transcriptionJobSummary.getCompletionTime(), COMPLETIONTIME_BINDING); protocolMarshaller.marshall(transcriptionJobSummary.getLanguageCode(), LANGUAGECODE_BINDING); protocolMarshaller.marshall(transcriptionJobSummary.getTranscriptionJobStatus(), TRANSCRIPTIONJOBSTATUS_BINDING); protocolMarshaller.marshall(transcriptionJobSummary.getFailureReason(), FAILUREREASON_BINDING); protocolMarshaller.marshall(transcriptionJobSummary.getOutputLocationType(), OUTPUTLOCATIONTYPE_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 + ((getTranscriptionJobName() == null) ? 0 : getTranscriptionJobName().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getCompletionTime() == null) ? 0 : getCompletionTime().hashCode()); hashCode = prime * hashCode + ((getLanguageCode() == null) ? 0 : getLanguageCode().hashCode()); hashCode = prime * hashCode + ((getTranscriptionJobStatus() == null) ? 0 : getTranscriptionJobStatus() .hashCode()); hashCode = prime * hashCode + ((getFailureReason() == null) ? 0 : getFailureReason().hashCode()); hashCode = prime * hashCode + ((getOutputLocationType() == null) ? 0 : getOutputLocationType().hashCode()); return hashCode; }
if (other.getTranscriptionJobName() == null ^ this.getTranscriptionJobName() == null) return false; if (other.getTranscriptionJobName() != null && other.getTranscriptionJobName().equals(this.getTranscriptionJobName()) == false) return false; if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false) return false; if (other.getCompletionTime() == null ^ this.getCompletionTime() == null) return false; if (other.getCompletionTime() != null && other.getCompletionTime().equals(this.getCompletionTime()) == 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.getTranscriptionJobStatus() == null ^ this.getTranscriptionJobStatus() == null) return false; if (other.getTranscriptionJobStatus() != null && other.getTranscriptionJobStatus().equals(this.getTranscriptionJobStatus()) == false) return false; if (other.getFailureReason() == null ^ this.getFailureReason() == null) return false; if (other.getFailureReason() != null && other.getFailureReason().equals(this.getFailureReason()) == 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 (getTranscriptionJobName() != null) sb.append("TranscriptionJobName: " + getTranscriptionJobName() + ","); if (getCreationTime() != null) sb.append("CreationTime: " + getCreationTime() + ","); if (getCompletionTime() != null) sb.append("CompletionTime: " + getCompletionTime() + ","); if (getLanguageCode() != null) sb.append("LanguageCode: " + getLanguageCode() + ","); if (getTranscriptionJobStatus() != null) sb.append("TranscriptionJobStatus: " + getTranscriptionJobStatus() + ","); if (getFailureReason() != null) sb.append("FailureReason: " + getFailureReason() + ","); if (getOutputLocationType() != null) sb.append("OutputLocationType: " + getOutputLocationType()); sb.append("}"); return sb.toString(); }
public void marshall(TranscriptionJobSummary transcriptionJobSummary, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (transcriptionJobSummary.getTranscriptionJobName() != null) { String transcriptionJobName = transcriptionJobSummary.getTranscriptionJobName(); jsonWriter.name("TranscriptionJobName"); jsonWriter.value(transcriptionJobName); if (transcriptionJobSummary.getCreationTime() != null) { java.util.Date creationTime = transcriptionJobSummary.getCreationTime(); jsonWriter.name("CreationTime"); jsonWriter.value(creationTime); if (transcriptionJobSummary.getCompletionTime() != null) { java.util.Date completionTime = transcriptionJobSummary.getCompletionTime(); jsonWriter.name("CompletionTime"); jsonWriter.value(completionTime); if (transcriptionJobSummary.getLanguageCode() != null) { String languageCode = transcriptionJobSummary.getLanguageCode(); jsonWriter.name("LanguageCode"); jsonWriter.value(languageCode); if (transcriptionJobSummary.getTranscriptionJobStatus() != null) { String transcriptionJobStatus = transcriptionJobSummary.getTranscriptionJobStatus(); jsonWriter.name("TranscriptionJobStatus"); jsonWriter.value(transcriptionJobStatus); if (transcriptionJobSummary.getFailureReason() != null) { String failureReason = transcriptionJobSummary.getFailureReason();