/** * <p> * The template body. * </p> * * @param templateBody * The template body. * @return Returns a reference to this object so that method calls can be chained together. */ public RegistrationConfig withTemplateBody(String templateBody) { setTemplateBody(templateBody); return this; }
if (context.testExpression("templateBody", targetDepth)) { context.nextToken(); registrationConfig.setTemplateBody(context.getUnmarshaller(String.class).unmarshall(context));
/** * <p> * The template body. * </p> * * @param templateBody * The template body. * @return Returns a reference to this object so that method calls can be chained together. */ public RegistrationConfig withTemplateBody(String templateBody) { setTemplateBody(templateBody); return this; }
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; }
if (context.testExpression("templateBody", targetDepth)) { context.nextToken(); registrationConfig.setTemplateBody(context.getUnmarshaller(String.class).unmarshall(context));