# coding: utf-8

"""
    CRM Calling Extensions

    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E501

    The version of the OpenAPI document: v3
    Generated by: https://openapi-generator.tech
"""


try:
    from inspect import getfullargspec
except ImportError:
    from inspect import getargspec as getfullargspec
import pprint
import re  # noqa: F401
import six

from hubspot.crm.extensions.calling.configuration import Configuration


class ChannelConnectionSettingsResponse(object):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """

    """
    Attributes:
      openapi_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.
    """
    openapi_types = {"created_at": "datetime", "is_ready": "bool", "url": "str", "updated_at": "datetime"}

    attribute_map = {"created_at": "createdAt", "is_ready": "isReady", "url": "url", "updated_at": "updatedAt"}

    def __init__(self, created_at=None, is_ready=None, url=None, updated_at=None, local_vars_configuration=None):  # noqa: E501
        """ChannelConnectionSettingsResponse - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration.get_default_copy()
        self.local_vars_configuration = local_vars_configuration

        self._created_at = None
        self._is_ready = None
        self._url = None
        self._updated_at = None
        self.discriminator = None

        self.created_at = created_at
        self.is_ready = is_ready
        self.url = url
        self.updated_at = updated_at

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

        The timestamp this setting was created  # noqa: E501

        :return: The created_at of this ChannelConnectionSettingsResponse.  # noqa: E501
        :rtype: datetime
        """
        return self._created_at

    @created_at.setter
    def created_at(self, created_at):
        """Sets the created_at of this ChannelConnectionSettingsResponse.

        The timestamp this setting was created  # noqa: E501

        :param created_at: The created_at of this ChannelConnectionSettingsResponse.  # noqa: E501
        :type created_at: datetime
        """
        if self.local_vars_configuration.client_side_validation and created_at is None:  # noqa: E501
            raise ValueError("Invalid value for `created_at`, must not be `None`")  # noqa: E501

        self._created_at = created_at

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

        If true, this app will be considered to support channel connection  # noqa: E501

        :return: The is_ready of this ChannelConnectionSettingsResponse.  # noqa: E501
        :rtype: bool
        """
        return self._is_ready

    @is_ready.setter
    def is_ready(self, is_ready):
        """Sets the is_ready of this ChannelConnectionSettingsResponse.

        If true, this app will be considered to support channel connection  # noqa: E501

        :param is_ready: The is_ready of this ChannelConnectionSettingsResponse.  # noqa: E501
        :type is_ready: bool
        """
        if self.local_vars_configuration.client_side_validation and is_ready is None:  # noqa: E501
            raise ValueError("Invalid value for `is_ready`, must not be `None`")  # noqa: E501

        self._is_ready = is_ready

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

        The URL to fetch phone numbers available for channel connection  # noqa: E501

        :return: The url of this ChannelConnectionSettingsResponse.  # noqa: E501
        :rtype: str
        """
        return self._url

    @url.setter
    def url(self, url):
        """Sets the url of this ChannelConnectionSettingsResponse.

        The URL to fetch phone numbers available for channel connection  # noqa: E501

        :param url: The url of this ChannelConnectionSettingsResponse.  # noqa: E501
        :type url: str
        """
        if self.local_vars_configuration.client_side_validation and url is None:  # noqa: E501
            raise ValueError("Invalid value for `url`, must not be `None`")  # noqa: E501

        self._url = url

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

        The timestamp this setting was last updated  # noqa: E501

        :return: The updated_at of this ChannelConnectionSettingsResponse.  # noqa: E501
        :rtype: datetime
        """
        return self._updated_at

    @updated_at.setter
    def updated_at(self, updated_at):
        """Sets the updated_at of this ChannelConnectionSettingsResponse.

        The timestamp this setting was last updated  # noqa: E501

        :param updated_at: The updated_at of this ChannelConnectionSettingsResponse.  # noqa: E501
        :type updated_at: datetime
        """
        if self.local_vars_configuration.client_side_validation and updated_at is None:  # noqa: E501
            raise ValueError("Invalid value for `updated_at`, must not be `None`")  # noqa: E501

        self._updated_at = updated_at

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

        def convert(x):
            if hasattr(x, "to_dict"):
                args = getfullargspec(x.to_dict).args
                if len(args) == 1:
                    return x.to_dict()
                else:
                    return x.to_dict(serialize)
            else:
                return x

        for attr, _ in six.iteritems(self.openapi_types):
            value = getattr(self, attr)
            attr = self.attribute_map.get(attr, attr) if serialize else attr
            if isinstance(value, list):
                result[attr] = list(map(lambda x: convert(x), value))
            elif isinstance(value, dict):
                result[attr] = dict(map(lambda item: (item[0], convert(item[1])), value.items()))
            else:
                result[attr] = convert(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, ChannelConnectionSettingsResponse):
            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, ChannelConnectionSettingsResponse):
            return True

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