# coding: utf-8

"""
    DocuSign Rooms API - v2

    An API for an integrator to access the features of DocuSign Rooms  # noqa: E501

    OpenAPI spec version: v2
    Contact: devcenter@docusign.com
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401

import six

from docusign_rooms.client.configuration import Configuration


class Room(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 = {
        'room_id': 'int',
        'company_id': 'int',
        'name': 'str',
        'office_id': 'int',
        'created_date': 'datetime',
        'submitted_for_review_date': 'datetime',
        'closed_date': 'datetime',
        'rejected_date': 'datetime',
        'created_by_user_id': 'int',
        'room_owner_ids': 'list[int]',
        'rejected_by_user_id': 'int',
        'closed_status_id': 'str',
        'field_data_last_updated_date': 'datetime',
        'field_data': 'FieldData'
    }

    attribute_map = {
        'room_id': 'roomId',
        'company_id': 'companyId',
        'name': 'name',
        'office_id': 'officeId',
        'created_date': 'createdDate',
        'submitted_for_review_date': 'submittedForReviewDate',
        'closed_date': 'closedDate',
        'rejected_date': 'rejectedDate',
        'created_by_user_id': 'createdByUserId',
        'room_owner_ids': 'roomOwnerIds',
        'rejected_by_user_id': 'rejectedByUserId',
        'closed_status_id': 'closedStatusId',
        'field_data_last_updated_date': 'fieldDataLastUpdatedDate',
        'field_data': 'fieldData'
    }

    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
        """Room - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._room_id = None
        self._company_id = None
        self._name = None
        self._office_id = None
        self._created_date = None
        self._submitted_for_review_date = None
        self._closed_date = None
        self._rejected_date = None
        self._created_by_user_id = None
        self._room_owner_ids = None
        self._rejected_by_user_id = None
        self._closed_status_id = None
        self._field_data_last_updated_date = None
        self._field_data = None
        self.discriminator = None

        setattr(self, "_{}".format('room_id'), kwargs.get('room_id', None))
        setattr(self, "_{}".format('company_id'), kwargs.get('company_id', None))
        setattr(self, "_{}".format('name'), kwargs.get('name', None))
        setattr(self, "_{}".format('office_id'), kwargs.get('office_id', None))
        setattr(self, "_{}".format('created_date'), kwargs.get('created_date', None))
        setattr(self, "_{}".format('submitted_for_review_date'), kwargs.get('submitted_for_review_date', None))
        setattr(self, "_{}".format('closed_date'), kwargs.get('closed_date', None))
        setattr(self, "_{}".format('rejected_date'), kwargs.get('rejected_date', None))
        setattr(self, "_{}".format('created_by_user_id'), kwargs.get('created_by_user_id', None))
        setattr(self, "_{}".format('room_owner_ids'), kwargs.get('room_owner_ids', None))
        setattr(self, "_{}".format('rejected_by_user_id'), kwargs.get('rejected_by_user_id', None))
        setattr(self, "_{}".format('closed_status_id'), kwargs.get('closed_status_id', None))
        setattr(self, "_{}".format('field_data_last_updated_date'), kwargs.get('field_data_last_updated_date', None))
        setattr(self, "_{}".format('field_data'), kwargs.get('field_data', None))

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


        :return: The room_id of this Room.  # noqa: E501
        :rtype: int
        """
        return self._room_id

    @room_id.setter
    def room_id(self, room_id):
        """Sets the room_id of this Room.


        :param room_id: The room_id of this Room.  # noqa: E501
        :type: int
        """

        self._room_id = room_id

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


        :return: The company_id of this Room.  # noqa: E501
        :rtype: int
        """
        return self._company_id

    @company_id.setter
    def company_id(self, company_id):
        """Sets the company_id of this Room.


        :param company_id: The company_id of this Room.  # noqa: E501
        :type: int
        """

        self._company_id = company_id

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


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

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


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

        self._name = name

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


        :return: The office_id of this Room.  # noqa: E501
        :rtype: int
        """
        return self._office_id

    @office_id.setter
    def office_id(self, office_id):
        """Sets the office_id of this Room.


        :param office_id: The office_id of this Room.  # noqa: E501
        :type: int
        """

        self._office_id = office_id

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


        :return: The created_date of this Room.  # noqa: E501
        :rtype: datetime
        """
        return self._created_date

    @created_date.setter
    def created_date(self, created_date):
        """Sets the created_date of this Room.


        :param created_date: The created_date of this Room.  # noqa: E501
        :type: datetime
        """

        self._created_date = created_date

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


        :return: The submitted_for_review_date of this Room.  # noqa: E501
        :rtype: datetime
        """
        return self._submitted_for_review_date

    @submitted_for_review_date.setter
    def submitted_for_review_date(self, submitted_for_review_date):
        """Sets the submitted_for_review_date of this Room.


        :param submitted_for_review_date: The submitted_for_review_date of this Room.  # noqa: E501
        :type: datetime
        """

        self._submitted_for_review_date = submitted_for_review_date

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


        :return: The closed_date of this Room.  # noqa: E501
        :rtype: datetime
        """
        return self._closed_date

    @closed_date.setter
    def closed_date(self, closed_date):
        """Sets the closed_date of this Room.


        :param closed_date: The closed_date of this Room.  # noqa: E501
        :type: datetime
        """

        self._closed_date = closed_date

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


        :return: The rejected_date of this Room.  # noqa: E501
        :rtype: datetime
        """
        return self._rejected_date

    @rejected_date.setter
    def rejected_date(self, rejected_date):
        """Sets the rejected_date of this Room.


        :param rejected_date: The rejected_date of this Room.  # noqa: E501
        :type: datetime
        """

        self._rejected_date = rejected_date

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


        :return: The created_by_user_id of this Room.  # noqa: E501
        :rtype: int
        """
        return self._created_by_user_id

    @created_by_user_id.setter
    def created_by_user_id(self, created_by_user_id):
        """Sets the created_by_user_id of this Room.


        :param created_by_user_id: The created_by_user_id of this Room.  # noqa: E501
        :type: int
        """

        self._created_by_user_id = created_by_user_id

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


        :return: The room_owner_ids of this Room.  # noqa: E501
        :rtype: list[int]
        """
        return self._room_owner_ids

    @room_owner_ids.setter
    def room_owner_ids(self, room_owner_ids):
        """Sets the room_owner_ids of this Room.


        :param room_owner_ids: The room_owner_ids of this Room.  # noqa: E501
        :type: list[int]
        """

        self._room_owner_ids = room_owner_ids

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


        :return: The rejected_by_user_id of this Room.  # noqa: E501
        :rtype: int
        """
        return self._rejected_by_user_id

    @rejected_by_user_id.setter
    def rejected_by_user_id(self, rejected_by_user_id):
        """Sets the rejected_by_user_id of this Room.


        :param rejected_by_user_id: The rejected_by_user_id of this Room.  # noqa: E501
        :type: int
        """

        self._rejected_by_user_id = rejected_by_user_id

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


        :return: The closed_status_id of this Room.  # noqa: E501
        :rtype: str
        """
        return self._closed_status_id

    @closed_status_id.setter
    def closed_status_id(self, closed_status_id):
        """Sets the closed_status_id of this Room.


        :param closed_status_id: The closed_status_id of this Room.  # noqa: E501
        :type: str
        """

        self._closed_status_id = closed_status_id

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


        :return: The field_data_last_updated_date of this Room.  # noqa: E501
        :rtype: datetime
        """
        return self._field_data_last_updated_date

    @field_data_last_updated_date.setter
    def field_data_last_updated_date(self, field_data_last_updated_date):
        """Sets the field_data_last_updated_date of this Room.


        :param field_data_last_updated_date: The field_data_last_updated_date of this Room.  # noqa: E501
        :type: datetime
        """

        self._field_data_last_updated_date = field_data_last_updated_date

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


        :return: The field_data of this Room.  # noqa: E501
        :rtype: FieldData
        """
        return self._field_data

    @field_data.setter
    def field_data(self, field_data):
        """Sets the field_data of this Room.


        :param field_data: The field_data of this Room.  # noqa: E501
        :type: FieldData
        """

        self._field_data = field_data

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

        return self.to_dict() == other.to_dict()

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

        return self.to_dict() != other.to_dict()
