# 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 ProbeForUpdateProbeInput(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',
        'failed_count': 'int',
        'host': 'str',
        'http_header': 'HttpHeaderForUpdateProbeInput',
        'http_method': 'str',
        'http_usability_codes': 'list[HttpUsabilityCodeForUpdateProbeInput]',
        'interval': 'int',
        'is_manual_nodes': 'bool',
        'nodes': 'list[str]',
        'ping_count': 'int',
        'ping_loss_percent': 'int',
        'port': 'int',
        'protocol': 'str',
        'timeout': 'int',
        'url': 'str'
    }

    attribute_map = {
        'advised_node_count': 'AdvisedNodeCount',
        'disable': 'Disable',
        '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',
        'timeout': 'Timeout',
        'url': 'Url'
    }

    def __init__(self, advised_node_count=None, disable=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, timeout=None, url=None, _configuration=None):  # noqa: E501
        """ProbeForUpdateProbeInput - 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._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._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 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 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 ProbeForUpdateProbeInput.  # noqa: E501


        :return: The advised_node_count of this ProbeForUpdateProbeInput.  # 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 ProbeForUpdateProbeInput.


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

        self._advised_node_count = advised_node_count

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


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

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


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

        self._disable = disable

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


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

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


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

        self._failed_count = failed_count

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


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

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


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

        self._host = host

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


        :return: The http_header of this ProbeForUpdateProbeInput.  # noqa: E501
        :rtype: HttpHeaderForUpdateProbeInput
        """
        return self._http_header

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


        :param http_header: The http_header of this ProbeForUpdateProbeInput.  # noqa: E501
        :type: HttpHeaderForUpdateProbeInput
        """

        self._http_header = http_header

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


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

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


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

        self._http_method = http_method

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


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

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


        :param http_usability_codes: The http_usability_codes of this ProbeForUpdateProbeInput.  # noqa: E501
        :type: list[HttpUsabilityCodeForUpdateProbeInput]
        """

        self._http_usability_codes = http_usability_codes

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


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

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


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

        self._interval = interval

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


        :return: The is_manual_nodes of this ProbeForUpdateProbeInput.  # 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 ProbeForUpdateProbeInput.


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

        self._is_manual_nodes = is_manual_nodes

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


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

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


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

        self._nodes = nodes

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


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

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


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

        self._ping_count = ping_count

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


        :return: The ping_loss_percent of this ProbeForUpdateProbeInput.  # 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 ProbeForUpdateProbeInput.


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

        self._ping_loss_percent = ping_loss_percent

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


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

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


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

        self._port = port

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


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

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


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

        self._protocol = protocol

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


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

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


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

        self._timeout = timeout

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


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

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


        :param url: The url of this ProbeForUpdateProbeInput.  # 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(ProbeForUpdateProbeInput, 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, ProbeForUpdateProbeInput):
            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, ProbeForUpdateProbeInput):
            return True

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