/** * 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(); }
@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; }
/** * 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); } }
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)
/** * 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(); }
@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; }
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)
MediaJsonMarshaller.getInstance().marshall(media, jsonWriter); if (startTranscriptionJobRequest.getOutputBucketName() != null) { String outputBucketName = startTranscriptionJobRequest.getOutputBucketName(); jsonWriter.name("OutputBucketName"); jsonWriter.value(outputBucketName);