@rules.setter<EOL><INDENT>def rules(self, rules):<DEDENT>
self._rules = rules<EOL>
Sets the rules of this NetworkingV1beta1IngressSpec.
A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend.

:param rules: The rules of this NetworkingV1beta1IngressSpec.
:type: list[NetworkingV1beta1IngressRule]