It depends on the connection details between the shelF and the wall. Without knowing the details, the Gap cannot be defined.
Gap is a compression only spring, and SAP2000 provides an option to allow you to control when it come into functin by defining a real seperation (gap) between the Gap NLink element and the supported Joint. The defined stiffness only come into effect when the deformation exceed the defined seperation.