# coding: utf-8

"""
    Mauve Admin API

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

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

import pprint
import re  # noqa: F401

import six

class CourierServiceSlot(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 = {
        '_date': 'str',
        'start_time': 'str',
        'end_time': 'str',
        'name': 'str',
        'name_internal': 'str'
    }

    attribute_map = {
        '_date': 'date',
        'start_time': 'startTime',
        'end_time': 'endTime',
        'name': 'name',
        'name_internal': 'nameInternal'
    }

    def __init__(self, _date=None, start_time=None, end_time=None, name=None, name_internal=None):  # noqa: E501
        """CourierServiceSlot - a model defined in Swagger"""  # noqa: E501
        self.__date = None
        self._start_time = None
        self._end_time = None
        self._name = None
        self._name_internal = None
        self.discriminator = None
        if _date is not None:
            self._date = _date
        if start_time is not None:
            self.start_time = start_time
        if end_time is not None:
            self.end_time = end_time
        if name is not None:
            self.name = name
        if name_internal is not None:
            self.name_internal = name_internal

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

        Date of the delivery trip (format yyyy:mm:dd)  # noqa: E501

        :return: The _date of this CourierServiceSlot.  # noqa: E501
        :rtype: str
        """
        return self.__date

    @_date.setter
    def _date(self, _date):
        """Sets the _date of this CourierServiceSlot.

        Date of the delivery trip (format yyyy:mm:dd)  # noqa: E501

        :param _date: The _date of this CourierServiceSlot.  # noqa: E501
        :type: str
        """

        self.__date = _date

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

        Start time of the delivery trip (format hh:mm:ss)  # noqa: E501

        :return: The start_time of this CourierServiceSlot.  # noqa: E501
        :rtype: str
        """
        return self._start_time

    @start_time.setter
    def start_time(self, start_time):
        """Sets the start_time of this CourierServiceSlot.

        Start time of the delivery trip (format hh:mm:ss)  # noqa: E501

        :param start_time: The start_time of this CourierServiceSlot.  # noqa: E501
        :type: str
        """

        self._start_time = start_time

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

        Start time of the delivery trip (format hh:mm:ss)  # noqa: E501

        :return: The end_time of this CourierServiceSlot.  # noqa: E501
        :rtype: str
        """
        return self._end_time

    @end_time.setter
    def end_time(self, end_time):
        """Sets the end_time of this CourierServiceSlot.

        Start time of the delivery trip (format hh:mm:ss)  # noqa: E501

        :param end_time: The end_time of this CourierServiceSlot.  # noqa: E501
        :type: str
        """

        self._end_time = end_time

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

        Name of the courier service slot  # noqa: E501

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

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

        Name of the courier service slot  # noqa: E501

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

        self._name = name

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

        Internal name of the courier service slot  # noqa: E501

        :return: The name_internal of this CourierServiceSlot.  # noqa: E501
        :rtype: str
        """
        return self._name_internal

    @name_internal.setter
    def name_internal(self, name_internal):
        """Sets the name_internal of this CourierServiceSlot.

        Internal name of the courier service slot  # noqa: E501

        :param name_internal: The name_internal of this CourierServiceSlot.  # noqa: E501
        :type: str
        """

        self._name_internal = name_internal

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

        return self.__dict__ == other.__dict__

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