public Optional<Output<List<EndpointPortArgs>>> ports() {
        return Optional.ofNullable(this.ports);
    }
@return Port numbers available on the related IP addresses.
sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/EndpointSubsetArgs.java