# coding: utf-8

"""
    waf

    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 RuleForUpdateVulnerabilityConfigInput(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 = {
        'action': 'int',
        'count_time': 'int',
        'effect_time': 'int',
        'effect_time_view_unit': 'str',
        'field': 'str',
        'hit_request_count': 'int',
        'response_http_status': 'list[int]',
        'response_http_status_hit_percent': 'int'
    }

    attribute_map = {
        'action': 'Action',
        'count_time': 'CountTime',
        'effect_time': 'EffectTime',
        'effect_time_view_unit': 'EffectTimeViewUnit',
        'field': 'Field',
        'hit_request_count': 'HitRequestCount',
        'response_http_status': 'ResponseHttpStatus',
        'response_http_status_hit_percent': 'ResponseHttpStatusHitPercent'
    }

    def __init__(self, action=None, count_time=None, effect_time=None, effect_time_view_unit=None, field=None, hit_request_count=None, response_http_status=None, response_http_status_hit_percent=None, _configuration=None):  # noqa: E501
        """RuleForUpdateVulnerabilityConfigInput - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._action = None
        self._count_time = None
        self._effect_time = None
        self._effect_time_view_unit = None
        self._field = None
        self._hit_request_count = None
        self._response_http_status = None
        self._response_http_status_hit_percent = None
        self.discriminator = None

        if action is not None:
            self.action = action
        if count_time is not None:
            self.count_time = count_time
        if effect_time is not None:
            self.effect_time = effect_time
        if effect_time_view_unit is not None:
            self.effect_time_view_unit = effect_time_view_unit
        if field is not None:
            self.field = field
        if hit_request_count is not None:
            self.hit_request_count = hit_request_count
        if response_http_status is not None:
            self.response_http_status = response_http_status
        if response_http_status_hit_percent is not None:
            self.response_http_status_hit_percent = response_http_status_hit_percent

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


        :return: The action of this RuleForUpdateVulnerabilityConfigInput.  # noqa: E501
        :rtype: int
        """
        return self._action

    @action.setter
    def action(self, action):
        """Sets the action of this RuleForUpdateVulnerabilityConfigInput.


        :param action: The action of this RuleForUpdateVulnerabilityConfigInput.  # noqa: E501
        :type: int
        """

        self._action = action

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


        :return: The count_time of this RuleForUpdateVulnerabilityConfigInput.  # noqa: E501
        :rtype: int
        """
        return self._count_time

    @count_time.setter
    def count_time(self, count_time):
        """Sets the count_time of this RuleForUpdateVulnerabilityConfigInput.


        :param count_time: The count_time of this RuleForUpdateVulnerabilityConfigInput.  # noqa: E501
        :type: int
        """

        self._count_time = count_time

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


        :return: The effect_time of this RuleForUpdateVulnerabilityConfigInput.  # noqa: E501
        :rtype: int
        """
        return self._effect_time

    @effect_time.setter
    def effect_time(self, effect_time):
        """Sets the effect_time of this RuleForUpdateVulnerabilityConfigInput.


        :param effect_time: The effect_time of this RuleForUpdateVulnerabilityConfigInput.  # noqa: E501
        :type: int
        """

        self._effect_time = effect_time

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


        :return: The effect_time_view_unit of this RuleForUpdateVulnerabilityConfigInput.  # noqa: E501
        :rtype: str
        """
        return self._effect_time_view_unit

    @effect_time_view_unit.setter
    def effect_time_view_unit(self, effect_time_view_unit):
        """Sets the effect_time_view_unit of this RuleForUpdateVulnerabilityConfigInput.


        :param effect_time_view_unit: The effect_time_view_unit of this RuleForUpdateVulnerabilityConfigInput.  # noqa: E501
        :type: str
        """

        self._effect_time_view_unit = effect_time_view_unit

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


        :return: The field of this RuleForUpdateVulnerabilityConfigInput.  # noqa: E501
        :rtype: str
        """
        return self._field

    @field.setter
    def field(self, field):
        """Sets the field of this RuleForUpdateVulnerabilityConfigInput.


        :param field: The field of this RuleForUpdateVulnerabilityConfigInput.  # noqa: E501
        :type: str
        """

        self._field = field

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


        :return: The hit_request_count of this RuleForUpdateVulnerabilityConfigInput.  # noqa: E501
        :rtype: int
        """
        return self._hit_request_count

    @hit_request_count.setter
    def hit_request_count(self, hit_request_count):
        """Sets the hit_request_count of this RuleForUpdateVulnerabilityConfigInput.


        :param hit_request_count: The hit_request_count of this RuleForUpdateVulnerabilityConfigInput.  # noqa: E501
        :type: int
        """

        self._hit_request_count = hit_request_count

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


        :return: The response_http_status of this RuleForUpdateVulnerabilityConfigInput.  # noqa: E501
        :rtype: list[int]
        """
        return self._response_http_status

    @response_http_status.setter
    def response_http_status(self, response_http_status):
        """Sets the response_http_status of this RuleForUpdateVulnerabilityConfigInput.


        :param response_http_status: The response_http_status of this RuleForUpdateVulnerabilityConfigInput.  # noqa: E501
        :type: list[int]
        """

        self._response_http_status = response_http_status

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


        :return: The response_http_status_hit_percent of this RuleForUpdateVulnerabilityConfigInput.  # noqa: E501
        :rtype: int
        """
        return self._response_http_status_hit_percent

    @response_http_status_hit_percent.setter
    def response_http_status_hit_percent(self, response_http_status_hit_percent):
        """Sets the response_http_status_hit_percent of this RuleForUpdateVulnerabilityConfigInput.


        :param response_http_status_hit_percent: The response_http_status_hit_percent of this RuleForUpdateVulnerabilityConfigInput.  # noqa: E501
        :type: int
        """

        self._response_http_status_hit_percent = response_http_status_hit_percent

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

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