# coding: utf-8

"""
    vei_api

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

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


import pprint
import re  # noqa: F401

import six

from volcenginesdkcore.configuration import Configuration


class ChannelInfoForUpdateChannelInput(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 = {
        'api_key': 'str',
        'auth_type': 'int',
        'models': 'list[ModelForUpdateChannelInput]',
        'name': 'str',
        'provider': 'str',
        'proxy': 'ProxyForUpdateChannelInput'
    }

    attribute_map = {
        'api_key': 'api_key',
        'auth_type': 'auth_type',
        'models': 'models',
        'name': 'name',
        'provider': 'provider',
        'proxy': 'proxy'
    }

    def __init__(self, api_key=None, auth_type=None, models=None, name=None, provider=None, proxy=None, _configuration=None):  # noqa: E501
        """ChannelInfoForUpdateChannelInput - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._api_key = None
        self._auth_type = None
        self._models = None
        self._name = None
        self._provider = None
        self._proxy = None
        self.discriminator = None

        if api_key is not None:
            self.api_key = api_key
        if auth_type is not None:
            self.auth_type = auth_type
        if models is not None:
            self.models = models
        if name is not None:
            self.name = name
        if provider is not None:
            self.provider = provider
        if proxy is not None:
            self.proxy = proxy

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


        :return: The api_key of this ChannelInfoForUpdateChannelInput.  # noqa: E501
        :rtype: str
        """
        return self._api_key

    @api_key.setter
    def api_key(self, api_key):
        """Sets the api_key of this ChannelInfoForUpdateChannelInput.


        :param api_key: The api_key of this ChannelInfoForUpdateChannelInput.  # noqa: E501
        :type: str
        """

        self._api_key = api_key

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


        :return: The auth_type of this ChannelInfoForUpdateChannelInput.  # noqa: E501
        :rtype: int
        """
        return self._auth_type

    @auth_type.setter
    def auth_type(self, auth_type):
        """Sets the auth_type of this ChannelInfoForUpdateChannelInput.


        :param auth_type: The auth_type of this ChannelInfoForUpdateChannelInput.  # noqa: E501
        :type: int
        """

        self._auth_type = auth_type

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


        :return: The models of this ChannelInfoForUpdateChannelInput.  # noqa: E501
        :rtype: list[ModelForUpdateChannelInput]
        """
        return self._models

    @models.setter
    def models(self, models):
        """Sets the models of this ChannelInfoForUpdateChannelInput.


        :param models: The models of this ChannelInfoForUpdateChannelInput.  # noqa: E501
        :type: list[ModelForUpdateChannelInput]
        """

        self._models = models

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


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

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


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

        self._name = name

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


        :return: The provider of this ChannelInfoForUpdateChannelInput.  # noqa: E501
        :rtype: str
        """
        return self._provider

    @provider.setter
    def provider(self, provider):
        """Sets the provider of this ChannelInfoForUpdateChannelInput.


        :param provider: The provider of this ChannelInfoForUpdateChannelInput.  # noqa: E501
        :type: str
        """

        self._provider = provider

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


        :return: The proxy of this ChannelInfoForUpdateChannelInput.  # noqa: E501
        :rtype: ProxyForUpdateChannelInput
        """
        return self._proxy

    @proxy.setter
    def proxy(self, proxy):
        """Sets the proxy of this ChannelInfoForUpdateChannelInput.


        :param proxy: The proxy of this ChannelInfoForUpdateChannelInput.  # noqa: E501
        :type: ProxyForUpdateChannelInput
        """

        self._proxy = proxy

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

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