public Optional<Output<List<IngressRuleArgs>>> rules() {
        return Optional.ofNullable(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/inputs/IngressSpecArgs.java