public Optional<Output<List<ServicePortPatchArgs>>> ports() {
        return Optional.ofNullable(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/inputs/ServiceSpecPatchArgs.java