public Builder targetRef(@Nullable Output<ObjectReferenceArgs> targetRef) {
            $.targetRef = targetRef;
            return this;
        }
@param targetRef targetRef is a reference to a Kubernetes object that represents this endpoint.

@return builder
sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1/inputs/EndpointArgs.java