func (b *RuleApplyConfiguration) WithAPIGroups(values ...string) *RuleApplyConfiguration {
	for i := range values {
		b.APIGroups = append(b.APIGroups, values[i])
	}
	return b
}
WithAPIGroups adds the given value to the APIGroups 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 APIGroups field.
package v1
import (
	v1 "k8s.io/api/admissionregistration/v1"
)
type RuleApplyConfiguration struct {
	APIGroups   []string      `json:"apiGroups,omitempty"`
	APIVersions []string      `json:"apiVersions,omitempty"`
	Resources   []string      `json:"resources,omitempty"`
	Scope       *v1.ScopeType `json:"scope,omitempty"`
}
func Rule() *RuleApplyConfiguration {
	return &RuleApplyConfiguration{}
}