@ports.setter<EOL><INDENT>def ports(self, ports):<DEDENT>
self._ports = ports<EOL>
Sets the ports of this V1NetworkPolicyEgressRule.
List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.

:param ports: The ports of this V1NetworkPolicyEgressRule.
:type: list[V1NetworkPolicyPort]