# coding: utf-8

"""
    gtm

    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 GetProbeResponse(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 = {
        'advised_node_count': 'int',
        'disable': 'bool',
        'dns_record_type': 'str',
        'failed_count': 'int',
        'host': 'str',
        'http_header': 'HttpHeaderForGetProbeOutput',
        'http_method': 'str',
        'http_usability_codes': 'list[HttpUsabilityCodeForGetProbeOutput]',
        'interval': 'int',
        'is_manual_nodes': 'bool',
        'nodes': 'list[str]',
        'ping_count': 'int',
        'ping_loss_percent': 'int',
        'port': 'int',
        'protocol': 'str',
        'tcp_conn_timeout': 'int',
        'timeout': 'int',
        'url': 'str'
    }

    attribute_map = {
        'advised_node_count': 'AdvisedNodeCount',
        'disable': 'Disable',
        'dns_record_type': 'DnsRecordType',
        'failed_count': 'FailedCount',
        'host': 'Host',
        'http_header': 'HttpHeader',
        'http_method': 'HttpMethod',
        'http_usability_codes': 'HttpUsabilityCodes',
        'interval': 'Interval',
        'is_manual_nodes': 'IsManualNodes',
        'nodes': 'Nodes',
        'ping_count': 'PingCount',
        'ping_loss_percent': 'PingLossPercent',
        'port': 'Port',
        'protocol': 'Protocol',
        'tcp_conn_timeout': 'TcpConnTimeout',
        'timeout': 'Timeout',
        'url': 'Url'
    }

    def __init__(self, advised_node_count=None, disable=None, dns_record_type=None, failed_count=None, host=None, http_header=None, http_method=None, http_usability_codes=None, interval=None, is_manual_nodes=None, nodes=None, ping_count=None, ping_loss_percent=None, port=None, protocol=None, tcp_conn_timeout=None, timeout=None, url=None, _configuration=None):  # noqa: E501
        """GetProbeResponse - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._advised_node_count = None
        self._disable = None
        self._dns_record_type = None
        self._failed_count = None
        self._host = None
        self._http_header = None
        self._http_method = None
        self._http_usability_codes = None
        self._interval = None
        self._is_manual_nodes = None
        self._nodes = None
        self._ping_count = None
        self._ping_loss_percent = None
        self._port = None
        self._protocol = None
        self._tcp_conn_timeout = None
        self._timeout = None
        self._url = None
        self.discriminator = None

        if advised_node_count is not None:
            self.advised_node_count = advised_node_count
        if disable is not None:
            self.disable = disable
        if dns_record_type is not None:
            self.dns_record_type = dns_record_type
        if failed_count is not None:
            self.failed_count = failed_count
        if host is not None:
            self.host = host
        if http_header is not None:
            self.http_header = http_header
        if http_method is not None:
            self.http_method = http_method
        if http_usability_codes is not None:
            self.http_usability_codes = http_usability_codes
        if interval is not None:
            self.interval = interval
        if is_manual_nodes is not None:
            self.is_manual_nodes = is_manual_nodes
        if nodes is not None:
            self.nodes = nodes
        if ping_count is not None:
            self.ping_count = ping_count
        if ping_loss_percent is not None:
            self.ping_loss_percent = ping_loss_percent
        if port is not None:
            self.port = port
        if protocol is not None:
            self.protocol = protocol
        if tcp_conn_timeout is not None:
            self.tcp_conn_timeout = tcp_conn_timeout
        if timeout is not None:
            self.timeout = timeout
        if url is not None:
            self.url = url

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


        :return: The advised_node_count of this GetProbeResponse.  # noqa: E501
        :rtype: int
        """
        return self._advised_node_count

    @advised_node_count.setter
    def advised_node_count(self, advised_node_count):
        """Sets the advised_node_count of this GetProbeResponse.


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

        self._advised_node_count = advised_node_count

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


        :return: The disable of this GetProbeResponse.  # noqa: E501
        :rtype: bool
        """
        return self._disable

    @disable.setter
    def disable(self, disable):
        """Sets the disable of this GetProbeResponse.


        :param disable: The disable of this GetProbeResponse.  # noqa: E501
        :type: bool
        """

        self._disable = disable

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


        :return: The dns_record_type of this GetProbeResponse.  # noqa: E501
        :rtype: str
        """
        return self._dns_record_type

    @dns_record_type.setter
    def dns_record_type(self, dns_record_type):
        """Sets the dns_record_type of this GetProbeResponse.


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

        self._dns_record_type = dns_record_type

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


        :return: The failed_count of this GetProbeResponse.  # noqa: E501
        :rtype: int
        """
        return self._failed_count

    @failed_count.setter
    def failed_count(self, failed_count):
        """Sets the failed_count of this GetProbeResponse.


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

        self._failed_count = failed_count

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


        :return: The host of this GetProbeResponse.  # noqa: E501
        :rtype: str
        """
        return self._host

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


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

        self._host = host

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


        :return: The http_header of this GetProbeResponse.  # noqa: E501
        :rtype: HttpHeaderForGetProbeOutput
        """
        return self._http_header

    @http_header.setter
    def http_header(self, http_header):
        """Sets the http_header of this GetProbeResponse.


        :param http_header: The http_header of this GetProbeResponse.  # noqa: E501
        :type: HttpHeaderForGetProbeOutput
        """

        self._http_header = http_header

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


        :return: The http_method of this GetProbeResponse.  # noqa: E501
        :rtype: str
        """
        return self._http_method

    @http_method.setter
    def http_method(self, http_method):
        """Sets the http_method of this GetProbeResponse.


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

        self._http_method = http_method

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


        :return: The http_usability_codes of this GetProbeResponse.  # noqa: E501
        :rtype: list[HttpUsabilityCodeForGetProbeOutput]
        """
        return self._http_usability_codes

    @http_usability_codes.setter
    def http_usability_codes(self, http_usability_codes):
        """Sets the http_usability_codes of this GetProbeResponse.


        :param http_usability_codes: The http_usability_codes of this GetProbeResponse.  # noqa: E501
        :type: list[HttpUsabilityCodeForGetProbeOutput]
        """

        self._http_usability_codes = http_usability_codes

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


        :return: The interval of this GetProbeResponse.  # noqa: E501
        :rtype: int
        """
        return self._interval

    @interval.setter
    def interval(self, interval):
        """Sets the interval of this GetProbeResponse.


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

        self._interval = interval

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


        :return: The is_manual_nodes of this GetProbeResponse.  # noqa: E501
        :rtype: bool
        """
        return self._is_manual_nodes

    @is_manual_nodes.setter
    def is_manual_nodes(self, is_manual_nodes):
        """Sets the is_manual_nodes of this GetProbeResponse.


        :param is_manual_nodes: The is_manual_nodes of this GetProbeResponse.  # noqa: E501
        :type: bool
        """

        self._is_manual_nodes = is_manual_nodes

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


        :return: The nodes of this GetProbeResponse.  # noqa: E501
        :rtype: list[str]
        """
        return self._nodes

    @nodes.setter
    def nodes(self, nodes):
        """Sets the nodes of this GetProbeResponse.


        :param nodes: The nodes of this GetProbeResponse.  # noqa: E501
        :type: list[str]
        """

        self._nodes = nodes

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


        :return: The ping_count of this GetProbeResponse.  # noqa: E501
        :rtype: int
        """
        return self._ping_count

    @ping_count.setter
    def ping_count(self, ping_count):
        """Sets the ping_count of this GetProbeResponse.


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

        self._ping_count = ping_count

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


        :return: The ping_loss_percent of this GetProbeResponse.  # noqa: E501
        :rtype: int
        """
        return self._ping_loss_percent

    @ping_loss_percent.setter
    def ping_loss_percent(self, ping_loss_percent):
        """Sets the ping_loss_percent of this GetProbeResponse.


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

        self._ping_loss_percent = ping_loss_percent

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


        :return: The port of this GetProbeResponse.  # noqa: E501
        :rtype: int
        """
        return self._port

    @port.setter
    def port(self, port):
        """Sets the port of this GetProbeResponse.


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

        self._port = port

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


        :return: The protocol of this GetProbeResponse.  # noqa: E501
        :rtype: str
        """
        return self._protocol

    @protocol.setter
    def protocol(self, protocol):
        """Sets the protocol of this GetProbeResponse.


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

        self._protocol = protocol

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


        :return: The tcp_conn_timeout of this GetProbeResponse.  # noqa: E501
        :rtype: int
        """
        return self._tcp_conn_timeout

    @tcp_conn_timeout.setter
    def tcp_conn_timeout(self, tcp_conn_timeout):
        """Sets the tcp_conn_timeout of this GetProbeResponse.


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

        self._tcp_conn_timeout = tcp_conn_timeout

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


        :return: The timeout of this GetProbeResponse.  # noqa: E501
        :rtype: int
        """
        return self._timeout

    @timeout.setter
    def timeout(self, timeout):
        """Sets the timeout of this GetProbeResponse.


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

        self._timeout = timeout

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


        :return: The url of this GetProbeResponse.  # noqa: E501
        :rtype: str
        """
        return self._url

    @url.setter
    def url(self, url):
        """Sets the url of this GetProbeResponse.


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

        self._url = url

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

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