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

package v1alpha1

// ImageContentSourcePolicySpecApplyConfiguration represents an declarative configuration of the ImageContentSourcePolicySpec type for use
// with apply.
type ImageContentSourcePolicySpecApplyConfiguration struct {
	RepositoryDigestMirrors []RepositoryDigestMirrorsApplyConfiguration `json:"repositoryDigestMirrors,omitempty"`
}

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

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