public Optional<IPBlock> ipBlock() {
        return Optional.ofNullable(this.ipBlock);
    }
@return ipBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be.
sdk/java/src/main/java/com/pulumi/kubernetes/networking/v1/outputs/NetworkPolicyPeer.java