public List<ServicePort> ports() {
        return this.ports == null ? List.of() : this.ports;
    }
@return The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ServiceSpec.java