/** * <p> * Information that explicitly denies the authorization. * </p> * * @param explicitDeny * Information that explicitly denies the authorization. * @return Returns a reference to this object so that method calls can be chained together. */ public Denied withExplicitDeny(ExplicitDeny explicitDeny) { setExplicitDeny(explicitDeny); return this; }
denied.setExplicitDeny(ExplicitDenyJsonUnmarshaller.getInstance().unmarshall(context));
/** * <p> * Information that explicitly denies the authorization. * </p> * * @param explicitDeny * Information that explicitly denies the authorization. * @return Returns a reference to this object so that method calls can be chained together. */ public Denied withExplicitDeny(ExplicitDeny explicitDeny) { setExplicitDeny(explicitDeny); return this; }
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; }
denied.setExplicitDeny(ExplicitDenyJsonUnmarshaller.getInstance().unmarshall(context));