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

package v1

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

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

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