public Optional<Integer> port() {
        return Optional.ofNullable(this.port);
    }
@return The port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer.
sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/outputs/EndpointPort.java