use of com.amazonaws.util.json.AwsJsonReader in project aws-sdk-android by aws-amplify.
the class HumanLoopConfigJsonUnmarshaller method unmarshall.
public HumanLoopConfig unmarshall(JsonUnmarshallerContext context) throws Exception {
AwsJsonReader reader = context.getReader();
if (!reader.isContainer()) {
reader.skipValue();
return null;
}
HumanLoopConfig humanLoopConfig = new HumanLoopConfig();
reader.beginObject();
while (reader.hasNext()) {
String name = reader.nextName();
if (name.equals("HumanLoopName")) {
humanLoopConfig.setHumanLoopName(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("FlowDefinitionArn")) {
humanLoopConfig.setFlowDefinitionArn(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("DataAttributes")) {
humanLoopConfig.setDataAttributes(HumanLoopDataAttributesJsonUnmarshaller.getInstance().unmarshall(context));
} else {
reader.skipValue();
}
}
reader.endObject();
return humanLoopConfig;
}
use of com.amazonaws.util.json.AwsJsonReader in project aws-sdk-android by aws-amplify.
the class HumanLoopDataAttributesJsonUnmarshaller method unmarshall.
public HumanLoopDataAttributes unmarshall(JsonUnmarshallerContext context) throws Exception {
AwsJsonReader reader = context.getReader();
if (!reader.isContainer()) {
reader.skipValue();
return null;
}
HumanLoopDataAttributes humanLoopDataAttributes = new HumanLoopDataAttributes();
reader.beginObject();
while (reader.hasNext()) {
String name = reader.nextName();
if (name.equals("ContentClassifiers")) {
humanLoopDataAttributes.setContentClassifiers(new ListUnmarshaller<String>(StringJsonUnmarshaller.getInstance()).unmarshall(context));
} else {
reader.skipValue();
}
}
reader.endObject();
return humanLoopDataAttributes;
}
use of com.amazonaws.util.json.AwsJsonReader in project aws-sdk-android by aws-amplify.
the class CallAnalyticsJobSettingsJsonUnmarshaller method unmarshall.
public CallAnalyticsJobSettings unmarshall(JsonUnmarshallerContext context) throws Exception {
AwsJsonReader reader = context.getReader();
if (!reader.isContainer()) {
reader.skipValue();
return null;
}
CallAnalyticsJobSettings callAnalyticsJobSettings = new CallAnalyticsJobSettings();
reader.beginObject();
while (reader.hasNext()) {
String name = reader.nextName();
if (name.equals("VocabularyName")) {
callAnalyticsJobSettings.setVocabularyName(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("VocabularyFilterName")) {
callAnalyticsJobSettings.setVocabularyFilterName(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("VocabularyFilterMethod")) {
callAnalyticsJobSettings.setVocabularyFilterMethod(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("LanguageModelName")) {
callAnalyticsJobSettings.setLanguageModelName(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("ContentRedaction")) {
callAnalyticsJobSettings.setContentRedaction(ContentRedactionJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("LanguageOptions")) {
callAnalyticsJobSettings.setLanguageOptions(new ListUnmarshaller<String>(StringJsonUnmarshaller.getInstance()).unmarshall(context));
} else if (name.equals("LanguageIdSettings")) {
callAnalyticsJobSettings.setLanguageIdSettings(new MapUnmarshaller<LanguageIdSettings>(LanguageIdSettingsJsonUnmarshaller.getInstance()).unmarshall(context));
} else {
reader.skipValue();
}
}
reader.endObject();
return callAnalyticsJobSettings;
}
use of com.amazonaws.util.json.AwsJsonReader in project aws-sdk-android by aws-amplify.
the class CategoryPropertiesJsonUnmarshaller method unmarshall.
public CategoryProperties unmarshall(JsonUnmarshallerContext context) throws Exception {
AwsJsonReader reader = context.getReader();
if (!reader.isContainer()) {
reader.skipValue();
return null;
}
CategoryProperties categoryProperties = new CategoryProperties();
reader.beginObject();
while (reader.hasNext()) {
String name = reader.nextName();
if (name.equals("CategoryName")) {
categoryProperties.setCategoryName(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("Rules")) {
categoryProperties.setRules(new ListUnmarshaller<Rule>(RuleJsonUnmarshaller.getInstance()).unmarshall(context));
} else if (name.equals("CreateTime")) {
categoryProperties.setCreateTime(DateJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("LastUpdateTime")) {
categoryProperties.setLastUpdateTime(DateJsonUnmarshaller.getInstance().unmarshall(context));
} else {
reader.skipValue();
}
}
reader.endObject();
return categoryProperties;
}
use of com.amazonaws.util.json.AwsJsonReader in project aws-sdk-android by aws-amplify.
the class ChannelDefinitionJsonUnmarshaller method unmarshall.
public ChannelDefinition unmarshall(JsonUnmarshallerContext context) throws Exception {
AwsJsonReader reader = context.getReader();
if (!reader.isContainer()) {
reader.skipValue();
return null;
}
ChannelDefinition channelDefinition = new ChannelDefinition();
reader.beginObject();
while (reader.hasNext()) {
String name = reader.nextName();
if (name.equals("ChannelId")) {
channelDefinition.setChannelId(IntegerJsonUnmarshaller.getInstance().unmarshall(context));
} else if (name.equals("ParticipantRole")) {
channelDefinition.setParticipantRole(StringJsonUnmarshaller.getInstance().unmarshall(context));
} else {
reader.skipValue();
}
}
reader.endObject();
return channelDefinition;
}
Aggregations