# coding: utf-8

"""
    aidap

    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 DescribeDBAccountConnectionResponse(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 = {
        'account_name': 'str',
        'account_password': 'str',
        'allow_host': 'str',
        'branch_id': 'str',
        'compute_id': 'str',
        'connection_examples': 'list[ConnectionExampleForDescribeDBAccountConnectionOutput]',
        'connection_url': 'str',
        'database_name': 'str',
        'workspace_id': 'str'
    }

    attribute_map = {
        'account_name': 'AccountName',
        'account_password': 'AccountPassword',
        'allow_host': 'AllowHost',
        'branch_id': 'BranchId',
        'compute_id': 'ComputeId',
        'connection_examples': 'ConnectionExamples',
        'connection_url': 'ConnectionUrl',
        'database_name': 'DatabaseName',
        'workspace_id': 'WorkspaceId'
    }

    def __init__(self, account_name=None, account_password=None, allow_host=None, branch_id=None, compute_id=None, connection_examples=None, connection_url=None, database_name=None, workspace_id=None, _configuration=None):  # noqa: E501
        """DescribeDBAccountConnectionResponse - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._account_name = None
        self._account_password = None
        self._allow_host = None
        self._branch_id = None
        self._compute_id = None
        self._connection_examples = None
        self._connection_url = None
        self._database_name = None
        self._workspace_id = None
        self.discriminator = None

        if account_name is not None:
            self.account_name = account_name
        if account_password is not None:
            self.account_password = account_password
        if allow_host is not None:
            self.allow_host = allow_host
        if branch_id is not None:
            self.branch_id = branch_id
        if compute_id is not None:
            self.compute_id = compute_id
        if connection_examples is not None:
            self.connection_examples = connection_examples
        if connection_url is not None:
            self.connection_url = connection_url
        if database_name is not None:
            self.database_name = database_name
        if workspace_id is not None:
            self.workspace_id = workspace_id

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


        :return: The account_name of this DescribeDBAccountConnectionResponse.  # noqa: E501
        :rtype: str
        """
        return self._account_name

    @account_name.setter
    def account_name(self, account_name):
        """Sets the account_name of this DescribeDBAccountConnectionResponse.


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

        self._account_name = account_name

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


        :return: The account_password of this DescribeDBAccountConnectionResponse.  # noqa: E501
        :rtype: str
        """
        return self._account_password

    @account_password.setter
    def account_password(self, account_password):
        """Sets the account_password of this DescribeDBAccountConnectionResponse.


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

        self._account_password = account_password

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


        :return: The allow_host of this DescribeDBAccountConnectionResponse.  # noqa: E501
        :rtype: str
        """
        return self._allow_host

    @allow_host.setter
    def allow_host(self, allow_host):
        """Sets the allow_host of this DescribeDBAccountConnectionResponse.


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

        self._allow_host = allow_host

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


        :return: The branch_id of this DescribeDBAccountConnectionResponse.  # noqa: E501
        :rtype: str
        """
        return self._branch_id

    @branch_id.setter
    def branch_id(self, branch_id):
        """Sets the branch_id of this DescribeDBAccountConnectionResponse.


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

        self._branch_id = branch_id

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


        :return: The compute_id of this DescribeDBAccountConnectionResponse.  # noqa: E501
        :rtype: str
        """
        return self._compute_id

    @compute_id.setter
    def compute_id(self, compute_id):
        """Sets the compute_id of this DescribeDBAccountConnectionResponse.


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

        self._compute_id = compute_id

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


        :return: The connection_examples of this DescribeDBAccountConnectionResponse.  # noqa: E501
        :rtype: list[ConnectionExampleForDescribeDBAccountConnectionOutput]
        """
        return self._connection_examples

    @connection_examples.setter
    def connection_examples(self, connection_examples):
        """Sets the connection_examples of this DescribeDBAccountConnectionResponse.


        :param connection_examples: The connection_examples of this DescribeDBAccountConnectionResponse.  # noqa: E501
        :type: list[ConnectionExampleForDescribeDBAccountConnectionOutput]
        """

        self._connection_examples = connection_examples

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


        :return: The connection_url of this DescribeDBAccountConnectionResponse.  # noqa: E501
        :rtype: str
        """
        return self._connection_url

    @connection_url.setter
    def connection_url(self, connection_url):
        """Sets the connection_url of this DescribeDBAccountConnectionResponse.


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

        self._connection_url = connection_url

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


        :return: The database_name of this DescribeDBAccountConnectionResponse.  # noqa: E501
        :rtype: str
        """
        return self._database_name

    @database_name.setter
    def database_name(self, database_name):
        """Sets the database_name of this DescribeDBAccountConnectionResponse.


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

        self._database_name = database_name

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


        :return: The workspace_id of this DescribeDBAccountConnectionResponse.  # noqa: E501
        :rtype: str
        """
        return self._workspace_id

    @workspace_id.setter
    def workspace_id(self, workspace_id):
        """Sets the workspace_id of this DescribeDBAccountConnectionResponse.


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

        self._workspace_id = workspace_id

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

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