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

package v1

// HubSourceApplyConfiguration represents a declarative configuration of the HubSource type for use
// with apply.
//
// HubSource is used to specify the hub source and its configuration
type HubSourceApplyConfiguration struct {
	// name is the name of one of the default hub sources
	Name *string `json:"name,omitempty"`
	// disabled is used to disable a default hub source on cluster
	Disabled *bool `json:"disabled,omitempty"`
}

// HubSourceApplyConfiguration constructs a 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
}
