@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTranscriptionJobName() == null) ? 0 : getTranscriptionJobName().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 + ((getOutputBucketName() == null) ? 0 : getOutputBucketName().hashCode()); hashCode = prime * hashCode + ((getSettings() == null) ? 0 : getSettings().hashCode()); return hashCode; }
/** * <p> * The language code for the language used in the input media file. * </p> * * @param languageCode * The language code for the language used in the input media file. * @return Returns a reference to this object so that method calls can be chained together. * @see LanguageCode */ public StartTranscriptionJobRequest withLanguageCode(String languageCode) { setLanguageCode(languageCode); return this; }
/** * <p> * An object that describes the input media for a transcription job. * </p> * * @param media * An object that describes the input media for a transcription job. * @return Returns a reference to this object so that method calls can be chained together. */ public StartTranscriptionJobRequest withMedia(Media media) { setMedia(media); return this; }
/** * <p> * The format of the input media file. * </p> * * @param mediaFormat * The format of the input media file. * @return Returns a reference to this object so that method calls can be chained together. * @see MediaFormat */ public StartTranscriptionJobRequest withMediaFormat(String mediaFormat) { setMediaFormat(mediaFormat); return this; }
return false; StartTranscriptionJobRequest other = (StartTranscriptionJobRequest) obj; if (other.getTranscriptionJobName() == null ^ this.getTranscriptionJobName() == null) return false; if (other.getTranscriptionJobName() != null && other.getTranscriptionJobName().equals(this.getTranscriptionJobName()) == 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.getMediaSampleRateHertz() == null ^ this.getMediaSampleRateHertz() == null) return false; if (other.getMediaSampleRateHertz() != null && other.getMediaSampleRateHertz().equals(this.getMediaSampleRateHertz()) == false) return false; if (other.getMediaFormat() == null ^ this.getMediaFormat() == null) return false; if (other.getMediaFormat() != null && other.getMediaFormat().equals(this.getMediaFormat()) == false) return false; if (other.getMedia() == null ^ this.getMedia() == null) return false; if (other.getMedia() != null && other.getMedia().equals(this.getMedia()) == false) return false; if (other.getOutputBucketName() == null ^ this.getOutputBucketName() == null) return false; if (other.getOutputBucketName() != null && other.getOutputBucketName().equals(this.getOutputBucketName()) == false) return false; if (other.getSettings() == null ^ this.getSettings() == null) return false; if (other.getSettings() != null && other.getSettings().equals(this.getSettings()) == 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 (getLanguageCode() != null) sb.append("LanguageCode: ").append(getLanguageCode()).append(","); if (getMediaSampleRateHertz() != null) sb.append("MediaSampleRateHertz: ").append(getMediaSampleRateHertz()).append(","); if (getMediaFormat() != null) sb.append("MediaFormat: ").append(getMediaFormat()).append(","); if (getMedia() != null) sb.append("Media: ").append(getMedia()).append(","); if (getOutputBucketName() != null) sb.append("OutputBucketName: ").append(getOutputBucketName()).append(","); if (getSettings() != null) sb.append("Settings: ").append(getSettings()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(StartTranscriptionJobRequest startTranscriptionJobRequest, ProtocolMarshaller protocolMarshaller) { if (startTranscriptionJobRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(startTranscriptionJobRequest.getTranscriptionJobName(), TRANSCRIPTIONJOBNAME_BINDING); protocolMarshaller.marshall(startTranscriptionJobRequest.getLanguageCode(), LANGUAGECODE_BINDING); protocolMarshaller.marshall(startTranscriptionJobRequest.getMediaSampleRateHertz(), MEDIASAMPLERATEHERTZ_BINDING); protocolMarshaller.marshall(startTranscriptionJobRequest.getMediaFormat(), MEDIAFORMAT_BINDING); protocolMarshaller.marshall(startTranscriptionJobRequest.getMedia(), MEDIA_BINDING); protocolMarshaller.marshall(startTranscriptionJobRequest.getOutputBucketName(), OUTPUTBUCKETNAME_BINDING); protocolMarshaller.marshall(startTranscriptionJobRequest.getSettings(), SETTINGS_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 + ((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 + ((getOutputBucketName() == null) ? 0 : getOutputBucketName().hashCode()); hashCode = prime * hashCode + ((getSettings() == null) ? 0 : getSettings().hashCode()); return hashCode; }
/** * 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 (getLanguageCode() != null) sb.append("LanguageCode: " + getLanguageCode() + ","); if (getMediaSampleRateHertz() != null) sb.append("MediaSampleRateHertz: " + getMediaSampleRateHertz() + ","); if (getMediaFormat() != null) sb.append("MediaFormat: " + getMediaFormat() + ","); if (getMedia() != null) sb.append("Media: " + getMedia() + ","); if (getOutputBucketName() != null) sb.append("OutputBucketName: " + getOutputBucketName() + ","); if (getSettings() != null) sb.append("Settings: " + getSettings()); sb.append("}"); return sb.toString(); }
if (other.getTranscriptionJobName() == null ^ this.getTranscriptionJobName() == null) return false; if (other.getTranscriptionJobName() != null && other.getTranscriptionJobName().equals(this.getTranscriptionJobName()) == 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.getMediaSampleRateHertz() == null ^ this.getMediaSampleRateHertz() == null) return false; if (other.getMediaSampleRateHertz() != null && other.getMediaSampleRateHertz().equals(this.getMediaSampleRateHertz()) == false) return false; if (other.getMediaFormat() == null ^ this.getMediaFormat() == null) return false; if (other.getMediaFormat() != null && other.getMediaFormat().equals(this.getMediaFormat()) == false) return false; if (other.getMedia() == null ^ this.getMedia() == null) return false; if (other.getMedia() != null && other.getMedia().equals(this.getMedia()) == false) return false; if (other.getOutputBucketName() == null ^ this.getOutputBucketName() == null) return false; if (other.getOutputBucketName() != null && other.getOutputBucketName().equals(this.getOutputBucketName()) == false) return false;
if (startTranscriptionJobRequest.getTranscriptionJobName() != null) { String transcriptionJobName = startTranscriptionJobRequest .getTranscriptionJobName(); jsonWriter.name("TranscriptionJobName"); jsonWriter.value(transcriptionJobName); if (startTranscriptionJobRequest.getLanguageCode() != null) { String languageCode = startTranscriptionJobRequest.getLanguageCode(); jsonWriter.name("LanguageCode"); jsonWriter.value(languageCode); if (startTranscriptionJobRequest.getMediaSampleRateHertz() != null) { Integer mediaSampleRateHertz = startTranscriptionJobRequest .getMediaSampleRateHertz(); jsonWriter.name("MediaSampleRateHertz"); jsonWriter.value(mediaSampleRateHertz); if (startTranscriptionJobRequest.getMediaFormat() != null) { String mediaFormat = startTranscriptionJobRequest.getMediaFormat(); jsonWriter.name("MediaFormat"); jsonWriter.value(mediaFormat); if (startTranscriptionJobRequest.getMedia() != null) { Media media = startTranscriptionJobRequest.getMedia(); jsonWriter.name("Media"); MediaJsonMarshaller.getInstance().marshall(media, jsonWriter); if (startTranscriptionJobRequest.getOutputBucketName() != null) { String outputBucketName = startTranscriptionJobRequest.getOutputBucketName();