public RegistrationConfig unmarshall(JsonUnmarshallerContext context) throws Exception { RegistrationConfig registrationConfig = new RegistrationConfig();
public RegistrationConfig unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } RegistrationConfig registrationConfig = new RegistrationConfig(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("templateBody")) { registrationConfig.setTemplateBody(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("roleArn")) { registrationConfig.setRoleArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return registrationConfig; }
public RegistrationConfig unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } RegistrationConfig registrationConfig = new RegistrationConfig(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("templateBody")) { registrationConfig.setTemplateBody(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("roleArn")) { registrationConfig.setRoleArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return registrationConfig; }
public RegistrationConfig unmarshall(JsonUnmarshallerContext context) throws Exception { RegistrationConfig registrationConfig = new RegistrationConfig();