# coding: utf-8

"""
    vei_api

    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 UpdateLogRuleRequest(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 = {
        'file_path': 'list[str]',
        'node_name': 'str',
        'pod_name': 'list[str]',
        'pod_range': 'int',
        'project_id': 'str',
        'rule_name': 'str',
        'rule_type': 'int'
    }

    attribute_map = {
        'file_path': 'file_path',
        'node_name': 'node_name',
        'pod_name': 'pod_name',
        'pod_range': 'pod_range',
        'project_id': 'project_id',
        'rule_name': 'rule_name',
        'rule_type': 'rule_type'
    }

    def __init__(self, file_path=None, node_name=None, pod_name=None, pod_range=None, project_id=None, rule_name=None, rule_type=None, _configuration=None):  # noqa: E501
        """UpdateLogRuleRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._file_path = None
        self._node_name = None
        self._pod_name = None
        self._pod_range = None
        self._project_id = None
        self._rule_name = None
        self._rule_type = None
        self.discriminator = None

        if file_path is not None:
            self.file_path = file_path
        if node_name is not None:
            self.node_name = node_name
        if pod_name is not None:
            self.pod_name = pod_name
        if pod_range is not None:
            self.pod_range = pod_range
        self.project_id = project_id
        if rule_name is not None:
            self.rule_name = rule_name
        if rule_type is not None:
            self.rule_type = rule_type

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


        :return: The file_path of this UpdateLogRuleRequest.  # noqa: E501
        :rtype: list[str]
        """
        return self._file_path

    @file_path.setter
    def file_path(self, file_path):
        """Sets the file_path of this UpdateLogRuleRequest.


        :param file_path: The file_path of this UpdateLogRuleRequest.  # noqa: E501
        :type: list[str]
        """

        self._file_path = file_path

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


        :return: The node_name of this UpdateLogRuleRequest.  # noqa: E501
        :rtype: str
        """
        return self._node_name

    @node_name.setter
    def node_name(self, node_name):
        """Sets the node_name of this UpdateLogRuleRequest.


        :param node_name: The node_name of this UpdateLogRuleRequest.  # noqa: E501
        :type: str
        """

        self._node_name = node_name

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


        :return: The pod_name of this UpdateLogRuleRequest.  # noqa: E501
        :rtype: list[str]
        """
        return self._pod_name

    @pod_name.setter
    def pod_name(self, pod_name):
        """Sets the pod_name of this UpdateLogRuleRequest.


        :param pod_name: The pod_name of this UpdateLogRuleRequest.  # noqa: E501
        :type: list[str]
        """

        self._pod_name = pod_name

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


        :return: The pod_range of this UpdateLogRuleRequest.  # noqa: E501
        :rtype: int
        """
        return self._pod_range

    @pod_range.setter
    def pod_range(self, pod_range):
        """Sets the pod_range of this UpdateLogRuleRequest.


        :param pod_range: The pod_range of this UpdateLogRuleRequest.  # noqa: E501
        :type: int
        """

        self._pod_range = pod_range

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


        :return: The project_id of this UpdateLogRuleRequest.  # noqa: E501
        :rtype: str
        """
        return self._project_id

    @project_id.setter
    def project_id(self, project_id):
        """Sets the project_id of this UpdateLogRuleRequest.


        :param project_id: The project_id of this UpdateLogRuleRequest.  # noqa: E501
        :type: str
        """
        if self._configuration.client_side_validation and project_id is None:
            raise ValueError("Invalid value for `project_id`, must not be `None`")  # noqa: E501

        self._project_id = project_id

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


        :return: The rule_name of this UpdateLogRuleRequest.  # noqa: E501
        :rtype: str
        """
        return self._rule_name

    @rule_name.setter
    def rule_name(self, rule_name):
        """Sets the rule_name of this UpdateLogRuleRequest.


        :param rule_name: The rule_name of this UpdateLogRuleRequest.  # noqa: E501
        :type: str
        """

        self._rule_name = rule_name

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


        :return: The rule_type of this UpdateLogRuleRequest.  # noqa: E501
        :rtype: int
        """
        return self._rule_type

    @rule_type.setter
    def rule_type(self, rule_type):
        """Sets the rule_type of this UpdateLogRuleRequest.


        :param rule_type: The rule_type of this UpdateLogRuleRequest.  # noqa: E501
        :type: int
        """

        self._rule_type = rule_type

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

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