Sets the dimensions_unit of this MeasurementSettings.


        :param dimensions_unit: The dimensions_unit of this MeasurementSettings.
        :type: str

def dimensions_unit(self, dimensions_unit):
        """Sets the dimensions_unit of this MeasurementSettings.


        :param dimensions_unit: The dimensions_unit of this MeasurementSettings.
        :type: str
        """
        allowed_values = ["inch", "cm", "foot", "meter"]  # noqa: E501
        if dimensions_unit is not None and dimensions_unit not in allowed_values:
            raise ValueError(
                "Invalid value for `dimensions_unit` ({0}), must be one of {1}"  # noqa: E501
                .format(dimensions_unit, allowed_values)
            )

        self._dimensions_unit = dimensions_unit