# 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 RuleForCreateRuleInput(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 = {
        'disable': 'bool',
        'effective_pool_set_index': 'int',
        'line': 'str',
        'name': 'str',
        'pool_set_mode': 'str',
        'pool_sets': 'list[PoolSetForCreateRuleInput]',
        'probe': 'ProbeForCreateRuleInput',
        'remark': 'str',
        'use_policy_probe_nodes': 'bool',
        'use_rule_probe_config': 'bool',
        'weight': 'int'
    }

    attribute_map = {
        'disable': 'Disable',
        'effective_pool_set_index': 'EffectivePoolSetIndex',
        'line': 'Line',
        'name': 'Name',
        'pool_set_mode': 'PoolSetMode',
        'pool_sets': 'PoolSets',
        'probe': 'Probe',
        'remark': 'Remark',
        'use_policy_probe_nodes': 'UsePolicyProbeNodes',
        'use_rule_probe_config': 'UseRuleProbeConfig',
        'weight': 'Weight'
    }

    def __init__(self, disable=None, effective_pool_set_index=None, line=None, name=None, pool_set_mode=None, pool_sets=None, probe=None, remark=None, use_policy_probe_nodes=None, use_rule_probe_config=None, weight=None, _configuration=None):  # noqa: E501
        """RuleForCreateRuleInput - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._disable = None
        self._effective_pool_set_index = None
        self._line = None
        self._name = None
        self._pool_set_mode = None
        self._pool_sets = None
        self._probe = None
        self._remark = None
        self._use_policy_probe_nodes = None
        self._use_rule_probe_config = None
        self._weight = None
        self.discriminator = None

        if disable is not None:
            self.disable = disable
        if effective_pool_set_index is not None:
            self.effective_pool_set_index = effective_pool_set_index
        if line is not None:
            self.line = line
        if name is not None:
            self.name = name
        if pool_set_mode is not None:
            self.pool_set_mode = pool_set_mode
        if pool_sets is not None:
            self.pool_sets = pool_sets
        if probe is not None:
            self.probe = probe
        if remark is not None:
            self.remark = remark
        if use_policy_probe_nodes is not None:
            self.use_policy_probe_nodes = use_policy_probe_nodes
        if use_rule_probe_config is not None:
            self.use_rule_probe_config = use_rule_probe_config
        if weight is not None:
            self.weight = weight

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


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

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


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

        self._disable = disable

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


        :return: The effective_pool_set_index of this RuleForCreateRuleInput.  # noqa: E501
        :rtype: int
        """
        return self._effective_pool_set_index

    @effective_pool_set_index.setter
    def effective_pool_set_index(self, effective_pool_set_index):
        """Sets the effective_pool_set_index of this RuleForCreateRuleInput.


        :param effective_pool_set_index: The effective_pool_set_index of this RuleForCreateRuleInput.  # noqa: E501
        :type: int
        """

        self._effective_pool_set_index = effective_pool_set_index

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


        :return: The line of this RuleForCreateRuleInput.  # noqa: E501
        :rtype: str
        """
        return self._line

    @line.setter
    def line(self, line):
        """Sets the line of this RuleForCreateRuleInput.


        :param line: The line of this RuleForCreateRuleInput.  # noqa: E501
        :type: str
        """

        self._line = line

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


        :return: The name of this RuleForCreateRuleInput.  # noqa: E501
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name):
        """Sets the name of this RuleForCreateRuleInput.


        :param name: The name of this RuleForCreateRuleInput.  # noqa: E501
        :type: str
        """

        self._name = name

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


        :return: The pool_set_mode of this RuleForCreateRuleInput.  # noqa: E501
        :rtype: str
        """
        return self._pool_set_mode

    @pool_set_mode.setter
    def pool_set_mode(self, pool_set_mode):
        """Sets the pool_set_mode of this RuleForCreateRuleInput.


        :param pool_set_mode: The pool_set_mode of this RuleForCreateRuleInput.  # noqa: E501
        :type: str
        """

        self._pool_set_mode = pool_set_mode

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


        :return: The pool_sets of this RuleForCreateRuleInput.  # noqa: E501
        :rtype: list[PoolSetForCreateRuleInput]
        """
        return self._pool_sets

    @pool_sets.setter
    def pool_sets(self, pool_sets):
        """Sets the pool_sets of this RuleForCreateRuleInput.


        :param pool_sets: The pool_sets of this RuleForCreateRuleInput.  # noqa: E501
        :type: list[PoolSetForCreateRuleInput]
        """

        self._pool_sets = pool_sets

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


        :return: The probe of this RuleForCreateRuleInput.  # noqa: E501
        :rtype: ProbeForCreateRuleInput
        """
        return self._probe

    @probe.setter
    def probe(self, probe):
        """Sets the probe of this RuleForCreateRuleInput.


        :param probe: The probe of this RuleForCreateRuleInput.  # noqa: E501
        :type: ProbeForCreateRuleInput
        """

        self._probe = probe

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


        :return: The remark of this RuleForCreateRuleInput.  # noqa: E501
        :rtype: str
        """
        return self._remark

    @remark.setter
    def remark(self, remark):
        """Sets the remark of this RuleForCreateRuleInput.


        :param remark: The remark of this RuleForCreateRuleInput.  # noqa: E501
        :type: str
        """

        self._remark = remark

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


        :return: The use_policy_probe_nodes of this RuleForCreateRuleInput.  # noqa: E501
        :rtype: bool
        """
        return self._use_policy_probe_nodes

    @use_policy_probe_nodes.setter
    def use_policy_probe_nodes(self, use_policy_probe_nodes):
        """Sets the use_policy_probe_nodes of this RuleForCreateRuleInput.


        :param use_policy_probe_nodes: The use_policy_probe_nodes of this RuleForCreateRuleInput.  # noqa: E501
        :type: bool
        """

        self._use_policy_probe_nodes = use_policy_probe_nodes

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


        :return: The use_rule_probe_config of this RuleForCreateRuleInput.  # noqa: E501
        :rtype: bool
        """
        return self._use_rule_probe_config

    @use_rule_probe_config.setter
    def use_rule_probe_config(self, use_rule_probe_config):
        """Sets the use_rule_probe_config of this RuleForCreateRuleInput.


        :param use_rule_probe_config: The use_rule_probe_config of this RuleForCreateRuleInput.  # noqa: E501
        :type: bool
        """

        self._use_rule_probe_config = use_rule_probe_config

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


        :return: The weight of this RuleForCreateRuleInput.  # noqa: E501
        :rtype: int
        """
        return self._weight

    @weight.setter
    def weight(self, weight):
        """Sets the weight of this RuleForCreateRuleInput.


        :param weight: The weight of this RuleForCreateRuleInput.  # noqa: E501
        :type: int
        """

        self._weight = weight

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

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