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

package v1

// HubSourceApplyConfiguration represents an declarative configuration of the HubSource type for use
// with apply.
type HubSourceApplyConfiguration struct {
	Name     *string `json:"name,omitempty"`
	Disabled *bool   `json:"disabled,omitempty"`
}

// HubSourceApplyConfiguration constructs an declarative configuration of the HubSource type for use with
// apply.
func HubSource() *HubSourceApplyConfiguration {
	return &HubSourceApplyConfiguration{}
}

// 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 *HubSourceApplyConfiguration) WithName(value string) *HubSourceApplyConfiguration {
	b.Name = &value
	return b
}

// WithDisabled sets the Disabled 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 Disabled field is set to the value of the last call.
func (b *HubSourceApplyConfiguration) WithDisabled(value bool) *HubSourceApplyConfiguration {
	b.Disabled = &value
	return b
}
