# coding: utf-8

"""
    \"Data Governance Center: REST API v2\"

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # 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

from swagger_client.models.json_entity_with_id_impl import JsonEntityWithIdImpl  # noqa: F401,E501
from swagger_client.models.json_resource_identifier import JsonResourceIdentifier  # noqa: F401,E501


class JsonResourceImplImpl(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': 'str',
        'resource_identifier': 'JsonResourceIdentifier',
        'last_modified_by': 'str',
        'system': 'bool',
        'committed': 'bool',
        'parent': 'object',
        'created_by': 'str',
        'last_modified': 'float',
        'created_on': 'float',
        'persisted': 'bool',
        'natural_identifier': 'str'
    }

    attribute_map = {
        'id': 'id',
        'resource_identifier': 'resourceIdentifier',
        'last_modified_by': 'lastModifiedBy',
        'system': 'system',
        'committed': 'committed',
        'parent': 'parent',
        'created_by': 'createdBy',
        'last_modified': 'lastModified',
        'created_on': 'createdOn',
        'persisted': 'persisted',
        'natural_identifier': 'naturalIdentifier'
    }

    def __init__(self, id=None, resource_identifier=None, last_modified_by=None, system=None, committed=None, parent=None, created_by=None, last_modified=None, created_on=None, persisted=None, natural_identifier=None):  # noqa: E501
        """JsonResourceImplImpl - a model defined in Swagger"""  # noqa: E501

        self._id = None
        self._resource_identifier = None
        self._last_modified_by = None
        self._system = None
        self._committed = None
        self._parent = None
        self._created_by = None
        self._last_modified = None
        self._created_on = None
        self._persisted = None
        self._natural_identifier = None
        self.discriminator = None

        if id is not None:
            self.id = id
        if resource_identifier is not None:
            self.resource_identifier = resource_identifier
        if last_modified_by is not None:
            self.last_modified_by = last_modified_by
        if system is not None:
            self.system = system
        if committed is not None:
            self.committed = committed
        if parent is not None:
            self.parent = parent
        if created_by is not None:
            self.created_by = created_by
        if last_modified is not None:
            self.last_modified = last_modified
        if created_on is not None:
            self.created_on = created_on
        if persisted is not None:
            self.persisted = persisted
        if natural_identifier is not None:
            self.natural_identifier = natural_identifier

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

          # noqa: E501

        :return: The id of this JsonResourceImplImpl.  # noqa: E501
        :rtype: str
        """
        return self._id

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

          # noqa: E501

        :param id: The id of this JsonResourceImplImpl.  # noqa: E501
        :type: str
        """

        self._id = id

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

          # noqa: E501

        :return: The resource_identifier of this JsonResourceImplImpl.  # noqa: E501
        :rtype: JsonResourceIdentifier
        """
        return self._resource_identifier

    @resource_identifier.setter
    def resource_identifier(self, resource_identifier):
        """Sets the resource_identifier of this JsonResourceImplImpl.

          # noqa: E501

        :param resource_identifier: The resource_identifier of this JsonResourceImplImpl.  # noqa: E501
        :type: JsonResourceIdentifier
        """

        self._resource_identifier = resource_identifier

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

          # noqa: E501

        :return: The last_modified_by of this JsonResourceImplImpl.  # noqa: E501
        :rtype: str
        """
        return self._last_modified_by

    @last_modified_by.setter
    def last_modified_by(self, last_modified_by):
        """Sets the last_modified_by of this JsonResourceImplImpl.

          # noqa: E501

        :param last_modified_by: The last_modified_by of this JsonResourceImplImpl.  # noqa: E501
        :type: str
        """

        self._last_modified_by = last_modified_by

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

          # noqa: E501

        :return: The system of this JsonResourceImplImpl.  # noqa: E501
        :rtype: bool
        """
        return self._system

    @system.setter
    def system(self, system):
        """Sets the system of this JsonResourceImplImpl.

          # noqa: E501

        :param system: The system of this JsonResourceImplImpl.  # noqa: E501
        :type: bool
        """

        self._system = system

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

          # noqa: E501

        :return: The committed of this JsonResourceImplImpl.  # noqa: E501
        :rtype: bool
        """
        return self._committed

    @committed.setter
    def committed(self, committed):
        """Sets the committed of this JsonResourceImplImpl.

          # noqa: E501

        :param committed: The committed of this JsonResourceImplImpl.  # noqa: E501
        :type: bool
        """

        self._committed = committed

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

          # noqa: E501

        :return: The parent of this JsonResourceImplImpl.  # noqa: E501
        :rtype: object
        """
        return self._parent

    @parent.setter
    def parent(self, parent):
        """Sets the parent of this JsonResourceImplImpl.

          # noqa: E501

        :param parent: The parent of this JsonResourceImplImpl.  # noqa: E501
        :type: object
        """

        self._parent = parent

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

          # noqa: E501

        :return: The created_by of this JsonResourceImplImpl.  # noqa: E501
        :rtype: str
        """
        return self._created_by

    @created_by.setter
    def created_by(self, created_by):
        """Sets the created_by of this JsonResourceImplImpl.

          # noqa: E501

        :param created_by: The created_by of this JsonResourceImplImpl.  # noqa: E501
        :type: str
        """

        self._created_by = created_by

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

          # noqa: E501

        :return: The last_modified of this JsonResourceImplImpl.  # noqa: E501
        :rtype: float
        """
        return self._last_modified

    @last_modified.setter
    def last_modified(self, last_modified):
        """Sets the last_modified of this JsonResourceImplImpl.

          # noqa: E501

        :param last_modified: The last_modified of this JsonResourceImplImpl.  # noqa: E501
        :type: float
        """

        self._last_modified = last_modified

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

          # noqa: E501

        :return: The created_on of this JsonResourceImplImpl.  # noqa: E501
        :rtype: float
        """
        return self._created_on

    @created_on.setter
    def created_on(self, created_on):
        """Sets the created_on of this JsonResourceImplImpl.

          # noqa: E501

        :param created_on: The created_on of this JsonResourceImplImpl.  # noqa: E501
        :type: float
        """

        self._created_on = created_on

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

          # noqa: E501

        :return: The persisted of this JsonResourceImplImpl.  # noqa: E501
        :rtype: bool
        """
        return self._persisted

    @persisted.setter
    def persisted(self, persisted):
        """Sets the persisted of this JsonResourceImplImpl.

          # noqa: E501

        :param persisted: The persisted of this JsonResourceImplImpl.  # noqa: E501
        :type: bool
        """

        self._persisted = persisted

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

          # noqa: E501

        :return: The natural_identifier of this JsonResourceImplImpl.  # noqa: E501
        :rtype: str
        """
        return self._natural_identifier

    @natural_identifier.setter
    def natural_identifier(self, natural_identifier):
        """Sets the natural_identifier of this JsonResourceImplImpl.

          # noqa: E501

        :param natural_identifier: The natural_identifier of this JsonResourceImplImpl.  # noqa: E501
        :type: str
        """

        self._natural_identifier = natural_identifier

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

        return self.__dict__ == other.__dict__

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