func (b *Builder) WithAccessModes(accessMode []corev1.PersistentVolumeAccessMode) *Builder {
	if len(accessMode) == 0 {
		b.errs = append(b.errs, errors.New("failed to build PV object: missing accessmodes"))
		return b
	}
	b.pv.object.Spec.AccessModes = accessMode
	return b
}
// WithAccessModes sets the AccessMode field in PV with provided arguments
WithAccessModes sets the AccessMode field in PV with provided arguments
// WithAccessModes sets the AccessMode field in PV with provided arguments
func (b *Builder) WithAccessModes(accessMode []corev1.PersistentVolumeAccessMode) *Builder {
	if len(accessMode) == 0 {
		b.errs = append(b.errs, errors.New("failed to build PV object: missing accessmodes"))
		return b
	}
	b.pv.object.Spec.AccessModes = accessMode
	return b
}
func ( b * Builder ) WithAccessModes ( accessMode [ ] corev1 . PersistentVolumeAccessMode ) * Builder { if len ( accessMode ) == 0 { b . errs = append ( b . errs , errors . New ( " " ) ) return b } b . pv . object . Spec . AccessModes = accessMode return b }
WithAccessModes sets the AccessMode field in PV with provided arguments
WithAccessModes sets the AccessMode field in PV with provided arguments