def locale(self, locale):
        """Sets the locale of this PreferencesV30Rc1.


        :param locale: The locale of this PreferencesV30Rc1.  # noqa: E501
        :type: str
        """
        allowed_values = ["AR", "CS", "DE", "EN", "ES", "FR", "IT", "JA", "KO", "PT", "RU", "ZH_CN", "ZH_TW", "XX"]  # noqa: E501
        if locale not in allowed_values:
            raise ValueError(
                "Invalid value for `locale` ({0}), must be one of {1}"  # noqa: E501
                .format(locale, allowed_values)
            )

        self._locale = locale