public List<IngressRulePatch> rules() {
        return this.rules == null ? List.of() : this.rules;
    }
@return A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend.
sdk/java/src/main/java/com/pulumi/kubernetes/extensions/v1beta1/outputs/IngressSpecPatch.java