@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTranscriptFileUri() == null) ? 0 : getTranscriptFileUri().hashCode()); return hashCode; }
/** * <p> * The location where the transcription is stored. * </p> * <p> * Use this URI to access the transcription. If you specified an S3 bucket in the <code>OutputBucketName</code> * field when you created the job, this is the URI of that bucket. If you chose to store the transcription in Amazon * Transcribe, this is a shareable URL that provides secure access to that location. * </p> * * @param transcriptFileUri * The location where the transcription is stored.</p> * <p> * Use this URI to access the transcription. If you specified an S3 bucket in the * <code>OutputBucketName</code> field when you created the job, this is the URI of that bucket. If you chose * to store the transcription in Amazon Transcribe, this is a shareable URL that provides secure access to * that location. * @return Returns a reference to this object so that method calls can be chained together. */ public Transcript withTranscriptFileUri(String transcriptFileUri) { setTranscriptFileUri(transcriptFileUri); return this; }
public Transcript unmarshall(JsonUnmarshallerContext context) throws Exception { Transcript transcript = new Transcript(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) { return null; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("TranscriptFileUri", targetDepth)) { context.nextToken(); transcript.setTranscriptFileUri(context.getUnmarshaller(String.class).unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return transcript; }
@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.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)
public Transcript unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } Transcript transcript = new Transcript(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("TranscriptFileUri")) { transcript.setTranscriptFileUri(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return transcript; }
@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; }
return false; if (other.getTranscript() != null && other.getTranscript().equals(this.getTranscript()) == false) return false; if (other.getCreationTime() == null ^ this.getCreationTime() == null)
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Transcript == false) return false; Transcript other = (Transcript) obj; if (other.getTranscriptFileUri() == null ^ this.getTranscriptFileUri() == null) return false; if (other.getTranscriptFileUri() != null && other.getTranscriptFileUri().equals(this.getTranscriptFileUri()) == 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 (getTranscriptFileUri() != null) sb.append("TranscriptFileUri: ").append(getTranscriptFileUri()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(Transcript transcript, ProtocolMarshaller protocolMarshaller) { if (transcript == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(transcript.getTranscriptFileUri(), TRANSCRIPTFILEURI_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 + ((getTranscriptFileUri() == null) ? 0 : getTranscriptFileUri().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Transcript == false) return false; Transcript other = (Transcript) obj; if (other.getTranscriptFileUri() == null ^ this.getTranscriptFileUri() == null) return false; if (other.getTranscriptFileUri() != null && other.getTranscriptFileUri().equals(this.getTranscriptFileUri()) == 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 (getTranscriptFileUri() != null) sb.append("TranscriptFileUri: " + getTranscriptFileUri()); sb.append("}"); return sb.toString(); }
public void marshall(Transcript transcript, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (transcript.getTranscriptFileUri() != null) { String transcriptFileUri = transcript.getTranscriptFileUri(); jsonWriter.name("TranscriptFileUri"); jsonWriter.value(transcriptFileUri); } jsonWriter.endObject(); }