# coding: utf-8

"""
    Memsource REST API

    Welcome to Memsource's API documentation. To view our legacy APIs please [visit our documentation](https://wiki.memsource.com/wiki/Memsource_API) and for more information about our new APIs, [visit our blog](https://www.memsource.com/blog/2017/10/24/introducing-rest-apis-qa-with-the-memsource-api-team/).    If you have any questions, please contact [Memsource Support](<mailto:support@memsource.com>).  # noqa: E501

    OpenAPI spec version: Latest
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401

import six


class SdlXlfSettingsDto(object):
    """NOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    """

    """
    Attributes:
      swagger_types (dict): The key is attribute name
                            and the value is attribute type.
      attribute_map (dict): The key is attribute name
                            and the value is json key in definition.
    """
    swagger_types = {
        'skip_import_rules': 'str',
        'import_as_confirmed_rules': 'str',
        'import_as_locked_rules': 'str',
        'export_attrs_when_confirmed_and_locked': 'str',
        'export_attrs_when_confirmed_and_not_locked': 'str',
        'export_attrs_when_not_confirmed_and_locked': 'str',
        'export_attrs_when_not_confirmed_and_not_locked': 'str',
        'save_confirmed_segments': 'bool'
    }

    attribute_map = {
        'skip_import_rules': 'skipImportRules',
        'import_as_confirmed_rules': 'importAsConfirmedRules',
        'import_as_locked_rules': 'importAsLockedRules',
        'export_attrs_when_confirmed_and_locked': 'exportAttrsWhenConfirmedAndLocked',
        'export_attrs_when_confirmed_and_not_locked': 'exportAttrsWhenConfirmedAndNotLocked',
        'export_attrs_when_not_confirmed_and_locked': 'exportAttrsWhenNotConfirmedAndLocked',
        'export_attrs_when_not_confirmed_and_not_locked': 'exportAttrsWhenNotConfirmedAndNotLocked',
        'save_confirmed_segments': 'saveConfirmedSegments'
    }

    def __init__(self, skip_import_rules=None, import_as_confirmed_rules=None, import_as_locked_rules=None, export_attrs_when_confirmed_and_locked=None, export_attrs_when_confirmed_and_not_locked=None, export_attrs_when_not_confirmed_and_locked=None, export_attrs_when_not_confirmed_and_not_locked=None, save_confirmed_segments=None):  # noqa: E501
        """SdlXlfSettingsDto - a model defined in Swagger"""  # noqa: E501

        self._skip_import_rules = None
        self._import_as_confirmed_rules = None
        self._import_as_locked_rules = None
        self._export_attrs_when_confirmed_and_locked = None
        self._export_attrs_when_confirmed_and_not_locked = None
        self._export_attrs_when_not_confirmed_and_locked = None
        self._export_attrs_when_not_confirmed_and_not_locked = None
        self._save_confirmed_segments = None
        self.discriminator = None

        if skip_import_rules is not None:
            self.skip_import_rules = skip_import_rules
        if import_as_confirmed_rules is not None:
            self.import_as_confirmed_rules = import_as_confirmed_rules
        if import_as_locked_rules is not None:
            self.import_as_locked_rules = import_as_locked_rules
        if export_attrs_when_confirmed_and_locked is not None:
            self.export_attrs_when_confirmed_and_locked = export_attrs_when_confirmed_and_locked
        if export_attrs_when_confirmed_and_not_locked is not None:
            self.export_attrs_when_confirmed_and_not_locked = export_attrs_when_confirmed_and_not_locked
        if export_attrs_when_not_confirmed_and_locked is not None:
            self.export_attrs_when_not_confirmed_and_locked = export_attrs_when_not_confirmed_and_locked
        if export_attrs_when_not_confirmed_and_not_locked is not None:
            self.export_attrs_when_not_confirmed_and_not_locked = export_attrs_when_not_confirmed_and_not_locked
        if save_confirmed_segments is not None:
            self.save_confirmed_segments = save_confirmed_segments

    @property
    def skip_import_rules(self):
        """Gets the skip_import_rules of this SdlXlfSettingsDto.  # noqa: E501

        Default: translate=no  # noqa: E501

        :return: The skip_import_rules of this SdlXlfSettingsDto.  # noqa: E501
        :rtype: str
        """
        return self._skip_import_rules

    @skip_import_rules.setter
    def skip_import_rules(self, skip_import_rules):
        """Sets the skip_import_rules of this SdlXlfSettingsDto.

        Default: translate=no  # noqa: E501

        :param skip_import_rules: The skip_import_rules of this SdlXlfSettingsDto.  # noqa: E501
        :type: str
        """

        self._skip_import_rules = skip_import_rules

    @property
    def import_as_confirmed_rules(self):
        """Gets the import_as_confirmed_rules of this SdlXlfSettingsDto.  # noqa: E501


        :return: The import_as_confirmed_rules of this SdlXlfSettingsDto.  # noqa: E501
        :rtype: str
        """
        return self._import_as_confirmed_rules

    @import_as_confirmed_rules.setter
    def import_as_confirmed_rules(self, import_as_confirmed_rules):
        """Sets the import_as_confirmed_rules of this SdlXlfSettingsDto.


        :param import_as_confirmed_rules: The import_as_confirmed_rules of this SdlXlfSettingsDto.  # noqa: E501
        :type: str
        """

        self._import_as_confirmed_rules = import_as_confirmed_rules

    @property
    def import_as_locked_rules(self):
        """Gets the import_as_locked_rules of this SdlXlfSettingsDto.  # noqa: E501

        Default: locked=true  # noqa: E501

        :return: The import_as_locked_rules of this SdlXlfSettingsDto.  # noqa: E501
        :rtype: str
        """
        return self._import_as_locked_rules

    @import_as_locked_rules.setter
    def import_as_locked_rules(self, import_as_locked_rules):
        """Sets the import_as_locked_rules of this SdlXlfSettingsDto.

        Default: locked=true  # noqa: E501

        :param import_as_locked_rules: The import_as_locked_rules of this SdlXlfSettingsDto.  # noqa: E501
        :type: str
        """

        self._import_as_locked_rules = import_as_locked_rules

    @property
    def export_attrs_when_confirmed_and_locked(self):
        """Gets the export_attrs_when_confirmed_and_locked of this SdlXlfSettingsDto.  # noqa: E501

        Default: locked=true  # noqa: E501

        :return: The export_attrs_when_confirmed_and_locked of this SdlXlfSettingsDto.  # noqa: E501
        :rtype: str
        """
        return self._export_attrs_when_confirmed_and_locked

    @export_attrs_when_confirmed_and_locked.setter
    def export_attrs_when_confirmed_and_locked(self, export_attrs_when_confirmed_and_locked):
        """Sets the export_attrs_when_confirmed_and_locked of this SdlXlfSettingsDto.

        Default: locked=true  # noqa: E501

        :param export_attrs_when_confirmed_and_locked: The export_attrs_when_confirmed_and_locked of this SdlXlfSettingsDto.  # noqa: E501
        :type: str
        """

        self._export_attrs_when_confirmed_and_locked = export_attrs_when_confirmed_and_locked

    @property
    def export_attrs_when_confirmed_and_not_locked(self):
        """Gets the export_attrs_when_confirmed_and_not_locked of this SdlXlfSettingsDto.  # noqa: E501


        :return: The export_attrs_when_confirmed_and_not_locked of this SdlXlfSettingsDto.  # noqa: E501
        :rtype: str
        """
        return self._export_attrs_when_confirmed_and_not_locked

    @export_attrs_when_confirmed_and_not_locked.setter
    def export_attrs_when_confirmed_and_not_locked(self, export_attrs_when_confirmed_and_not_locked):
        """Sets the export_attrs_when_confirmed_and_not_locked of this SdlXlfSettingsDto.


        :param export_attrs_when_confirmed_and_not_locked: The export_attrs_when_confirmed_and_not_locked of this SdlXlfSettingsDto.  # noqa: E501
        :type: str
        """

        self._export_attrs_when_confirmed_and_not_locked = export_attrs_when_confirmed_and_not_locked

    @property
    def export_attrs_when_not_confirmed_and_locked(self):
        """Gets the export_attrs_when_not_confirmed_and_locked of this SdlXlfSettingsDto.  # noqa: E501

        Default: locked=true  # noqa: E501

        :return: The export_attrs_when_not_confirmed_and_locked of this SdlXlfSettingsDto.  # noqa: E501
        :rtype: str
        """
        return self._export_attrs_when_not_confirmed_and_locked

    @export_attrs_when_not_confirmed_and_locked.setter
    def export_attrs_when_not_confirmed_and_locked(self, export_attrs_when_not_confirmed_and_locked):
        """Sets the export_attrs_when_not_confirmed_and_locked of this SdlXlfSettingsDto.

        Default: locked=true  # noqa: E501

        :param export_attrs_when_not_confirmed_and_locked: The export_attrs_when_not_confirmed_and_locked of this SdlXlfSettingsDto.  # noqa: E501
        :type: str
        """

        self._export_attrs_when_not_confirmed_and_locked = export_attrs_when_not_confirmed_and_locked

    @property
    def export_attrs_when_not_confirmed_and_not_locked(self):
        """Gets the export_attrs_when_not_confirmed_and_not_locked of this SdlXlfSettingsDto.  # noqa: E501


        :return: The export_attrs_when_not_confirmed_and_not_locked of this SdlXlfSettingsDto.  # noqa: E501
        :rtype: str
        """
        return self._export_attrs_when_not_confirmed_and_not_locked

    @export_attrs_when_not_confirmed_and_not_locked.setter
    def export_attrs_when_not_confirmed_and_not_locked(self, export_attrs_when_not_confirmed_and_not_locked):
        """Sets the export_attrs_when_not_confirmed_and_not_locked of this SdlXlfSettingsDto.


        :param export_attrs_when_not_confirmed_and_not_locked: The export_attrs_when_not_confirmed_and_not_locked of this SdlXlfSettingsDto.  # noqa: E501
        :type: str
        """

        self._export_attrs_when_not_confirmed_and_not_locked = export_attrs_when_not_confirmed_and_not_locked

    @property
    def save_confirmed_segments(self):
        """Gets the save_confirmed_segments of this SdlXlfSettingsDto.  # noqa: E501

        Default: true  # noqa: E501

        :return: The save_confirmed_segments of this SdlXlfSettingsDto.  # noqa: E501
        :rtype: bool
        """
        return self._save_confirmed_segments

    @save_confirmed_segments.setter
    def save_confirmed_segments(self, save_confirmed_segments):
        """Sets the save_confirmed_segments of this SdlXlfSettingsDto.

        Default: true  # noqa: E501

        :param save_confirmed_segments: The save_confirmed_segments of this SdlXlfSettingsDto.  # noqa: E501
        :type: bool
        """

        self._save_confirmed_segments = save_confirmed_segments

    def to_dict(self):
        """Returns the model properties as a dict"""
        result = {}

        for attr, _ in six.iteritems(self.swagger_types):
            value = getattr(self, attr)
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
                    value
                ))
            elif hasattr(value, "to_dict"):
                result[attr] = value.to_dict()
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], item[1].to_dict())
                    if hasattr(item[1], "to_dict") else item,
                    value.items()
                ))
            else:
                result[attr] = value
        if issubclass(SdlXlfSettingsDto, dict):
            for key, value in self.items():
                result[key] = value

        return result

    def to_str(self):
        """Returns the string representation of the model"""
        return pprint.pformat(self.to_dict())

    def __repr__(self):
        """For `print` and `pprint`"""
        return self.to_str()

    def __eq__(self, other):
        """Returns true if both objects are equal"""
        if not isinstance(other, SdlXlfSettingsDto):
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        return not self == other
