func (b *EndpointApplyConfiguration) WithTargetRef(value *v1.ObjectReferenceApplyConfiguration) *EndpointApplyConfiguration {
	b.TargetRef = value
	return b
}
WithTargetRef sets the TargetRef field in the declarative configuration to the given value
and returns the receiver, so that objects can be built by chaining "With" function invocations.
If called multiple times, the TargetRef field is set to the value of the last call.
package v1beta1
import (
	v1 "k8s.io/client-go/applyconfigurations/core/v1"
)
type EndpointApplyConfiguration struct {
	Addresses  []string                              `json:"addresses,omitempty"`
	Conditions *EndpointConditionsApplyConfiguration `json:"conditions,omitempty"`
	Hostname   *string                               `json:"hostname,omitempty"`
	TargetRef  *v1.ObjectReferenceApplyConfiguration `json:"targetRef,omitempty"`
	Topology   map[string]string                     `json:"topology,omitempty"`
	NodeName   *string                               `json:"nodeName,omitempty"`
	Hints      *EndpointHintsApplyConfiguration      `json:"hints,omitempty"`
}
func Endpoint() *EndpointApplyConfiguration {
	return &EndpointApplyConfiguration{}
}
func (b *EndpointApplyConfiguration) WithAddresses(values ...string) *EndpointApplyConfiguration {
	for i := range values {
		b.Addresses = append(b.Addresses, values[i])
	}
	return b
}
func (b *EndpointApplyConfiguration) WithConditions(value *EndpointConditionsApplyConfiguration) *EndpointApplyConfiguration {
	b.Conditions = value
	return b
}
func (b *EndpointApplyConfiguration) WithHostname(value string) *EndpointApplyConfiguration {
	b.Hostname = &value
	return b
}