if (getTranscriptionJobName() != null) sb.append("TranscriptionJobName: ").append(getTranscriptionJobName()).append(","); if (getTranscriptionJobStatus() != null) sb.append("TranscriptionJobStatus: ").append(getTranscriptionJobStatus()).append(","); if (getLanguageCode() != null) sb.append("LanguageCode: ").append(getLanguageCode()).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.getTranscriptionJobName() != null && other.getTranscriptionJobName().equals(this.getTranscriptionJobName()) == 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.getLanguageCode() == null ^ this.getLanguageCode() == 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 (getTranscriptionJobName() != null) sb.append("TranscriptionJobName: " + getTranscriptionJobName() + ","); if (getTranscriptionJobStatus() != null) sb.append("TranscriptionJobStatus: " + getTranscriptionJobStatus() + ","); if (getLanguageCode() != null) sb.append("LanguageCode: " + getLanguageCode() + ",");
@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; }
&& other.getTranscriptionJobName().equals(this.getTranscriptionJobName()) == 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.getLanguageCode() == null ^ this.getLanguageCode() == null)
jsonWriter.value(transcriptionJobName); if (transcriptionJob.getTranscriptionJobStatus() != null) { String transcriptionJobStatus = transcriptionJob.getTranscriptionJobStatus(); jsonWriter.name("TranscriptionJobStatus"); jsonWriter.value(transcriptionJobStatus);