func (b *EndpointApplyConfiguration) WithNodeName(value string) *EndpointApplyConfiguration {
	b.NodeName = &value
	return b
}
WithNodeName sets the NodeName 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 NodeName field is set to the value of the last call.
package v1
import (
	corev1 "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          *corev1.ObjectReferenceApplyConfiguration `json:"targetRef,omitempty"`
	DeprecatedTopology map[string]string                         `json:"deprecatedTopology,omitempty"`
	NodeName           *string                                   `json:"nodeName,omitempty"`
	Zone               *string                                   `json:"zone,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
}
func (b *EndpointApplyConfiguration) WithTargetRef(value *corev1.ObjectReferenceApplyConfiguration) *EndpointApplyConfiguration {
	b.TargetRef = value
	return b
}
func (b *EndpointApplyConfiguration) WithDeprecatedTopology(entries map[string]string) *EndpointApplyConfiguration {
	if b.DeprecatedTopology == nil && len(entries) > 0 {
		b.DeprecatedTopology = make(map[string]string, len(entries))
	}
	for k, v := range entries {
		b.DeprecatedTopology[k] = v
	}
	return b
}