public Optional<Output<ObjectReferenceArgs>> targetRef() {
        return Optional.ofNullable(this.targetRef);
    }
@return targetRef is a reference to a Kubernetes object that represents this endpoint.
sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/inputs/EndpointArgs.java