if (getMedia() != null) sb.append("Media: ").append(getMedia()).append(","); if (getTranscript() != null) sb.append("Transcript: ").append(getTranscript()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(",");
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTranscriptionJobName() == null) ? 0 : getTranscriptionJobName().hashCode()); hashCode = prime * hashCode + ((getTranscriptionJobStatus() == null) ? 0 : getTranscriptionJobStatus().hashCode()); hashCode = prime * hashCode + ((getLanguageCode() == null) ? 0 : getLanguageCode().hashCode()); hashCode = prime * hashCode + ((getMediaSampleRateHertz() == null) ? 0 : getMediaSampleRateHertz().hashCode()); hashCode = prime * hashCode + ((getMediaFormat() == null) ? 0 : getMediaFormat().hashCode()); hashCode = prime * hashCode + ((getMedia() == null) ? 0 : getMedia().hashCode()); hashCode = prime * hashCode + ((getTranscript() == null) ? 0 : getTranscript().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getCompletionTime() == null) ? 0 : getCompletionTime().hashCode()); hashCode = prime * hashCode + ((getFailureReason() == null) ? 0 : getFailureReason().hashCode()); hashCode = prime * hashCode + ((getSettings() == null) ? 0 : getSettings().hashCode()); return hashCode; }
if (other.getMedia() != null && other.getMedia().equals(this.getMedia()) == false) return false; if (other.getTranscript() == null ^ this.getTranscript() == null) return false; if (other.getTranscript() != null && other.getTranscript().equals(this.getTranscript()) == false) return false; if (other.getCreationTime() == null ^ this.getCreationTime() == null)
/** * Marshall the given parameter object. */ public void marshall(TranscriptionJob transcriptionJob, ProtocolMarshaller protocolMarshaller) { if (transcriptionJob == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(transcriptionJob.getTranscriptionJobName(), TRANSCRIPTIONJOBNAME_BINDING); protocolMarshaller.marshall(transcriptionJob.getTranscriptionJobStatus(), TRANSCRIPTIONJOBSTATUS_BINDING); protocolMarshaller.marshall(transcriptionJob.getLanguageCode(), LANGUAGECODE_BINDING); protocolMarshaller.marshall(transcriptionJob.getMediaSampleRateHertz(), MEDIASAMPLERATEHERTZ_BINDING); protocolMarshaller.marshall(transcriptionJob.getMediaFormat(), MEDIAFORMAT_BINDING); protocolMarshaller.marshall(transcriptionJob.getMedia(), MEDIA_BINDING); protocolMarshaller.marshall(transcriptionJob.getTranscript(), TRANSCRIPT_BINDING); protocolMarshaller.marshall(transcriptionJob.getCreationTime(), CREATIONTIME_BINDING); protocolMarshaller.marshall(transcriptionJob.getCompletionTime(), COMPLETIONTIME_BINDING); protocolMarshaller.marshall(transcriptionJob.getFailureReason(), FAILUREREASON_BINDING); protocolMarshaller.marshall(transcriptionJob.getSettings(), SETTINGS_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
if (getMedia() != null) sb.append("Media: " + getMedia() + ","); if (getTranscript() != null) sb.append("Transcript: " + getTranscript() + ","); if (getCreationTime() != null) sb.append("CreationTime: " + getCreationTime() + ",");
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTranscriptionJobName() == null) ? 0 : getTranscriptionJobName().hashCode()); hashCode = prime * hashCode + ((getTranscriptionJobStatus() == null) ? 0 : getTranscriptionJobStatus() .hashCode()); hashCode = prime * hashCode + ((getLanguageCode() == null) ? 0 : getLanguageCode().hashCode()); hashCode = prime * hashCode + ((getMediaSampleRateHertz() == null) ? 0 : getMediaSampleRateHertz().hashCode()); hashCode = prime * hashCode + ((getMediaFormat() == null) ? 0 : getMediaFormat().hashCode()); hashCode = prime * hashCode + ((getMedia() == null) ? 0 : getMedia().hashCode()); hashCode = prime * hashCode + ((getTranscript() == null) ? 0 : getTranscript().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getCompletionTime() == null) ? 0 : getCompletionTime().hashCode()); hashCode = prime * hashCode + ((getFailureReason() == null) ? 0 : getFailureReason().hashCode()); hashCode = prime * hashCode + ((getSettings() == null) ? 0 : getSettings().hashCode()); return hashCode; }
if (other.getMedia() != null && other.getMedia().equals(this.getMedia()) == false) return false; if (other.getTranscript() == null ^ this.getTranscript() == null) return false; if (other.getTranscript() != null && other.getTranscript().equals(this.getTranscript()) == false) return false; if (other.getCreationTime() == null ^ this.getCreationTime() == null)
MediaJsonMarshaller.getInstance().marshall(media, jsonWriter); if (transcriptionJob.getTranscript() != null) { Transcript transcript = transcriptionJob.getTranscript(); jsonWriter.name("Transcript"); TranscriptJsonMarshaller.getInstance().marshall(transcript, jsonWriter);