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

package v1

// VSphereFailureDomainHostGroupApplyConfiguration represents a declarative configuration of the VSphereFailureDomainHostGroup type for use
// with apply.
type VSphereFailureDomainHostGroupApplyConfiguration struct {
	VMGroup    *string `json:"vmGroup,omitempty"`
	HostGroup  *string `json:"hostGroup,omitempty"`
	VMHostRule *string `json:"vmHostRule,omitempty"`
}

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

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

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

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