use of com.amazonaws.util.json.AwsJsonReader in project aws-sdk-android by aws-amplify.
the class UpdateParallelDataResultJsonUnmarshaller method unmarshall.
public UpdateParallelDataResult unmarshall(JsonUnmarshallerContext context) throws Exception {
UpdateParallelDataResult updateParallelDataResult = new UpdateParallelDataResult();
AwsJsonReader reader = context.getReader();
reader.beginObject();
while (reader.hasNext()) {
String name = reader.nextName();
if (name.equals("Name")) {
updateParallelDataResult.setName(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("Status")) {
updateParallelDataResult.setStatus(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("LatestUpdateAttemptStatus")) {
updateParallelDataResult.setLatestUpdateAttemptStatus(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("LatestUpdateAttemptAt")) {
updateParallelDataResult.setLatestUpdateAttemptAt(DateJsonUnmarshaller.getInstance().unmarshall(context));
} else {
reader.skipValue();
}
}
reader.endObject();
return updateParallelDataResult;
}
use of com.amazonaws.util.json.AwsJsonReader in project aws-sdk-android by aws-amplify.
the class StartMedicalTranscriptionJobResultJsonUnmarshaller method unmarshall.
public StartMedicalTranscriptionJobResult unmarshall(JsonUnmarshallerContext context) throws Exception {
StartMedicalTranscriptionJobResult startMedicalTranscriptionJobResult = new StartMedicalTranscriptionJobResult();
AwsJsonReader reader = context.getReader();
reader.beginObject();
while (reader.hasNext()) {
String name = reader.nextName();
if (name.equals("MedicalTranscriptionJob")) {
startMedicalTranscriptionJobResult.setMedicalTranscriptionJob(MedicalTranscriptionJobJsonUnmarshaller.getInstance().unmarshall(context));
} else {
reader.skipValue();
}
}
reader.endObject();
return startMedicalTranscriptionJobResult;
}
use of com.amazonaws.util.json.AwsJsonReader in project aws-sdk-android by aws-amplify.
the class StartTranscriptionJobResultJsonUnmarshaller method unmarshall.
public StartTranscriptionJobResult unmarshall(JsonUnmarshallerContext context) throws Exception {
StartTranscriptionJobResult startTranscriptionJobResult = new StartTranscriptionJobResult();
AwsJsonReader reader = context.getReader();
reader.beginObject();
while (reader.hasNext()) {
String name = reader.nextName();
if (name.equals("TranscriptionJob")) {
startTranscriptionJobResult.setTranscriptionJob(TranscriptionJobJsonUnmarshaller.getInstance().unmarshall(context));
} else {
reader.skipValue();
}
}
reader.endObject();
return startTranscriptionJobResult;
}
use of com.amazonaws.util.json.AwsJsonReader in project aws-sdk-android by aws-amplify.
the class SubtitlesJsonUnmarshaller method unmarshall.
public Subtitles unmarshall(JsonUnmarshallerContext context) throws Exception {
AwsJsonReader reader = context.getReader();
if (!reader.isContainer()) {
reader.skipValue();
return null;
}
Subtitles subtitles = new Subtitles();
reader.beginObject();
while (reader.hasNext()) {
String name = reader.nextName();
if (name.equals("Formats")) {
subtitles.setFormats(new ListUnmarshaller<String>(StringJsonUnmarshaller.getInstance()).unmarshall(context));
} else if (name.equals("OutputStartIndex")) {
subtitles.setOutputStartIndex(IntegerJsonUnmarshaller.getInstance().unmarshall(context));
} else {
reader.skipValue();
}
}
reader.endObject();
return subtitles;
}
use of com.amazonaws.util.json.AwsJsonReader in project aws-sdk-android by aws-amplify.
the class SubtitlesOutputJsonUnmarshaller method unmarshall.
public SubtitlesOutput unmarshall(JsonUnmarshallerContext context) throws Exception {
AwsJsonReader reader = context.getReader();
if (!reader.isContainer()) {
reader.skipValue();
return null;
}
SubtitlesOutput subtitlesOutput = new SubtitlesOutput();
reader.beginObject();
while (reader.hasNext()) {
String name = reader.nextName();
if (name.equals("Formats")) {
subtitlesOutput.setFormats(new ListUnmarshaller<String>(StringJsonUnmarshaller.getInstance()).unmarshall(context));
} else if (name.equals("SubtitleFileUris")) {
subtitlesOutput.setSubtitleFileUris(new ListUnmarshaller<String>(StringJsonUnmarshaller.getInstance()).unmarshall(context));
} else if (name.equals("OutputStartIndex")) {
subtitlesOutput.setOutputStartIndex(IntegerJsonUnmarshaller.getInstance().unmarshall(context));
} else {
reader.skipValue();
}
}
reader.endObject();
return subtitlesOutput;
}
Aggregations