/** * <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; }
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; }