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

package v1

import (
	v1 "github.com/openshift/api/operator/v1"
)

// IPFIXConfigApplyConfiguration represents an declarative configuration of the IPFIXConfig type for use
// with apply.
type IPFIXConfigApplyConfiguration struct {
	Collectors []v1.IPPort `json:"collectors,omitempty"`
}

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

// WithCollectors adds the given value to the Collectors 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 Collectors field.
func (b *IPFIXConfigApplyConfiguration) WithCollectors(values ...v1.IPPort) *IPFIXConfigApplyConfiguration {
	for i := range values {
		b.Collectors = append(b.Collectors, values[i])
	}
	return b
}
