.withResources(new Resource("resource")) .withConditions( new IpAddressCondition("192.168.143.0/24")), new Statement(Effect.Deny) .withId("1") .withActions(new TestAction("action2")) .withResources(new Resource("resource")) .withConditions(new IpAddressCondition("10.1.2.0/24")), new Statement(Effect.Allow) .withId("2") .withActions(new TestAction("action3")) .withResources(new Resource("resource")) .withConditions(new IpAddressCondition(IpAddressComparisonType.NotIpAddress, "192.168.143.188/32")));