@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getVocabularyName() == null) ? 0 : getVocabularyName().hashCode()); hashCode = prime * hashCode + ((getShowSpeakerLabels() == null) ? 0 : getShowSpeakerLabels().hashCode()); hashCode = prime * hashCode + ((getMaxSpeakerLabels() == null) ? 0 : getMaxSpeakerLabels().hashCode()); hashCode = prime * hashCode + ((getChannelIdentification() == null) ? 0 : getChannelIdentification().hashCode()); return hashCode; }
setChannelIdentification(channelIdentification); return this;
/** * <p> * The maximum number of speakers to identify in the input audio. If there are more speakers in the audio than this * number, multiple speakers will be identified as a single speaker. If you specify the * <code>MaxSpeakerLabels</code> field, you must set the <code>ShowSpeakerLabels</code> field to true. * </p> * * @param maxSpeakerLabels * The maximum number of speakers to identify in the input audio. If there are more speakers in the audio * than this number, multiple speakers will be identified as a single speaker. If you specify the * <code>MaxSpeakerLabels</code> field, you must set the <code>ShowSpeakerLabels</code> field to true. * @return Returns a reference to this object so that method calls can be chained together. */ public Settings withMaxSpeakerLabels(Integer maxSpeakerLabels) { setMaxSpeakerLabels(maxSpeakerLabels); return this; }
public Settings unmarshall(JsonUnmarshallerContext context) throws Exception { Settings settings = new Settings(); if (context.testExpression("VocabularyName", targetDepth)) { context.nextToken(); settings.setVocabularyName(context.getUnmarshaller(String.class).unmarshall(context)); settings.setShowSpeakerLabels(context.getUnmarshaller(Boolean.class).unmarshall(context)); settings.setMaxSpeakerLabels(context.getUnmarshaller(Integer.class).unmarshall(context)); settings.setChannelIdentification(context.getUnmarshaller(Boolean.class).unmarshall(context));
@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.getSettings() == null ^ this.getSettings() == null) return false; if (other.getSettings() != null && other.getSettings().equals(this.getSettings()) == false) return false; return true;
/** * <p> * Determines whether the transcription job uses speaker recognition to identify different speakers in the input * audio. Speaker recognition labels individual speakers in the audio file. If you set the * <code>ShowSpeakerLabels</code> field to true, you must also set the maximum number of speaker labels * <code>MaxSpeakerLabels</code> field. * </p> * <p> * You can't set both <code>ShowSpeakerLabels</code> and <code>ChannelIdentification</code> in the same request. If * you set both, your request returns a <code>BadRequestException</code>. * </p> * * @param showSpeakerLabels * Determines whether the transcription job uses speaker recognition to identify different speakers in the * input audio. Speaker recognition labels individual speakers in the audio file. If you set the * <code>ShowSpeakerLabels</code> field to true, you must also set the maximum number of speaker labels * <code>MaxSpeakerLabels</code> field.</p> * <p> * You can't set both <code>ShowSpeakerLabels</code> and <code>ChannelIdentification</code> in the same * request. If you set both, your request returns a <code>BadRequestException</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public Settings withShowSpeakerLabels(Boolean showSpeakerLabels) { setShowSpeakerLabels(showSpeakerLabels); return this; }
public Settings unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } Settings settings = new Settings(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("VocabularyName")) { settings.setVocabularyName(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("ShowSpeakerLabels")) { settings.setShowSpeakerLabels(BooleanJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("MaxSpeakerLabels")) { settings.setMaxSpeakerLabels(IntegerJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("ChannelIdentification")) { settings.setChannelIdentification(BooleanJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return settings; }
@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.getSettings() == null ^ this.getSettings() == null) return false; if (other.getSettings() != null && other.getSettings().equals(this.getSettings()) == false) return false; return true;
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Settings == false) return false; Settings other = (Settings) obj; if (other.getVocabularyName() == null ^ this.getVocabularyName() == null) return false; if (other.getVocabularyName() != null && other.getVocabularyName().equals(this.getVocabularyName()) == false) return false; if (other.getShowSpeakerLabels() == null ^ this.getShowSpeakerLabels() == null) return false; if (other.getShowSpeakerLabels() != null && other.getShowSpeakerLabels().equals(this.getShowSpeakerLabels()) == false) return false; if (other.getMaxSpeakerLabels() == null ^ this.getMaxSpeakerLabels() == null) return false; if (other.getMaxSpeakerLabels() != null && other.getMaxSpeakerLabels().equals(this.getMaxSpeakerLabels()) == false) return false; if (other.getChannelIdentification() == null ^ this.getChannelIdentification() == null) return false; if (other.getChannelIdentification() != null && other.getChannelIdentification().equals(this.getChannelIdentification()) == false) return false; return true; }
@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.getSettings() == null ^ this.getSettings() == null) return false; if (other.getSettings() != null && other.getSettings().equals(this.getSettings()) == false) return false; return true;
/** * 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 (getVocabularyName() != null) sb.append("VocabularyName: ").append(getVocabularyName()).append(","); if (getShowSpeakerLabels() != null) sb.append("ShowSpeakerLabels: ").append(getShowSpeakerLabels()).append(","); if (getMaxSpeakerLabels() != null) sb.append("MaxSpeakerLabels: ").append(getMaxSpeakerLabels()).append(","); if (getChannelIdentification() != null) sb.append("ChannelIdentification: ").append(getChannelIdentification()); 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 + ((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.getSettings() == null ^ this.getSettings() == null) return false; if (other.getSettings() != null && other.getSettings().equals(this.getSettings()) == false) return false; return true;
/** * Marshall the given parameter object. */ public void marshall(Settings settings, ProtocolMarshaller protocolMarshaller) { if (settings == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(settings.getVocabularyName(), VOCABULARYNAME_BINDING); protocolMarshaller.marshall(settings.getShowSpeakerLabels(), SHOWSPEAKERLABELS_BINDING); protocolMarshaller.marshall(settings.getMaxSpeakerLabels(), MAXSPEAKERLABELS_BINDING); protocolMarshaller.marshall(settings.getChannelIdentification(), CHANNELIDENTIFICATION_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 + ((getVocabularyName() == null) ? 0 : getVocabularyName().hashCode()); hashCode = prime * hashCode + ((getShowSpeakerLabels() == null) ? 0 : getShowSpeakerLabels().hashCode()); hashCode = prime * hashCode + ((getMaxSpeakerLabels() == null) ? 0 : getMaxSpeakerLabels().hashCode()); hashCode = prime * hashCode + ((getChannelIdentification() == null) ? 0 : getChannelIdentification().hashCode()); return hashCode; }
Settings other = (Settings) obj; if (other.getVocabularyName() == null ^ this.getVocabularyName() == null) return false; if (other.getVocabularyName() != null && other.getVocabularyName().equals(this.getVocabularyName()) == false) return false; if (other.getShowSpeakerLabels() == null ^ this.getShowSpeakerLabels() == null) return false; if (other.getShowSpeakerLabels() != null && other.getShowSpeakerLabels().equals(this.getShowSpeakerLabels()) == false) return false; if (other.getMaxSpeakerLabels() == null ^ this.getMaxSpeakerLabels() == null) return false; if (other.getMaxSpeakerLabels() != null && other.getMaxSpeakerLabels().equals(this.getMaxSpeakerLabels()) == false) return false; if (other.getChannelIdentification() == null ^ this.getChannelIdentification() == null) return false; if (other.getChannelIdentification() != null && other.getChannelIdentification().equals(this.getChannelIdentification()) == false) return false; return true;
/** * 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 (getVocabularyName() != null) sb.append("VocabularyName: " + getVocabularyName() + ","); if (getShowSpeakerLabels() != null) sb.append("ShowSpeakerLabels: " + getShowSpeakerLabels() + ","); if (getMaxSpeakerLabels() != null) sb.append("MaxSpeakerLabels: " + getMaxSpeakerLabels() + ","); if (getChannelIdentification() != null) sb.append("ChannelIdentification: " + getChannelIdentification()); sb.append("}"); return sb.toString(); }