# coding: utf-8

"""
    acep

    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 DetailDNSRuleResponse(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 = {
        'create_at': 'int',
        'dnsid': 'str',
        'dns_name': 'str',
        'dc': 'str',
        'ip_list': 'list[IPListForDetailDNSRuleOutput]',
        'product_id': 'str',
        'type': 'int',
        'update_at': 'int'
    }

    attribute_map = {
        'create_at': 'CreateAt',
        'dnsid': 'DNSId',
        'dns_name': 'DNSName',
        'dc': 'Dc',
        'ip_list': 'IPList',
        'product_id': 'ProductId',
        'type': 'Type',
        'update_at': 'UpdateAt'
    }

    def __init__(self, create_at=None, dnsid=None, dns_name=None, dc=None, ip_list=None, product_id=None, type=None, update_at=None, _configuration=None):  # noqa: E501
        """DetailDNSRuleResponse - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._create_at = None
        self._dnsid = None
        self._dns_name = None
        self._dc = None
        self._ip_list = None
        self._product_id = None
        self._type = None
        self._update_at = None
        self.discriminator = None

        if create_at is not None:
            self.create_at = create_at
        if dnsid is not None:
            self.dnsid = dnsid
        if dns_name is not None:
            self.dns_name = dns_name
        if dc is not None:
            self.dc = dc
        if ip_list is not None:
            self.ip_list = ip_list
        if product_id is not None:
            self.product_id = product_id
        if type is not None:
            self.type = type
        if update_at is not None:
            self.update_at = update_at

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


        :return: The create_at of this DetailDNSRuleResponse.  # noqa: E501
        :rtype: int
        """
        return self._create_at

    @create_at.setter
    def create_at(self, create_at):
        """Sets the create_at of this DetailDNSRuleResponse.


        :param create_at: The create_at of this DetailDNSRuleResponse.  # noqa: E501
        :type: int
        """

        self._create_at = create_at

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


        :return: The dnsid of this DetailDNSRuleResponse.  # noqa: E501
        :rtype: str
        """
        return self._dnsid

    @dnsid.setter
    def dnsid(self, dnsid):
        """Sets the dnsid of this DetailDNSRuleResponse.


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

        self._dnsid = dnsid

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


        :return: The dns_name of this DetailDNSRuleResponse.  # noqa: E501
        :rtype: str
        """
        return self._dns_name

    @dns_name.setter
    def dns_name(self, dns_name):
        """Sets the dns_name of this DetailDNSRuleResponse.


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

        self._dns_name = dns_name

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


        :return: The dc of this DetailDNSRuleResponse.  # noqa: E501
        :rtype: str
        """
        return self._dc

    @dc.setter
    def dc(self, dc):
        """Sets the dc of this DetailDNSRuleResponse.


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

        self._dc = dc

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


        :return: The ip_list of this DetailDNSRuleResponse.  # noqa: E501
        :rtype: list[IPListForDetailDNSRuleOutput]
        """
        return self._ip_list

    @ip_list.setter
    def ip_list(self, ip_list):
        """Sets the ip_list of this DetailDNSRuleResponse.


        :param ip_list: The ip_list of this DetailDNSRuleResponse.  # noqa: E501
        :type: list[IPListForDetailDNSRuleOutput]
        """

        self._ip_list = ip_list

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


        :return: The product_id of this DetailDNSRuleResponse.  # noqa: E501
        :rtype: str
        """
        return self._product_id

    @product_id.setter
    def product_id(self, product_id):
        """Sets the product_id of this DetailDNSRuleResponse.


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

        self._product_id = product_id

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


        :return: The type of this DetailDNSRuleResponse.  # noqa: E501
        :rtype: int
        """
        return self._type

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


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

        self._type = type

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


        :return: The update_at of this DetailDNSRuleResponse.  # noqa: E501
        :rtype: int
        """
        return self._update_at

    @update_at.setter
    def update_at(self, update_at):
        """Sets the update_at of this DetailDNSRuleResponse.


        :param update_at: The update_at of this DetailDNSRuleResponse.  # noqa: E501
        :type: int
        """

        self._update_at = update_at

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

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