public Optional<Output<Integer>> port() {
        return Optional.ofNullable(this.port);
    }
@return port represents the port number of the endpoint. If the EndpointSlice is derived from a Kubernetes service, this must be set to the service&#39;s target port. EndpointSlices used for other purposes may have a nil port.
sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/inputs/EndpointPortPatchArgs.java