public AttributePayload unmarshall(JsonUnmarshallerContext context) throws Exception { AttributePayload attributePayload = new AttributePayload();
public AttributePayload unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } AttributePayload attributePayload = new AttributePayload(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("attributes")) { attributePayload.setAttributes(new MapUnmarshaller<String>(StringJsonUnmarshaller .getInstance() ) .unmarshall(context)); } else if (name.equals("merge")) { attributePayload.setMerge(BooleanJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return attributePayload; }
public AttributePayload unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } AttributePayload attributePayload = new AttributePayload(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("attributes")) { attributePayload.setAttributes(new MapUnmarshaller<String>(StringJsonUnmarshaller .getInstance() ) .unmarshall(context)); } else if (name.equals("merge")) { attributePayload.setMerge(BooleanJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return attributePayload; }
withAttributePayload(new AttributePayload().addAttributesEntry(Config._APPID, appid)));
withAttributePayload(new AttributePayload().addAttributesEntry(Config._APPID, appid)));
public AttributePayload unmarshall(JsonUnmarshallerContext context) throws Exception { AttributePayload attributePayload = new AttributePayload();