public Optional<ObjectReferencePatch> targetRef() {
        return Optional.ofNullable(this.targetRef);
    }
@return Reference to object providing the endpoint.
sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/EndpointAddressPatch.java