# coding: utf-8

"""
    rds_mysql_v2

    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 DescribeAllowListsRequest(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 = {
        'ip_address': 'str',
        'instance_id': 'str',
        'project_name': 'str',
        'query_default': 'bool',
        'region_id': 'str',
        'with_ip_list': 'bool'
    }

    attribute_map = {
        'ip_address': 'IPAddress',
        'instance_id': 'InstanceId',
        'project_name': 'ProjectName',
        'query_default': 'QueryDefault',
        'region_id': 'RegionId',
        'with_ip_list': 'WithIpList'
    }

    def __init__(self, ip_address=None, instance_id=None, project_name=None, query_default=None, region_id=None, with_ip_list=None, _configuration=None):  # noqa: E501
        """DescribeAllowListsRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._ip_address = None
        self._instance_id = None
        self._project_name = None
        self._query_default = None
        self._region_id = None
        self._with_ip_list = None
        self.discriminator = None

        if ip_address is not None:
            self.ip_address = ip_address
        if instance_id is not None:
            self.instance_id = instance_id
        if project_name is not None:
            self.project_name = project_name
        if query_default is not None:
            self.query_default = query_default
        if region_id is not None:
            self.region_id = region_id
        if with_ip_list is not None:
            self.with_ip_list = with_ip_list

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


        :return: The ip_address of this DescribeAllowListsRequest.  # noqa: E501
        :rtype: str
        """
        return self._ip_address

    @ip_address.setter
    def ip_address(self, ip_address):
        """Sets the ip_address of this DescribeAllowListsRequest.


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

        self._ip_address = ip_address

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


        :return: The instance_id of this DescribeAllowListsRequest.  # noqa: E501
        :rtype: str
        """
        return self._instance_id

    @instance_id.setter
    def instance_id(self, instance_id):
        """Sets the instance_id of this DescribeAllowListsRequest.


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

        self._instance_id = instance_id

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


        :return: The project_name of this DescribeAllowListsRequest.  # noqa: E501
        :rtype: str
        """
        return self._project_name

    @project_name.setter
    def project_name(self, project_name):
        """Sets the project_name of this DescribeAllowListsRequest.


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

        self._project_name = project_name

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


        :return: The query_default of this DescribeAllowListsRequest.  # noqa: E501
        :rtype: bool
        """
        return self._query_default

    @query_default.setter
    def query_default(self, query_default):
        """Sets the query_default of this DescribeAllowListsRequest.


        :param query_default: The query_default of this DescribeAllowListsRequest.  # noqa: E501
        :type: bool
        """

        self._query_default = query_default

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


        :return: The region_id of this DescribeAllowListsRequest.  # noqa: E501
        :rtype: str
        """
        return self._region_id

    @region_id.setter
    def region_id(self, region_id):
        """Sets the region_id of this DescribeAllowListsRequest.


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

        self._region_id = region_id

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


        :return: The with_ip_list of this DescribeAllowListsRequest.  # noqa: E501
        :rtype: bool
        """
        return self._with_ip_list

    @with_ip_list.setter
    def with_ip_list(self, with_ip_list):
        """Sets the with_ip_list of this DescribeAllowListsRequest.


        :param with_ip_list: The with_ip_list of this DescribeAllowListsRequest.  # noqa: E501
        :type: bool
        """

        self._with_ip_list = with_ip_list

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

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