# coding: utf-8

"""
    Emby Server API

    Explore the Emby Server API  # noqa: E501

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

import pprint
import re  # noqa: F401

import six

class SmartPlaylistContractsSmartPlaylistLimitDto(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 = {
        'has_limit': 'bool',
        'max_items': 'int',
        'order_by': 'str'
    }

    attribute_map = {
        'has_limit': 'HasLimit',
        'max_items': 'MaxItems',
        'order_by': 'OrderBy'
    }

    def __init__(self, has_limit=None, max_items=None, order_by=None):  # noqa: E501
        """SmartPlaylistContractsSmartPlaylistLimitDto - a model defined in Swagger"""  # noqa: E501
        self._has_limit = None
        self._max_items = None
        self._order_by = None
        self.discriminator = None
        if has_limit is not None:
            self.has_limit = has_limit
        if max_items is not None:
            self.max_items = max_items
        if order_by is not None:
            self.order_by = order_by

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


        :return: The has_limit of this SmartPlaylistContractsSmartPlaylistLimitDto.  # noqa: E501
        :rtype: bool
        """
        return self._has_limit

    @has_limit.setter
    def has_limit(self, has_limit):
        """Sets the has_limit of this SmartPlaylistContractsSmartPlaylistLimitDto.


        :param has_limit: The has_limit of this SmartPlaylistContractsSmartPlaylistLimitDto.  # noqa: E501
        :type: bool
        """

        self._has_limit = has_limit

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


        :return: The max_items of this SmartPlaylistContractsSmartPlaylistLimitDto.  # noqa: E501
        :rtype: int
        """
        return self._max_items

    @max_items.setter
    def max_items(self, max_items):
        """Sets the max_items of this SmartPlaylistContractsSmartPlaylistLimitDto.


        :param max_items: The max_items of this SmartPlaylistContractsSmartPlaylistLimitDto.  # noqa: E501
        :type: int
        """

        self._max_items = max_items

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


        :return: The order_by of this SmartPlaylistContractsSmartPlaylistLimitDto.  # noqa: E501
        :rtype: str
        """
        return self._order_by

    @order_by.setter
    def order_by(self, order_by):
        """Sets the order_by of this SmartPlaylistContractsSmartPlaylistLimitDto.


        :param order_by: The order_by of this SmartPlaylistContractsSmartPlaylistLimitDto.  # noqa: E501
        :type: str
        """

        self._order_by = order_by

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

        return self.__dict__ == other.__dict__

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