use of com.amazonaws.util.json.AwsJsonReader in project aws-sdk-android by aws-amplify.
the class CreateCallAnalyticsCategoryResultJsonUnmarshaller method unmarshall.
public CreateCallAnalyticsCategoryResult unmarshall(JsonUnmarshallerContext context) throws Exception {
CreateCallAnalyticsCategoryResult createCallAnalyticsCategoryResult = new CreateCallAnalyticsCategoryResult();
AwsJsonReader reader = context.getReader();
reader.beginObject();
while (reader.hasNext()) {
String name = reader.nextName();
if (name.equals("CategoryProperties")) {
createCallAnalyticsCategoryResult.setCategoryProperties(CategoryPropertiesJsonUnmarshaller.getInstance().unmarshall(context));
} else {
reader.skipValue();
}
}
reader.endObject();
return createCallAnalyticsCategoryResult;
}
use of com.amazonaws.util.json.AwsJsonReader in project aws-sdk-android by aws-amplify.
the class CreateLanguageModelResultJsonUnmarshaller method unmarshall.
public CreateLanguageModelResult unmarshall(JsonUnmarshallerContext context) throws Exception {
CreateLanguageModelResult createLanguageModelResult = new CreateLanguageModelResult();
AwsJsonReader reader = context.getReader();
reader.beginObject();
while (reader.hasNext()) {
String name = reader.nextName();
if (name.equals("LanguageCode")) {
createLanguageModelResult.setLanguageCode(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("BaseModelName")) {
createLanguageModelResult.setBaseModelName(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("ModelName")) {
createLanguageModelResult.setModelName(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("InputDataConfig")) {
createLanguageModelResult.setInputDataConfig(InputDataConfigJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("ModelStatus")) {
createLanguageModelResult.setModelStatus(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else {
reader.skipValue();
}
}
reader.endObject();
return createLanguageModelResult;
}
use of com.amazonaws.util.json.AwsJsonReader in project aws-sdk-android by aws-amplify.
the class CreateVocabularyFilterResultJsonUnmarshaller method unmarshall.
public CreateVocabularyFilterResult unmarshall(JsonUnmarshallerContext context) throws Exception {
CreateVocabularyFilterResult createVocabularyFilterResult = new CreateVocabularyFilterResult();
AwsJsonReader reader = context.getReader();
reader.beginObject();
while (reader.hasNext()) {
String name = reader.nextName();
if (name.equals("VocabularyFilterName")) {
createVocabularyFilterResult.setVocabularyFilterName(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("LanguageCode")) {
createVocabularyFilterResult.setLanguageCode(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("LastModifiedTime")) {
createVocabularyFilterResult.setLastModifiedTime(DateJsonUnmarshaller.getInstance().unmarshall(context));
} else {
reader.skipValue();
}
}
reader.endObject();
return createVocabularyFilterResult;
}
use of com.amazonaws.util.json.AwsJsonReader in project aws-sdk-android by aws-amplify.
the class RelationshipJsonUnmarshaller method unmarshall.
public Relationship unmarshall(JsonUnmarshallerContext context) throws Exception {
AwsJsonReader reader = context.getReader();
if (!reader.isContainer()) {
reader.skipValue();
return null;
}
Relationship relationship = new Relationship();
reader.beginObject();
while (reader.hasNext()) {
String name = reader.nextName();
if (name.equals("Type")) {
relationship.setType(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("Ids")) {
relationship.setIds(new ListUnmarshaller<String>(StringJsonUnmarshaller.getInstance()).unmarshall(context));
} else {
reader.skipValue();
}
}
reader.endObject();
return relationship;
}
use of com.amazonaws.util.json.AwsJsonReader in project aws-sdk-android by aws-amplify.
the class S3ObjectJsonUnmarshaller method unmarshall.
public S3Object unmarshall(JsonUnmarshallerContext context) throws Exception {
AwsJsonReader reader = context.getReader();
if (!reader.isContainer()) {
reader.skipValue();
return null;
}
S3Object s3Object = new S3Object();
reader.beginObject();
while (reader.hasNext()) {
String name = reader.nextName();
if (name.equals("Bucket")) {
s3Object.setBucket(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("Name")) {
s3Object.setName(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("Version")) {
s3Object.setVersion(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else {
reader.skipValue();
}
}
reader.endObject();
return s3Object;
}
Aggregations