# coding: utf-8

"""
    Mailchimp Marketing API

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

    OpenAPI spec version: 3.0.74
    Contact: apihelp@mailchimp.com
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401

import six


class Interest(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 = {
        'category_id': 'str',
        'list_id': 'str',
        'id': 'str',
        'name': 'str',
        'subscriber_count': 'str',
        'display_order': 'int',
        'links': 'list[ResourceLink]'
    }

    attribute_map = {
        'category_id': 'category_id',
        'list_id': 'list_id',
        'id': 'id',
        'name': 'name',
        'subscriber_count': 'subscriber_count',
        'display_order': 'display_order',
        'links': '_links'
    }

    def __init__(self, category_id=None, list_id=None, id=None, name=None, subscriber_count=None, display_order=None, links=None):  # noqa: E501
        """Interest - a model defined in Swagger"""  # noqa: E501

        self._category_id = None
        self._list_id = None
        self._id = None
        self._name = None
        self._subscriber_count = None
        self._display_order = None
        self._links = None
        self.discriminator = None

        if category_id is not None:
            self.category_id = category_id
        if list_id is not None:
            self.list_id = list_id
        if id is not None:
            self.id = id
        if name is not None:
            self.name = name
        if subscriber_count is not None:
            self.subscriber_count = subscriber_count
        if display_order is not None:
            self.display_order = display_order
        if links is not None:
            self.links = links

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

        The id for the interest category.  # noqa: E501

        :return: The category_id of this Interest.  # noqa: E501
        :rtype: str
        """
        return self._category_id

    @category_id.setter
    def category_id(self, category_id):
        """Sets the category_id of this Interest.

        The id for the interest category.  # noqa: E501

        :param category_id: The category_id of this Interest.  # noqa: E501
        :type: str
        """

        self._category_id = category_id

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

        The ID for the list that this interest belongs to.  # noqa: E501

        :return: The list_id of this Interest.  # noqa: E501
        :rtype: str
        """
        return self._list_id

    @list_id.setter
    def list_id(self, list_id):
        """Sets the list_id of this Interest.

        The ID for the list that this interest belongs to.  # noqa: E501

        :param list_id: The list_id of this Interest.  # noqa: E501
        :type: str
        """

        self._list_id = list_id

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

        The ID for the interest.  # noqa: E501

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

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

        The ID for the interest.  # noqa: E501

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

        self._id = id

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

        The name of the interest. This can be shown publicly on a subscription form.  # noqa: E501

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

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

        The name of the interest. This can be shown publicly on a subscription form.  # noqa: E501

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

        self._name = name

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

        The number of subscribers associated with this interest.  # noqa: E501

        :return: The subscriber_count of this Interest.  # noqa: E501
        :rtype: str
        """
        return self._subscriber_count

    @subscriber_count.setter
    def subscriber_count(self, subscriber_count):
        """Sets the subscriber_count of this Interest.

        The number of subscribers associated with this interest.  # noqa: E501

        :param subscriber_count: The subscriber_count of this Interest.  # noqa: E501
        :type: str
        """

        self._subscriber_count = subscriber_count

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

        The display order for interests.  # noqa: E501

        :return: The display_order of this Interest.  # noqa: E501
        :rtype: int
        """
        return self._display_order

    @display_order.setter
    def display_order(self, display_order):
        """Sets the display_order of this Interest.

        The display order for interests.  # noqa: E501

        :param display_order: The display_order of this Interest.  # noqa: E501
        :type: int
        """

        self._display_order = display_order

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

        A list of link types and descriptions for the API schema documents.  # noqa: E501

        :return: The links of this Interest.  # noqa: E501
        :rtype: list[ResourceLink]
        """
        return self._links

    @links.setter
    def links(self, links):
        """Sets the links of this Interest.

        A list of link types and descriptions for the API schema documents.  # noqa: E501

        :param links: The links of this Interest.  # noqa: E501
        :type: list[ResourceLink]
        """

        self._links = links

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

        return self.__dict__ == other.__dict__

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