/** * <p> * Information that implicitly denies the authorization. When a policy doesn't explicitly deny or allow an action on * a resource it is considered an implicit deny. * </p> * * @param implicitDeny * Information that implicitly denies the authorization. When a policy doesn't explicitly deny or allow an * action on a resource it is considered an implicit deny. * @return Returns a reference to this object so that method calls can be chained together. */ public Denied withImplicitDeny(ImplicitDeny implicitDeny) { setImplicitDeny(implicitDeny); return this; }
if (context.testExpression("implicitDeny", targetDepth)) { context.nextToken(); denied.setImplicitDeny(ImplicitDenyJsonUnmarshaller.getInstance().unmarshall(context));
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; }
/** * <p> * Information that implicitly denies the authorization. When a policy doesn't explicitly deny or allow an action on * a resource it is considered an implicit deny. * </p> * * @param implicitDeny * Information that implicitly denies the authorization. When a policy doesn't explicitly deny or allow an * action on a resource it is considered an implicit deny. * @return Returns a reference to this object so that method calls can be chained together. */ public Denied withImplicitDeny(ImplicitDeny implicitDeny) { setImplicitDeny(implicitDeny); 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; }
if (context.testExpression("implicitDeny", targetDepth)) { context.nextToken(); denied.setImplicitDeny(ImplicitDenyJsonUnmarshaller.getInstance().unmarshall(context));