use of com.amazonaws.util.json.AwsJsonReader in project aws-sdk-android by aws-amplify.
the class ParallelDataDataLocationJsonUnmarshaller method unmarshall.
public ParallelDataDataLocation unmarshall(JsonUnmarshallerContext context) throws Exception {
AwsJsonReader reader = context.getReader();
if (!reader.isContainer()) {
reader.skipValue();
return null;
}
ParallelDataDataLocation parallelDataDataLocation = new ParallelDataDataLocation();
reader.beginObject();
while (reader.hasNext()) {
String name = reader.nextName();
if (name.equals("RepositoryType")) {
parallelDataDataLocation.setRepositoryType(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("Location")) {
parallelDataDataLocation.setLocation(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else {
reader.skipValue();
}
}
reader.endObject();
return parallelDataDataLocation;
}
use of com.amazonaws.util.json.AwsJsonReader in project aws-sdk-android by aws-amplify.
the class StartTextTranslationJobResultJsonUnmarshaller method unmarshall.
public StartTextTranslationJobResult unmarshall(JsonUnmarshallerContext context) throws Exception {
StartTextTranslationJobResult startTextTranslationJobResult = new StartTextTranslationJobResult();
AwsJsonReader reader = context.getReader();
reader.beginObject();
while (reader.hasNext()) {
String name = reader.nextName();
if (name.equals("JobId")) {
startTextTranslationJobResult.setJobId(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("JobStatus")) {
startTextTranslationJobResult.setJobStatus(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else {
reader.skipValue();
}
}
reader.endObject();
return startTextTranslationJobResult;
}
use of com.amazonaws.util.json.AwsJsonReader in project aws-sdk-android by aws-amplify.
the class ListParallelDataResultJsonUnmarshaller method unmarshall.
public ListParallelDataResult unmarshall(JsonUnmarshallerContext context) throws Exception {
ListParallelDataResult listParallelDataResult = new ListParallelDataResult();
AwsJsonReader reader = context.getReader();
reader.beginObject();
while (reader.hasNext()) {
String name = reader.nextName();
if (name.equals("ParallelDataPropertiesList")) {
listParallelDataResult.setParallelDataPropertiesList(new ListUnmarshaller<ParallelDataProperties>(ParallelDataPropertiesJsonUnmarshaller.getInstance()).unmarshall(context));
} else if (name.equals("NextToken")) {
listParallelDataResult.setNextToken(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else {
reader.skipValue();
}
}
reader.endObject();
return listParallelDataResult;
}
use of com.amazonaws.util.json.AwsJsonReader in project aws-sdk-android by aws-amplify.
the class CreateParallelDataResultJsonUnmarshaller method unmarshall.
public CreateParallelDataResult unmarshall(JsonUnmarshallerContext context) throws Exception {
CreateParallelDataResult createParallelDataResult = new CreateParallelDataResult();
AwsJsonReader reader = context.getReader();
reader.beginObject();
while (reader.hasNext()) {
String name = reader.nextName();
if (name.equals("Name")) {
createParallelDataResult.setName(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("Status")) {
createParallelDataResult.setStatus(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else {
reader.skipValue();
}
}
reader.endObject();
return createParallelDataResult;
}
use of com.amazonaws.util.json.AwsJsonReader in project aws-sdk-android by aws-amplify.
the class TranscriptFilterJsonUnmarshaller method unmarshall.
public TranscriptFilter unmarshall(JsonUnmarshallerContext context) throws Exception {
AwsJsonReader reader = context.getReader();
if (!reader.isContainer()) {
reader.skipValue();
return null;
}
TranscriptFilter transcriptFilter = new TranscriptFilter();
reader.beginObject();
while (reader.hasNext()) {
String name = reader.nextName();
if (name.equals("TranscriptFilterType")) {
transcriptFilter.setTranscriptFilterType(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("AbsoluteTimeRange")) {
transcriptFilter.setAbsoluteTimeRange(AbsoluteTimeRangeJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("RelativeTimeRange")) {
transcriptFilter.setRelativeTimeRange(RelativeTimeRangeJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("ParticipantRole")) {
transcriptFilter.setParticipantRole(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("Negate")) {
transcriptFilter.setNegate(BooleanJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("Targets")) {
transcriptFilter.setTargets(new ListUnmarshaller<String>(StringJsonUnmarshaller.getInstance()).unmarshall(context));
} else {
reader.skipValue();
}
}
reader.endObject();
return transcriptFilter;
}
Aggregations