func (b *Builder) WithCapacity(capacity string) *Builder {
	resCapacity, err := resource.ParseQuantity(capacity)
	if err != nil {
		b.errs = append(b.errs, errors.Wrapf(err, "failed to build PV object: failed to parse capacity {%s}", capacity))
		return b
	}
	return b.WithCapacityQty(resCapacity)
}
// WithCapacity sets the Capacity field in PV by converting string
// capacity into Quantity
WithCapacity sets the Capacity field in PV by converting string
capacity into Quantity
// WithCapacity sets the Capacity field in PV by converting string // capacity into Quantity
func (b *Builder) WithCapacity(capacity string) *Builder {
	resCapacity, err := resource.ParseQuantity(capacity)
	if err != nil {
		b.errs = append(b.errs, errors.Wrapf(err, "failed to build PV object: failed to parse capacity {%s}", capacity))
		return b
	}
	return b.WithCapacityQty(resCapacity)
}
func ( b * Builder ) WithCapacity ( capacity string ) * Builder { resCapacity , err := resource . ParseQuantity ( capacity ) if err != nil { b . errs = append ( b . errs , errors . Wrapf ( err , " " , capacity ) ) return b } return b . WithCapacityQty ( resCapacity ) }
WithCapacity sets the Capacity field in PV by converting string
capacity into Quantity
WithCapacity sets the Capacity field in PV by converting string capacity into Quantity