func (b *EndpointApplyConfiguration) WithHostname(value string) *EndpointApplyConfiguration {
	b.Hostname = &value
	return b
}
WithHostname sets the Hostname 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 Hostname 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
}