# 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 ContactInfoConfigurationForUserProfile(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 = {
        'contact_info': 'ContactInfoNew',
        'availability': 'AvailabilityEnum',
        'custom_fields': 'list[CustomFieldDetailed]',
        'edit': 'bool',
        'manage_privacy': 'bool',
        'max_contact_infos': 'int'
    }

    attribute_map = {
        'contact_info': 'contactInfo',
        'availability': 'availability',
        'custom_fields': 'customFields',
        'edit': 'edit',
        'manage_privacy': 'managePrivacy',
        'max_contact_infos': 'maxContactInfos'
    }

    def __init__(self, contact_info=None, availability=None, custom_fields=None, edit=None, manage_privacy=None, max_contact_infos=None, _configuration=None):  # noqa: E501
        """ContactInfoConfigurationForUserProfile - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._contact_info = None
        self._availability = None
        self._custom_fields = None
        self._edit = None
        self._manage_privacy = None
        self._max_contact_infos = None
        self.discriminator = None

        if contact_info is not None:
            self.contact_info = contact_info
        if availability is not None:
            self.availability = availability
        if custom_fields is not None:
            self.custom_fields = custom_fields
        if edit is not None:
            self.edit = edit
        if manage_privacy is not None:
            self.manage_privacy = manage_privacy
        if max_contact_infos is not None:
            self.max_contact_infos = max_contact_infos

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

        Contains the default values for a new additional contact  # noqa: E501

        :return: The contact_info of this ContactInfoConfigurationForUserProfile.  # noqa: E501
        :rtype: ContactInfoNew
        """
        return self._contact_info

    @contact_info.setter
    def contact_info(self, contact_info):
        """Sets the contact_info of this ContactInfoConfigurationForUserProfile.

        Contains the default values for a new additional contact  # noqa: E501

        :param contact_info: The contact_info of this ContactInfoConfigurationForUserProfile.  # noqa: E501
        :type: ContactInfoNew
        """

        self._contact_info = contact_info

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

        The availability for additional contacts Possible values are: * disabled: The data is disabled * optional: The data is enabled and optional * required: The data is enabled and required   # noqa: E501

        :return: The availability of this ContactInfoConfigurationForUserProfile.  # noqa: E501
        :rtype: AvailabilityEnum
        """
        return self._availability

    @availability.setter
    def availability(self, availability):
        """Sets the availability of this ContactInfoConfigurationForUserProfile.

        The availability for additional contacts Possible values are: * disabled: The data is disabled * optional: The data is enabled and optional * required: The data is enabled and required   # noqa: E501

        :param availability: The availability of this ContactInfoConfigurationForUserProfile.  # noqa: E501
        :type: AvailabilityEnum
        """

        self._availability = availability

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

        The custom fields for additional contact informations  # noqa: E501

        :return: The custom_fields of this ContactInfoConfigurationForUserProfile.  # noqa: E501
        :rtype: list[CustomFieldDetailed]
        """
        return self._custom_fields

    @custom_fields.setter
    def custom_fields(self, custom_fields):
        """Sets the custom_fields of this ContactInfoConfigurationForUserProfile.

        The custom fields for additional contact informations  # noqa: E501

        :param custom_fields: The custom_fields of this ContactInfoConfigurationForUserProfile.  # noqa: E501
        :type: list[CustomFieldDetailed]
        """

        self._custom_fields = custom_fields

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

        Can the authenticated user edit additional contacts?  # noqa: E501

        :return: The edit of this ContactInfoConfigurationForUserProfile.  # noqa: E501
        :rtype: bool
        """
        return self._edit

    @edit.setter
    def edit(self, edit):
        """Sets the edit of this ContactInfoConfigurationForUserProfile.

        Can the authenticated user edit additional contacts?  # noqa: E501

        :param edit: The edit of this ContactInfoConfigurationForUserProfile.  # noqa: E501
        :type: bool
        """

        self._edit = edit

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

        Can the authenticated user manage the privacy of additional contacts?   # noqa: E501

        :return: The manage_privacy of this ContactInfoConfigurationForUserProfile.  # noqa: E501
        :rtype: bool
        """
        return self._manage_privacy

    @manage_privacy.setter
    def manage_privacy(self, manage_privacy):
        """Sets the manage_privacy of this ContactInfoConfigurationForUserProfile.

        Can the authenticated user manage the privacy of additional contacts?   # noqa: E501

        :param manage_privacy: The manage_privacy of this ContactInfoConfigurationForUserProfile.  # noqa: E501
        :type: bool
        """

        self._manage_privacy = manage_privacy

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

        The maximum number of additional contacts the user can own  # noqa: E501

        :return: The max_contact_infos of this ContactInfoConfigurationForUserProfile.  # noqa: E501
        :rtype: int
        """
        return self._max_contact_infos

    @max_contact_infos.setter
    def max_contact_infos(self, max_contact_infos):
        """Sets the max_contact_infos of this ContactInfoConfigurationForUserProfile.

        The maximum number of additional contacts the user can own  # noqa: E501

        :param max_contact_infos: The max_contact_infos of this ContactInfoConfigurationForUserProfile.  # noqa: E501
        :type: int
        """

        self._max_contact_infos = max_contact_infos

    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(ContactInfoConfigurationForUserProfile, 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, ContactInfoConfigurationForUserProfile):
            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, ContactInfoConfigurationForUserProfile):
            return True

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