# coding: utf-8

"""
    Abstract API

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

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


import pprint
import re  # noqa: F401

import six

from enigma.swagger_client.models.apicollections_parent_collection import ApicollectionsParentCollection  # noqa: F401,E501
from enigma.swagger_client.models.collection_ancestors import CollectionAncestors  # noqa: F401,E501
from enigma.swagger_client.models.collection_highlights import CollectionHighlights  # noqa: F401,E501
from enigma.swagger_client.models.tag import Tag  # noqa: F401,E501


class Collection(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 = {
        'ancestors': 'list[CollectionAncestors]',
        'created_at': 'datetime',
        'description': 'str',
        'description_short': 'str',
        'display_name': 'str',
        'editable': 'bool',
        'highlights': 'list[CollectionHighlights]',
        'id': 'str',
        'key_value': 'object',
        'modified_at': 'datetime',
        'owner_id': 'str',
        'parent_collection': 'ApicollectionsParentCollection',
        'published': 'bool',
        'score': 'float',
        'tags': 'list[Tag]'
    }

    attribute_map = {
        'ancestors': 'ancestors',
        'created_at': 'created_at',
        'description': 'description',
        'description_short': 'description_short',
        'display_name': 'display_name',
        'editable': 'editable',
        'highlights': 'highlights',
        'id': 'id',
        'key_value': 'key_value',
        'modified_at': 'modified_at',
        'owner_id': 'owner_id',
        'parent_collection': 'parent_collection',
        'published': 'published',
        'score': 'score',
        'tags': 'tags'
    }

    def __init__(self, ancestors=None, created_at=None, description='', description_short='', display_name=None, editable=None, highlights=None, id=None, key_value=None, modified_at=None, owner_id=None, parent_collection=None, published=False, score=None, tags=None):  # noqa: E501
        """Collection - a model defined in Swagger"""  # noqa: E501

        self._ancestors = None
        self._created_at = None
        self._description = None
        self._description_short = None
        self._display_name = None
        self._editable = None
        self._highlights = None
        self._id = None
        self._key_value = None
        self._modified_at = None
        self._owner_id = None
        self._parent_collection = None
        self._published = None
        self._score = None
        self._tags = None
        self.discriminator = None

        if ancestors is not None:
            self.ancestors = ancestors
        if created_at is not None:
            self.created_at = created_at
        if description is not None:
            self.description = description
        if description_short is not None:
            self.description_short = description_short
        self.display_name = display_name
        if editable is not None:
            self.editable = editable
        if highlights is not None:
            self.highlights = highlights
        if id is not None:
            self.id = id
        if key_value is not None:
            self.key_value = key_value
        if modified_at is not None:
            self.modified_at = modified_at
        if owner_id is not None:
            self.owner_id = owner_id
        if parent_collection is not None:
            self.parent_collection = parent_collection
        if published is not None:
            self.published = published
        if score is not None:
            self.score = score
        if tags is not None:
            self.tags = tags

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


        :return: The ancestors of this Collection.  # noqa: E501
        :rtype: list[CollectionAncestors]
        """
        return self._ancestors

    @ancestors.setter
    def ancestors(self, ancestors):
        """Sets the ancestors of this Collection.


        :param ancestors: The ancestors of this Collection.  # noqa: E501
        :type: list[CollectionAncestors]
        """

        self._ancestors = ancestors

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


        :return: The created_at of this Collection.  # noqa: E501
        :rtype: datetime
        """
        return self._created_at

    @created_at.setter
    def created_at(self, created_at):
        """Sets the created_at of this Collection.


        :param created_at: The created_at of this Collection.  # noqa: E501
        :type: datetime
        """

        self._created_at = created_at

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


        :return: The description of this Collection.  # noqa: E501
        :rtype: str
        """
        return self._description

    @description.setter
    def description(self, description):
        """Sets the description of this Collection.


        :param description: The description of this Collection.  # noqa: E501
        :type: str
        """

        self._description = description

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


        :return: The description_short of this Collection.  # noqa: E501
        :rtype: str
        """
        return self._description_short

    @description_short.setter
    def description_short(self, description_short):
        """Sets the description_short of this Collection.


        :param description_short: The description_short of this Collection.  # noqa: E501
        :type: str
        """

        self._description_short = description_short

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


        :return: The display_name of this Collection.  # noqa: E501
        :rtype: str
        """
        return self._display_name

    @display_name.setter
    def display_name(self, display_name):
        """Sets the display_name of this Collection.


        :param display_name: The display_name of this Collection.  # noqa: E501
        :type: str
        """
        if display_name is None:
            raise ValueError("Invalid value for `display_name`, must not be `None`")  # noqa: E501

        self._display_name = display_name

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


        :return: The editable of this Collection.  # noqa: E501
        :rtype: bool
        """
        return self._editable

    @editable.setter
    def editable(self, editable):
        """Sets the editable of this Collection.


        :param editable: The editable of this Collection.  # noqa: E501
        :type: bool
        """

        self._editable = editable

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


        :return: The highlights of this Collection.  # noqa: E501
        :rtype: list[CollectionHighlights]
        """
        return self._highlights

    @highlights.setter
    def highlights(self, highlights):
        """Sets the highlights of this Collection.


        :param highlights: The highlights of this Collection.  # noqa: E501
        :type: list[CollectionHighlights]
        """

        self._highlights = highlights

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


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

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


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

        self._id = id

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


        :return: The key_value of this Collection.  # noqa: E501
        :rtype: object
        """
        return self._key_value

    @key_value.setter
    def key_value(self, key_value):
        """Sets the key_value of this Collection.


        :param key_value: The key_value of this Collection.  # noqa: E501
        :type: object
        """

        self._key_value = key_value

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


        :return: The modified_at of this Collection.  # noqa: E501
        :rtype: datetime
        """
        return self._modified_at

    @modified_at.setter
    def modified_at(self, modified_at):
        """Sets the modified_at of this Collection.


        :param modified_at: The modified_at of this Collection.  # noqa: E501
        :type: datetime
        """

        self._modified_at = modified_at

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


        :return: The owner_id of this Collection.  # noqa: E501
        :rtype: str
        """
        return self._owner_id

    @owner_id.setter
    def owner_id(self, owner_id):
        """Sets the owner_id of this Collection.


        :param owner_id: The owner_id of this Collection.  # noqa: E501
        :type: str
        """

        self._owner_id = owner_id

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


        :return: The parent_collection of this Collection.  # noqa: E501
        :rtype: ApicollectionsParentCollection
        """
        return self._parent_collection

    @parent_collection.setter
    def parent_collection(self, parent_collection):
        """Sets the parent_collection of this Collection.


        :param parent_collection: The parent_collection of this Collection.  # noqa: E501
        :type: ApicollectionsParentCollection
        """

        self._parent_collection = parent_collection

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


        :return: The published of this Collection.  # noqa: E501
        :rtype: bool
        """
        return self._published

    @published.setter
    def published(self, published):
        """Sets the published of this Collection.


        :param published: The published of this Collection.  # noqa: E501
        :type: bool
        """

        self._published = published

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


        :return: The score of this Collection.  # noqa: E501
        :rtype: float
        """
        return self._score

    @score.setter
    def score(self, score):
        """Sets the score of this Collection.


        :param score: The score of this Collection.  # noqa: E501
        :type: float
        """

        self._score = score

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


        :return: The tags of this Collection.  # noqa: E501
        :rtype: list[Tag]
        """
        return self._tags

    @tags.setter
    def tags(self, tags):
        """Sets the tags of this Collection.


        :param tags: The tags of this Collection.  # noqa: E501
        :type: list[Tag]
        """

        self._tags = tags

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

        return self.__dict__ == other.__dict__

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