# coding: utf-8

"""
    XMS API

    XMS is the controller of distributed storage system  # noqa: E501

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


import pprint
import re  # noqa: F401
import six


class FSLdap(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 = {
        'action_status': 'str',
        'admin_dn': 'str',
        'connection_timeout': 'int',
        'create': 'datetime',
        'fs_gateway_group_num': 'int',
        'fs_ldap_user_num': 'int',
        'fs_user_num': 'int',
        'id': 'int',
        'ip': 'str',
        'ips': 'list[str]',
        'name': 'str',
        'port': 'int',
        'status': 'str',
        'suffix': 'str',
        'sync_time': 'datetime',
        'timeout': 'int',
        'update': 'datetime',
        'user_suffix': 'str'
    }

    attribute_map = {
        'action_status': 'action_status',
        'admin_dn': 'admin_dn',
        'connection_timeout': 'connection_timeout',
        'create': 'create',
        'fs_gateway_group_num': 'fs_gateway_group_num',
        'fs_ldap_user_num': 'fs_ldap_user_num',
        'fs_user_num': 'fs_user_num',
        'id': 'id',
        'ip': 'ip',
        'ips': 'ips',
        'name': 'name',
        'port': 'port',
        'status': 'status',
        'suffix': 'suffix',
        'sync_time': 'sync_time',
        'timeout': 'timeout',
        'update': 'update',
        'user_suffix': 'user_suffix'
    }

    def __init__(self, action_status=None, admin_dn=None, connection_timeout=None, create=None, fs_gateway_group_num=None, fs_ldap_user_num=None, fs_user_num=None, id=None, ip=None, ips=None, name=None, port=None, status=None, suffix=None, sync_time=None, timeout=None, update=None, user_suffix=None):  # noqa: E501
        """FSLdap - a model defined in Swagger"""  # noqa: E501

        self._action_status = None
        self._admin_dn = None
        self._connection_timeout = None
        self._create = None
        self._fs_gateway_group_num = None
        self._fs_ldap_user_num = None
        self._fs_user_num = None
        self._id = None
        self._ip = None
        self._ips = None
        self._name = None
        self._port = None
        self._status = None
        self._suffix = None
        self._sync_time = None
        self._timeout = None
        self._update = None
        self._user_suffix = None
        self.discriminator = None

        if action_status is not None:
            self.action_status = action_status
        if admin_dn is not None:
            self.admin_dn = admin_dn
        if connection_timeout is not None:
            self.connection_timeout = connection_timeout
        if create is not None:
            self.create = create
        if fs_gateway_group_num is not None:
            self.fs_gateway_group_num = fs_gateway_group_num
        if fs_ldap_user_num is not None:
            self.fs_ldap_user_num = fs_ldap_user_num
        if fs_user_num is not None:
            self.fs_user_num = fs_user_num
        if id is not None:
            self.id = id
        if ip is not None:
            self.ip = ip
        if ips is not None:
            self.ips = ips
        if name is not None:
            self.name = name
        if port is not None:
            self.port = port
        if status is not None:
            self.status = status
        if suffix is not None:
            self.suffix = suffix
        if sync_time is not None:
            self.sync_time = sync_time
        if timeout is not None:
            self.timeout = timeout
        if update is not None:
            self.update = update
        if user_suffix is not None:
            self.user_suffix = user_suffix

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


        :return: The action_status of this FSLdap.  # noqa: E501
        :rtype: str
        """
        return self._action_status

    @action_status.setter
    def action_status(self, action_status):
        """Sets the action_status of this FSLdap.


        :param action_status: The action_status of this FSLdap.  # noqa: E501
        :type: str
        """

        self._action_status = action_status

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


        :return: The admin_dn of this FSLdap.  # noqa: E501
        :rtype: str
        """
        return self._admin_dn

    @admin_dn.setter
    def admin_dn(self, admin_dn):
        """Sets the admin_dn of this FSLdap.


        :param admin_dn: The admin_dn of this FSLdap.  # noqa: E501
        :type: str
        """

        self._admin_dn = admin_dn

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


        :return: The connection_timeout of this FSLdap.  # noqa: E501
        :rtype: int
        """
        return self._connection_timeout

    @connection_timeout.setter
    def connection_timeout(self, connection_timeout):
        """Sets the connection_timeout of this FSLdap.


        :param connection_timeout: The connection_timeout of this FSLdap.  # noqa: E501
        :type: int
        """

        self._connection_timeout = connection_timeout

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


        :return: The create of this FSLdap.  # noqa: E501
        :rtype: datetime
        """
        return self._create

    @create.setter
    def create(self, create):
        """Sets the create of this FSLdap.


        :param create: The create of this FSLdap.  # noqa: E501
        :type: datetime
        """

        self._create = create

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


        :return: The fs_gateway_group_num of this FSLdap.  # noqa: E501
        :rtype: int
        """
        return self._fs_gateway_group_num

    @fs_gateway_group_num.setter
    def fs_gateway_group_num(self, fs_gateway_group_num):
        """Sets the fs_gateway_group_num of this FSLdap.


        :param fs_gateway_group_num: The fs_gateway_group_num of this FSLdap.  # noqa: E501
        :type: int
        """

        self._fs_gateway_group_num = fs_gateway_group_num

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


        :return: The fs_ldap_user_num of this FSLdap.  # noqa: E501
        :rtype: int
        """
        return self._fs_ldap_user_num

    @fs_ldap_user_num.setter
    def fs_ldap_user_num(self, fs_ldap_user_num):
        """Sets the fs_ldap_user_num of this FSLdap.


        :param fs_ldap_user_num: The fs_ldap_user_num of this FSLdap.  # noqa: E501
        :type: int
        """

        self._fs_ldap_user_num = fs_ldap_user_num

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


        :return: The fs_user_num of this FSLdap.  # noqa: E501
        :rtype: int
        """
        return self._fs_user_num

    @fs_user_num.setter
    def fs_user_num(self, fs_user_num):
        """Sets the fs_user_num of this FSLdap.


        :param fs_user_num: The fs_user_num of this FSLdap.  # noqa: E501
        :type: int
        """

        self._fs_user_num = fs_user_num

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


        :return: The id of this FSLdap.  # noqa: E501
        :rtype: int
        """
        return self._id

    @id.setter
    def id(self, id):
        """Sets the id of this FSLdap.


        :param id: The id of this FSLdap.  # noqa: E501
        :type: int
        """

        self._id = id

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


        :return: The ip of this FSLdap.  # noqa: E501
        :rtype: str
        """
        return self._ip

    @ip.setter
    def ip(self, ip):
        """Sets the ip of this FSLdap.


        :param ip: The ip of this FSLdap.  # noqa: E501
        :type: str
        """

        self._ip = ip

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


        :return: The ips of this FSLdap.  # noqa: E501
        :rtype: list[str]
        """
        return self._ips

    @ips.setter
    def ips(self, ips):
        """Sets the ips of this FSLdap.


        :param ips: The ips of this FSLdap.  # noqa: E501
        :type: list[str]
        """

        self._ips = ips

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


        :return: The name of this FSLdap.  # noqa: E501
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name):
        """Sets the name of this FSLdap.


        :param name: The name of this FSLdap.  # noqa: E501
        :type: str
        """

        self._name = name

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


        :return: The port of this FSLdap.  # noqa: E501
        :rtype: int
        """
        return self._port

    @port.setter
    def port(self, port):
        """Sets the port of this FSLdap.


        :param port: The port of this FSLdap.  # noqa: E501
        :type: int
        """

        self._port = port

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


        :return: The status of this FSLdap.  # noqa: E501
        :rtype: str
        """
        return self._status

    @status.setter
    def status(self, status):
        """Sets the status of this FSLdap.


        :param status: The status of this FSLdap.  # noqa: E501
        :type: str
        """

        self._status = status

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


        :return: The suffix of this FSLdap.  # noqa: E501
        :rtype: str
        """
        return self._suffix

    @suffix.setter
    def suffix(self, suffix):
        """Sets the suffix of this FSLdap.


        :param suffix: The suffix of this FSLdap.  # noqa: E501
        :type: str
        """

        self._suffix = suffix

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


        :return: The sync_time of this FSLdap.  # noqa: E501
        :rtype: datetime
        """
        return self._sync_time

    @sync_time.setter
    def sync_time(self, sync_time):
        """Sets the sync_time of this FSLdap.


        :param sync_time: The sync_time of this FSLdap.  # noqa: E501
        :type: datetime
        """

        self._sync_time = sync_time

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


        :return: The timeout of this FSLdap.  # noqa: E501
        :rtype: int
        """
        return self._timeout

    @timeout.setter
    def timeout(self, timeout):
        """Sets the timeout of this FSLdap.


        :param timeout: The timeout of this FSLdap.  # noqa: E501
        :type: int
        """

        self._timeout = timeout

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


        :return: The update of this FSLdap.  # noqa: E501
        :rtype: datetime
        """
        return self._update

    @update.setter
    def update(self, update):
        """Sets the update of this FSLdap.


        :param update: The update of this FSLdap.  # noqa: E501
        :type: datetime
        """

        self._update = update

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


        :return: The user_suffix of this FSLdap.  # noqa: E501
        :rtype: str
        """
        return self._user_suffix

    @user_suffix.setter
    def user_suffix(self, user_suffix):
        """Sets the user_suffix of this FSLdap.


        :param user_suffix: The user_suffix of this FSLdap.  # noqa: E501
        :type: str
        """

        self._user_suffix = user_suffix

    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

        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, FSLdap):
            return False

        return self.__dict__ == other.__dict__

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