# coding: utf-8

"""
    XTRF Home Portal API

    XTRF Home Portal API enables you to perform operations on Projects, Quotes, Customers, Vendors etc. as a XTRF Home Portal user. <br>The documentation is generated from OpenAPI specification 3.0 available <a href=\"/home-api/openapi.json\">here</a> <br>   The API client/consumer code may be easily generated in 60+ programming languages using an open source code generator available at the time of writing this documentation at <a href='https://editor.swagger.io/'>https://editor.swagger.io/</a> Thank you for using XTRF Application Programming interface (XTRF API). By using the API you agree to the terms below. If you disagree with any of these terms, XTRF does not grant you a license to use the XTRF API. XTRF reserves the right to update and change these terms from time to time without a prior notice of API users. You can always find the most recent version of these terms here:   # noqa: E501

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

import pprint
import re  # noqa: F401

import six

class ViewBriefDTO(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 = {
        'id': 'int',
        'name': 'str',
        'current': 'bool',
        'mine': 'bool',
        'owner': 'str',
        'access': 'AccessDTO',
        'last_modification': 'LastModificationDTO'
    }

    attribute_map = {
        'id': 'id',
        'name': 'name',
        'current': 'current',
        'mine': 'mine',
        'owner': 'owner',
        'access': 'access',
        'last_modification': 'lastModification'
    }

    def __init__(self, id=None, name=None, current=None, mine=None, owner=None, access=None, last_modification=None):  # noqa: E501
        """ViewBriefDTO - a model defined in Swagger"""  # noqa: E501
        self._id = None
        self._name = None
        self._current = None
        self._mine = None
        self._owner = None
        self._access = None
        self._last_modification = None
        self.discriminator = None
        if id is not None:
            self.id = id
        if name is not None:
            self.name = name
        if current is not None:
            self.current = current
        if mine is not None:
            self.mine = mine
        if owner is not None:
            self.owner = owner
        if access is not None:
            self.access = access
        if last_modification is not None:
            self.last_modification = last_modification

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


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

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


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

        self._id = id

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


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

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


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

        self._name = name

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


        :return: The current of this ViewBriefDTO.  # noqa: E501
        :rtype: bool
        """
        return self._current

    @current.setter
    def current(self, current):
        """Sets the current of this ViewBriefDTO.


        :param current: The current of this ViewBriefDTO.  # noqa: E501
        :type: bool
        """

        self._current = current

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


        :return: The mine of this ViewBriefDTO.  # noqa: E501
        :rtype: bool
        """
        return self._mine

    @mine.setter
    def mine(self, mine):
        """Sets the mine of this ViewBriefDTO.


        :param mine: The mine of this ViewBriefDTO.  # noqa: E501
        :type: bool
        """

        self._mine = mine

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


        :return: The owner of this ViewBriefDTO.  # noqa: E501
        :rtype: str
        """
        return self._owner

    @owner.setter
    def owner(self, owner):
        """Sets the owner of this ViewBriefDTO.


        :param owner: The owner of this ViewBriefDTO.  # noqa: E501
        :type: str
        """

        self._owner = owner

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


        :return: The access of this ViewBriefDTO.  # noqa: E501
        :rtype: AccessDTO
        """
        return self._access

    @access.setter
    def access(self, access):
        """Sets the access of this ViewBriefDTO.


        :param access: The access of this ViewBriefDTO.  # noqa: E501
        :type: AccessDTO
        """

        self._access = access

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


        :return: The last_modification of this ViewBriefDTO.  # noqa: E501
        :rtype: LastModificationDTO
        """
        return self._last_modification

    @last_modification.setter
    def last_modification(self, last_modification):
        """Sets the last_modification of this ViewBriefDTO.


        :param last_modification: The last_modification of this ViewBriefDTO.  # noqa: E501
        :type: LastModificationDTO
        """

        self._last_modification = last_modification

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

        return self.__dict__ == other.__dict__

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