use of com.amazonaws.util.json.AwsJsonReader in project aws-sdk-android by aws-amplify.
the class InputDataConfigJsonUnmarshaller method unmarshall.
public InputDataConfig unmarshall(JsonUnmarshallerContext context) throws Exception {
AwsJsonReader reader = context.getReader();
if (!reader.isContainer()) {
reader.skipValue();
return null;
}
InputDataConfig inputDataConfig = new InputDataConfig();
reader.beginObject();
while (reader.hasNext()) {
String name = reader.nextName();
if (name.equals("S3Uri")) {
inputDataConfig.setS3Uri(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("ContentType")) {
inputDataConfig.setContentType(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else {
reader.skipValue();
}
}
reader.endObject();
return inputDataConfig;
}
use of com.amazonaws.util.json.AwsJsonReader in project aws-sdk-android by aws-amplify.
the class DeleteParallelDataResultJsonUnmarshaller method unmarshall.
public DeleteParallelDataResult unmarshall(JsonUnmarshallerContext context) throws Exception {
DeleteParallelDataResult deleteParallelDataResult = new DeleteParallelDataResult();
AwsJsonReader reader = context.getReader();
reader.beginObject();
while (reader.hasNext()) {
String name = reader.nextName();
if (name.equals("Name")) {
deleteParallelDataResult.setName(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("Status")) {
deleteParallelDataResult.setStatus(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else {
reader.skipValue();
}
}
reader.endObject();
return deleteParallelDataResult;
}
use of com.amazonaws.util.json.AwsJsonReader in project aws-sdk-android by aws-amplify.
the class DescribeTextTranslationJobResultJsonUnmarshaller method unmarshall.
public DescribeTextTranslationJobResult unmarshall(JsonUnmarshallerContext context) throws Exception {
DescribeTextTranslationJobResult describeTextTranslationJobResult = new DescribeTextTranslationJobResult();
AwsJsonReader reader = context.getReader();
reader.beginObject();
while (reader.hasNext()) {
String name = reader.nextName();
if (name.equals("TextTranslationJobProperties")) {
describeTextTranslationJobResult.setTextTranslationJobProperties(TextTranslationJobPropertiesJsonUnmarshaller.getInstance().unmarshall(context));
} else {
reader.skipValue();
}
}
reader.endObject();
return describeTextTranslationJobResult;
}
use of com.amazonaws.util.json.AwsJsonReader in project aws-sdk-android by aws-amplify.
the class GetParallelDataResultJsonUnmarshaller method unmarshall.
public GetParallelDataResult unmarshall(JsonUnmarshallerContext context) throws Exception {
GetParallelDataResult getParallelDataResult = new GetParallelDataResult();
AwsJsonReader reader = context.getReader();
reader.beginObject();
while (reader.hasNext()) {
String name = reader.nextName();
if (name.equals("ParallelDataProperties")) {
getParallelDataResult.setParallelDataProperties(ParallelDataPropertiesJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("DataLocation")) {
getParallelDataResult.setDataLocation(ParallelDataDataLocationJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("AuxiliaryDataLocation")) {
getParallelDataResult.setAuxiliaryDataLocation(ParallelDataDataLocationJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("LatestUpdateAttemptAuxiliaryDataLocation")) {
getParallelDataResult.setLatestUpdateAttemptAuxiliaryDataLocation(ParallelDataDataLocationJsonUnmarshaller.getInstance().unmarshall(context));
} else {
reader.skipValue();
}
}
reader.endObject();
return getParallelDataResult;
}
use of com.amazonaws.util.json.AwsJsonReader in project aws-sdk-android by aws-amplify.
the class UpdateVocabularyResultJsonUnmarshaller method unmarshall.
public UpdateVocabularyResult unmarshall(JsonUnmarshallerContext context) throws Exception {
UpdateVocabularyResult updateVocabularyResult = new UpdateVocabularyResult();
AwsJsonReader reader = context.getReader();
reader.beginObject();
while (reader.hasNext()) {
String name = reader.nextName();
if (name.equals("VocabularyName")) {
updateVocabularyResult.setVocabularyName(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("LanguageCode")) {
updateVocabularyResult.setLanguageCode(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("LastModifiedTime")) {
updateVocabularyResult.setLastModifiedTime(DateJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("VocabularyState")) {
updateVocabularyResult.setVocabularyState(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else {
reader.skipValue();
}
}
reader.endObject();
return updateVocabularyResult;
}
Aggregations