# coding: utf-8

"""
Copyright 2017 Square, Inc.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
"""


from pprint import pformat
from six import iteritems
import re


class Employee(object):
    """
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    """
    def __init__(self, id=None, first_name=None, last_name=None, email=None, phone_number=None, location_ids=None, status=None, created_at=None, updated_at=None):
        """
        Employee - a model defined in Swagger

        :param dict swaggerTypes: The key is attribute name
                                  and the value is attribute type.
        :param dict attributeMap: The key is attribute name
                                  and the value is json key in definition.
        """
        self.swagger_types = {
            'id': 'str',
            'first_name': 'str',
            'last_name': 'str',
            'email': 'str',
            'phone_number': 'str',
            'location_ids': 'list[str]',
            'status': 'str',
            'created_at': 'str',
            'updated_at': 'str'
        }

        self.attribute_map = {
            'id': 'id',
            'first_name': 'first_name',
            'last_name': 'last_name',
            'email': 'email',
            'phone_number': 'phone_number',
            'location_ids': 'location_ids',
            'status': 'status',
            'created_at': 'created_at',
            'updated_at': 'updated_at'
        }

        self._id = id
        self._first_name = first_name
        self._last_name = last_name
        self._email = email
        self._phone_number = phone_number
        self._location_ids = location_ids
        self._status = status
        self._created_at = created_at
        self._updated_at = updated_at

    @property
    def id(self):
        """
        Gets the id of this Employee.
        UUID for this `Employee`.

        :return: The id of this Employee.
        :rtype: str
        """
        return self._id

    @id.setter
    def id(self, id):
        """
        Sets the id of this Employee.
        UUID for this `Employee`.

        :param id: The id of this Employee.
        :type: str
        """

        self._id = id

    @property
    def first_name(self):
        """
        Gets the first_name of this Employee.
        Given (first) name of the employee.

        :return: The first_name of this Employee.
        :rtype: str
        """
        return self._first_name

    @first_name.setter
    def first_name(self, first_name):
        """
        Sets the first_name of this Employee.
        Given (first) name of the employee.

        :param first_name: The first_name of this Employee.
        :type: str
        """

        self._first_name = first_name

    @property
    def last_name(self):
        """
        Gets the last_name of this Employee.
        Family (last) name of the employee

        :return: The last_name of this Employee.
        :rtype: str
        """
        return self._last_name

    @last_name.setter
    def last_name(self, last_name):
        """
        Sets the last_name of this Employee.
        Family (last) name of the employee

        :param last_name: The last_name of this Employee.
        :type: str
        """

        self._last_name = last_name

    @property
    def email(self):
        """
        Gets the email of this Employee.
        Email of the employee

        :return: The email of this Employee.
        :rtype: str
        """
        return self._email

    @email.setter
    def email(self, email):
        """
        Sets the email of this Employee.
        Email of the employee

        :param email: The email of this Employee.
        :type: str
        """

        self._email = email

    @property
    def phone_number(self):
        """
        Gets the phone_number of this Employee.
        Phone number of the employee in E.164 format, i.e. \"+12125554250\"

        :return: The phone_number of this Employee.
        :rtype: str
        """
        return self._phone_number

    @phone_number.setter
    def phone_number(self, phone_number):
        """
        Sets the phone_number of this Employee.
        Phone number of the employee in E.164 format, i.e. \"+12125554250\"

        :param phone_number: The phone_number of this Employee.
        :type: str
        """

        self._phone_number = phone_number

    @property
    def location_ids(self):
        """
        Gets the location_ids of this Employee.
        A list of location IDs where this employee has access.

        :return: The location_ids of this Employee.
        :rtype: list[str]
        """
        return self._location_ids

    @location_ids.setter
    def location_ids(self, location_ids):
        """
        Sets the location_ids of this Employee.
        A list of location IDs where this employee has access.

        :param location_ids: The location_ids of this Employee.
        :type: list[str]
        """

        self._location_ids = location_ids

    @property
    def status(self):
        """
        Gets the status of this Employee.
        Specifies the status of the employee being fetched. See [EmployeeStatus](#type-employeestatus) for possible values

        :return: The status of this Employee.
        :rtype: str
        """
        return self._status

    @status.setter
    def status(self, status):
        """
        Sets the status of this Employee.
        Specifies the status of the employee being fetched. See [EmployeeStatus](#type-employeestatus) for possible values

        :param status: The status of this Employee.
        :type: str
        """

        self._status = status

    @property
    def created_at(self):
        """
        Gets the created_at of this Employee.
        A read-only timestamp in RFC 3339 format.

        :return: The created_at of this Employee.
        :rtype: str
        """
        return self._created_at

    @created_at.setter
    def created_at(self, created_at):
        """
        Sets the created_at of this Employee.
        A read-only timestamp in RFC 3339 format.

        :param created_at: The created_at of this Employee.
        :type: str
        """

        self._created_at = created_at

    @property
    def updated_at(self):
        """
        Gets the updated_at of this Employee.
        A read-only timestamp in RFC 3339 format.

        :return: The updated_at of this Employee.
        :rtype: str
        """
        return self._updated_at

    @updated_at.setter
    def updated_at(self, updated_at):
        """
        Sets the updated_at of this Employee.
        A read-only timestamp in RFC 3339 format.

        :param updated_at: The updated_at of this Employee.
        :type: str
        """

        self._updated_at = updated_at

    def to_dict(self):
        """
        Returns the model properties as a dict
        """
        result = {}

        for attr, _ in 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 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
        """
        return self.__dict__ == other.__dict__

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