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

package v1

// OperatorHubStatusApplyConfiguration represents a declarative configuration of the OperatorHubStatus type for use
// with apply.
//
// OperatorHubStatus defines the observed state of OperatorHub. The current
// state of the default hub sources will always be reflected here.
type OperatorHubStatusApplyConfiguration struct {
	// sources encapsulates the result of applying the configuration for each
	// hub source
	Sources []HubSourceStatusApplyConfiguration `json:"sources,omitempty"`
}

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

// WithSources adds the given value to the Sources field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the Sources field.
func (b *OperatorHubStatusApplyConfiguration) WithSources(values ...*HubSourceStatusApplyConfiguration) *OperatorHubStatusApplyConfiguration {
	for i := range values {
		if values[i] == nil {
			panic("nil value passed to WithSources")
		}
		b.Sources = append(b.Sources, *values[i])
	}
	return b
}
