# coding: utf-8

"""
    Cyclos 4.11.5 API

    The REST API for Cyclos 4.11.5  # noqa: E501

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


import pprint
import re  # noqa: F401

import six

from swagger_client.configuration import Configuration


class ContactInfo(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 = {
        'email': 'str',
        'mobile_phone': 'str',
        'land_line_phone': 'str',
        'land_line_extension': 'str',
        'normalized_mobile_phone': 'str',
        'normalized_land_line_phone': 'str',
        'address': 'Address',
        'image': 'Image'
    }

    attribute_map = {
        'email': 'email',
        'mobile_phone': 'mobilePhone',
        'land_line_phone': 'landLinePhone',
        'land_line_extension': 'landLineExtension',
        'normalized_mobile_phone': 'normalizedMobilePhone',
        'normalized_land_line_phone': 'normalizedLandLinePhone',
        'address': 'address',
        'image': 'image'
    }

    def __init__(self, email=None, mobile_phone=None, land_line_phone=None, land_line_extension=None, normalized_mobile_phone=None, normalized_land_line_phone=None, address=None, image=None, _configuration=None):  # noqa: E501
        """ContactInfo - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._email = None
        self._mobile_phone = None
        self._land_line_phone = None
        self._land_line_extension = None
        self._normalized_mobile_phone = None
        self._normalized_land_line_phone = None
        self._address = None
        self._image = None
        self.discriminator = None

        if email is not None:
            self.email = email
        if mobile_phone is not None:
            self.mobile_phone = mobile_phone
        if land_line_phone is not None:
            self.land_line_phone = land_line_phone
        if land_line_extension is not None:
            self.land_line_extension = land_line_extension
        if normalized_mobile_phone is not None:
            self.normalized_mobile_phone = normalized_mobile_phone
        if normalized_land_line_phone is not None:
            self.normalized_land_line_phone = normalized_land_line_phone
        if address is not None:
            self.address = address
        if image is not None:
            self.image = image

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

        The e-mail for this additional contact information  # noqa: E501

        :return: The email of this ContactInfo.  # noqa: E501
        :rtype: str
        """
        return self._email

    @email.setter
    def email(self, email):
        """Sets the email of this ContactInfo.

        The e-mail for this additional contact information  # noqa: E501

        :param email: The email of this ContactInfo.  # noqa: E501
        :type: str
        """

        self._email = email

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

        The formatted mobile phone for this additional contact information   # noqa: E501

        :return: The mobile_phone of this ContactInfo.  # noqa: E501
        :rtype: str
        """
        return self._mobile_phone

    @mobile_phone.setter
    def mobile_phone(self, mobile_phone):
        """Sets the mobile_phone of this ContactInfo.

        The formatted mobile phone for this additional contact information   # noqa: E501

        :param mobile_phone: The mobile_phone of this ContactInfo.  # noqa: E501
        :type: str
        """

        self._mobile_phone = mobile_phone

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

        The formatted landline phone for this additional contact information   # noqa: E501

        :return: The land_line_phone of this ContactInfo.  # noqa: E501
        :rtype: str
        """
        return self._land_line_phone

    @land_line_phone.setter
    def land_line_phone(self, land_line_phone):
        """Sets the land_line_phone of this ContactInfo.

        The formatted landline phone for this additional contact information   # noqa: E501

        :param land_line_phone: The land_line_phone of this ContactInfo.  # noqa: E501
        :type: str
        """

        self._land_line_phone = land_line_phone

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

        The landline phone extension for this additional contact information   # noqa: E501

        :return: The land_line_extension of this ContactInfo.  # noqa: E501
        :rtype: str
        """
        return self._land_line_extension

    @land_line_extension.setter
    def land_line_extension(self, land_line_extension):
        """Sets the land_line_extension of this ContactInfo.

        The landline phone extension for this additional contact information   # noqa: E501

        :param land_line_extension: The land_line_extension of this ContactInfo.  # noqa: E501
        :type: str
        """

        self._land_line_extension = land_line_extension

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

        The mobile phone, normalized to the E.164 format   # noqa: E501

        :return: The normalized_mobile_phone of this ContactInfo.  # noqa: E501
        :rtype: str
        """
        return self._normalized_mobile_phone

    @normalized_mobile_phone.setter
    def normalized_mobile_phone(self, normalized_mobile_phone):
        """Sets the normalized_mobile_phone of this ContactInfo.

        The mobile phone, normalized to the E.164 format   # noqa: E501

        :param normalized_mobile_phone: The normalized_mobile_phone of this ContactInfo.  # noqa: E501
        :type: str
        """

        self._normalized_mobile_phone = normalized_mobile_phone

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

        The land-line phone, normalized to the E.164 format   # noqa: E501

        :return: The normalized_land_line_phone of this ContactInfo.  # noqa: E501
        :rtype: str
        """
        return self._normalized_land_line_phone

    @normalized_land_line_phone.setter
    def normalized_land_line_phone(self, normalized_land_line_phone):
        """Sets the normalized_land_line_phone of this ContactInfo.

        The land-line phone, normalized to the E.164 format   # noqa: E501

        :param normalized_land_line_phone: The normalized_land_line_phone of this ContactInfo.  # noqa: E501
        :type: str
        """

        self._normalized_land_line_phone = normalized_land_line_phone

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

        The address for this additional contact information  # noqa: E501

        :return: The address of this ContactInfo.  # noqa: E501
        :rtype: Address
        """
        return self._address

    @address.setter
    def address(self, address):
        """Sets the address of this ContactInfo.

        The address for this additional contact information  # noqa: E501

        :param address: The address of this ContactInfo.  # noqa: E501
        :type: Address
        """

        self._address = address

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

        The image for this additional contact information  # noqa: E501

        :return: The image of this ContactInfo.  # noqa: E501
        :rtype: Image
        """
        return self._image

    @image.setter
    def image(self, image):
        """Sets the image of this ContactInfo.

        The image for this additional contact information  # noqa: E501

        :param image: The image of this ContactInfo.  # noqa: E501
        :type: Image
        """

        self._image = image

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

        return self.to_dict() == other.to_dict()

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

        return self.to_dict() != other.to_dict()
