/** * <p> * The processing state of the vocabulary. When the <code>VocabularyState</code> field contains <code>READY</code> * the vocabulary is ready to be used in a <code>StartTranscriptionJob</code> request. * </p> * * @param vocabularyState * The processing state of the vocabulary. When the <code>VocabularyState</code> field contains * <code>READY</code> the vocabulary is ready to be used in a <code>StartTranscriptionJob</code> request. * @return Returns a reference to this object so that method calls can be chained together. * @see VocabularyState */ public CreateVocabularyResult withVocabularyState(String vocabularyState) { setVocabularyState(vocabularyState); return this; }
createVocabularyResult.setVocabularyState(context.getUnmarshaller(String.class).unmarshall(context));
public CreateVocabularyResult unmarshall(JsonUnmarshallerContext context) throws Exception { CreateVocabularyResult createVocabularyResult = new CreateVocabularyResult(); AwsJsonReader reader = context.getReader(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("VocabularyName")) { createVocabularyResult.setVocabularyName(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("LanguageCode")) { createVocabularyResult.setLanguageCode(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("VocabularyState")) { createVocabularyResult.setVocabularyState(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("LastModifiedTime")) { createVocabularyResult.setLastModifiedTime(DateJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("FailureReason")) { createVocabularyResult.setFailureReason(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return createVocabularyResult; }