func (b *ListBuilder) WithCount(count int) *ListBuilder {
	b.count = count
	return b
}
WithCount sets the count that determines
the number of pvcs to be built
package persistentvolumeclaim
import (
	errors "github.com/pkg/errors"
	corev1 "k8s.io/api/core/v1"
)
type ListBuilder struct {
	template *corev1.PersistentVolumeClaim
	count int
	list    *PVCList
	filters PredicateList
	errs    []error
}
func NewListBuilder() *ListBuilder {
	return &ListBuilder{list: &PVCList{}}
}
func ListBuilderFromTemplate(pvc *corev1.PersistentVolumeClaim) *ListBuilder {
	b := NewListBuilder()
	if pvc == nil {
		b.errs = append(
			b.errs,
			errors.New("failed to build pvc list: nil pvc template"),
		)
		return b
	}
	b.template = pvc
	b.count = 1
	return b
}
func ListBuilderForAPIObjects(pvcs *corev1.PersistentVolumeClaimList) *ListBuilder {
	b := &ListBuilder{list: &PVCList{}}
	if pvcs == nil {
		b.errs = append(
			b.errs,
			errors.New("failed to build pvc list: missing api list"),
		)
		return b
	}
	for _, pvc := range pvcs.Items {
		pvc := pvc
		b.list.items = append(b.list.items, &PVC{object: &pvc})
	}
	return b
}
func ListBuilderForObjects(pvcs *PVCList) *ListBuilder {
	b := &ListBuilder{}
	if pvcs == nil {
		b.errs = append(
			b.errs,
			errors.New("failed to build pvc list: missing object list"),
		)
		return b
	}
	b.list = pvcs
	return b
}
func (b *ListBuilder) WithFilter(pred ...Predicate) *ListBuilder {
	b.filters = append(b.filters, pred...)
	return b
}