// Code generated by applyconfiguration-gen. DO NOT EDIT.

package v1

// NutanixPrismElementEndpointApplyConfiguration represents a declarative configuration of the NutanixPrismElementEndpoint type for use
// with apply.
type NutanixPrismElementEndpointApplyConfiguration struct {
	Name     *string                                 `json:"name,omitempty"`
	Endpoint *NutanixPrismEndpointApplyConfiguration `json:"endpoint,omitempty"`
}

// NutanixPrismElementEndpointApplyConfiguration constructs a declarative configuration of the NutanixPrismElementEndpoint type for use with
// apply.
func NutanixPrismElementEndpoint() *NutanixPrismElementEndpointApplyConfiguration {
	return &NutanixPrismElementEndpointApplyConfiguration{}
}

// WithName sets the Name 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 Name field is set to the value of the last call.
func (b *NutanixPrismElementEndpointApplyConfiguration) WithName(value string) *NutanixPrismElementEndpointApplyConfiguration {
	b.Name = &value
	return b
}

// WithEndpoint sets the Endpoint 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 Endpoint field is set to the value of the last call.
func (b *NutanixPrismElementEndpointApplyConfiguration) WithEndpoint(value *NutanixPrismEndpointApplyConfiguration) *NutanixPrismElementEndpointApplyConfiguration {
	b.Endpoint = value
	return b
}
