public Builder ports(@Nullable Output<List<ServicePortArgs>> ports) {
            $.ports = ports;
            return this;
        }
@param ports 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

@return builder
sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/ServiceSpecArgs.java