public Denied unmarshall(JsonUnmarshallerContext context) throws Exception { Denied denied = new Denied();
public Denied unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } Denied denied = new Denied(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("implicitDeny")) { denied.setImplicitDeny(ImplicitDenyJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("explicitDeny")) { denied.setExplicitDeny(ExplicitDenyJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return denied; }
public Denied unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } Denied denied = new Denied(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("implicitDeny")) { denied.setImplicitDeny(ImplicitDenyJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("explicitDeny")) { denied.setExplicitDeny(ExplicitDenyJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return denied; }
public Denied unmarshall(JsonUnmarshallerContext context) throws Exception { Denied denied = new Denied();