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

package v1alpha2

// CustomApplyConfiguration represents a declarative configuration of the Custom type for use
// with apply.
//
// custom provides the custom configuration of gatherers
type CustomApplyConfiguration struct {
	// configs is a required list of gatherers configurations that can be used to enable or disable specific gatherers.
	// It may not exceed 100 items and each gatherer can be present only once.
	// It is possible to disable an entire set of gatherers while allowing a specific function within that set.
	// The particular gatherers IDs can be found at https://github.com/openshift/insights-operator/blob/master/docs/gathered-data.md.
	// Run the following command to get the names of last active gatherers:
	// "oc get insightsoperators.operator.openshift.io cluster -o json | jq '.status.gatherStatus.gatherers[].name'"
	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
}
