# 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 AddressForDescribeWorkspaceEndpointOutput(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_domain': 'str',
        'address_id': 'str',
        'address_port': 'int',
        'address_type': 'str',
        'ip_address': 'str',
        'ipv6_address': 'str'
    }

    attribute_map = {
        'address_domain': 'AddressDomain',
        'address_id': 'AddressId',
        'address_port': 'AddressPort',
        'address_type': 'AddressType',
        'ip_address': 'IPAddress',
        'ipv6_address': 'IPv6Address'
    }

    def __init__(self, address_domain=None, address_id=None, address_port=None, address_type=None, ip_address=None, ipv6_address=None, _configuration=None):  # noqa: E501
        """AddressForDescribeWorkspaceEndpointOutput - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._address_domain = None
        self._address_id = None
        self._address_port = None
        self._address_type = None
        self._ip_address = None
        self._ipv6_address = None
        self.discriminator = None

        if address_domain is not None:
            self.address_domain = address_domain
        if address_id is not None:
            self.address_id = address_id
        if address_port is not None:
            self.address_port = address_port
        if address_type is not None:
            self.address_type = address_type
        if ip_address is not None:
            self.ip_address = ip_address
        if ipv6_address is not None:
            self.ipv6_address = ipv6_address

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


        :return: The address_domain of this AddressForDescribeWorkspaceEndpointOutput.  # noqa: E501
        :rtype: str
        """
        return self._address_domain

    @address_domain.setter
    def address_domain(self, address_domain):
        """Sets the address_domain of this AddressForDescribeWorkspaceEndpointOutput.


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

        self._address_domain = address_domain

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


        :return: The address_id of this AddressForDescribeWorkspaceEndpointOutput.  # noqa: E501
        :rtype: str
        """
        return self._address_id

    @address_id.setter
    def address_id(self, address_id):
        """Sets the address_id of this AddressForDescribeWorkspaceEndpointOutput.


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

        self._address_id = address_id

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


        :return: The address_port of this AddressForDescribeWorkspaceEndpointOutput.  # noqa: E501
        :rtype: int
        """
        return self._address_port

    @address_port.setter
    def address_port(self, address_port):
        """Sets the address_port of this AddressForDescribeWorkspaceEndpointOutput.


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

        self._address_port = address_port

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


        :return: The address_type of this AddressForDescribeWorkspaceEndpointOutput.  # noqa: E501
        :rtype: str
        """
        return self._address_type

    @address_type.setter
    def address_type(self, address_type):
        """Sets the address_type of this AddressForDescribeWorkspaceEndpointOutput.


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

        self._address_type = address_type

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


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

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


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

        self._ip_address = ip_address

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


        :return: The ipv6_address of this AddressForDescribeWorkspaceEndpointOutput.  # noqa: E501
        :rtype: str
        """
        return self._ipv6_address

    @ipv6_address.setter
    def ipv6_address(self, ipv6_address):
        """Sets the ipv6_address of this AddressForDescribeWorkspaceEndpointOutput.


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

        self._ipv6_address = ipv6_address

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

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