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

package v1

// CustomApplyConfiguration represents a declarative configuration of the Custom type for use
// with apply.
type CustomApplyConfiguration struct {
	Configs []GathererConfigApplyConfiguration `json:"configs,omitempty"`
}

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

// WithConfigs adds the given value to the Configs 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 Configs field.
func (b *CustomApplyConfiguration) WithConfigs(values ...*GathererConfigApplyConfiguration) *CustomApplyConfiguration {
	for i := range values {
		if values[i] == nil {
			panic("nil value passed to WithConfigs")
		}
		b.Configs = append(b.Configs, *values[i])
	}
	return b
}
