# coding: utf-8

"""
    mcdn

    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 OriginForListCdnDomainsOutput(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 = {
        'address': 'str',
        'host': 'HostForListCdnDomainsOutput',
        'http_port': 'int',
        'https_port': 'int',
        'priority': 'int',
        'type': 'str',
        'weight': 'int'
    }

    attribute_map = {
        'address': 'Address',
        'host': 'Host',
        'http_port': 'HttpPort',
        'https_port': 'HttpsPort',
        'priority': 'Priority',
        'type': 'Type',
        'weight': 'Weight'
    }

    def __init__(self, address=None, host=None, http_port=None, https_port=None, priority=None, type=None, weight=None, _configuration=None):  # noqa: E501
        """OriginForListCdnDomainsOutput - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._address = None
        self._host = None
        self._http_port = None
        self._https_port = None
        self._priority = None
        self._type = None
        self._weight = None
        self.discriminator = None

        if address is not None:
            self.address = address
        if host is not None:
            self.host = host
        if http_port is not None:
            self.http_port = http_port
        if https_port is not None:
            self.https_port = https_port
        if priority is not None:
            self.priority = priority
        if type is not None:
            self.type = type
        if weight is not None:
            self.weight = weight

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


        :return: The address of this OriginForListCdnDomainsOutput.  # noqa: E501
        :rtype: str
        """
        return self._address

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


        :param address: The address of this OriginForListCdnDomainsOutput.  # noqa: E501
        :type: str
        """

        self._address = address

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


        :return: The host of this OriginForListCdnDomainsOutput.  # noqa: E501
        :rtype: HostForListCdnDomainsOutput
        """
        return self._host

    @host.setter
    def host(self, host):
        """Sets the host of this OriginForListCdnDomainsOutput.


        :param host: The host of this OriginForListCdnDomainsOutput.  # noqa: E501
        :type: HostForListCdnDomainsOutput
        """

        self._host = host

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


        :return: The http_port of this OriginForListCdnDomainsOutput.  # noqa: E501
        :rtype: int
        """
        return self._http_port

    @http_port.setter
    def http_port(self, http_port):
        """Sets the http_port of this OriginForListCdnDomainsOutput.


        :param http_port: The http_port of this OriginForListCdnDomainsOutput.  # noqa: E501
        :type: int
        """

        self._http_port = http_port

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


        :return: The https_port of this OriginForListCdnDomainsOutput.  # noqa: E501
        :rtype: int
        """
        return self._https_port

    @https_port.setter
    def https_port(self, https_port):
        """Sets the https_port of this OriginForListCdnDomainsOutput.


        :param https_port: The https_port of this OriginForListCdnDomainsOutput.  # noqa: E501
        :type: int
        """

        self._https_port = https_port

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


        :return: The priority of this OriginForListCdnDomainsOutput.  # noqa: E501
        :rtype: int
        """
        return self._priority

    @priority.setter
    def priority(self, priority):
        """Sets the priority of this OriginForListCdnDomainsOutput.


        :param priority: The priority of this OriginForListCdnDomainsOutput.  # noqa: E501
        :type: int
        """

        self._priority = priority

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


        :return: The type of this OriginForListCdnDomainsOutput.  # noqa: E501
        :rtype: str
        """
        return self._type

    @type.setter
    def type(self, type):
        """Sets the type of this OriginForListCdnDomainsOutput.


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

        self._type = type

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


        :return: The weight of this OriginForListCdnDomainsOutput.  # noqa: E501
        :rtype: int
        """
        return self._weight

    @weight.setter
    def weight(self, weight):
        """Sets the weight of this OriginForListCdnDomainsOutput.


        :param weight: The weight of this OriginForListCdnDomainsOutput.  # noqa: E501
        :type: int
        """

        self._weight = weight

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

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