# coding: utf-8

"""
    id

    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 ApiSpecForUpdateRouteInput(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_type': 'str',
        'action_value': 'str',
        'extractors': 'list[ExtractorForUpdateRouteInput]',
        'identifier_type': 'int',
        'identifier_value': 'str',
        'response_filters': 'list[ResponseFilterForUpdateRouteInput]'
    }

    attribute_map = {
        'action_type': 'ActionType',
        'action_value': 'ActionValue',
        'extractors': 'Extractors',
        'identifier_type': 'IdentifierType',
        'identifier_value': 'IdentifierValue',
        'response_filters': 'ResponseFilters'
    }

    def __init__(self, action_type=None, action_value=None, extractors=None, identifier_type=None, identifier_value=None, response_filters=None, _configuration=None):  # noqa: E501
        """ApiSpecForUpdateRouteInput - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._action_type = None
        self._action_value = None
        self._extractors = None
        self._identifier_type = None
        self._identifier_value = None
        self._response_filters = None
        self.discriminator = None

        if action_type is not None:
            self.action_type = action_type
        if action_value is not None:
            self.action_value = action_value
        if extractors is not None:
            self.extractors = extractors
        if identifier_type is not None:
            self.identifier_type = identifier_type
        if identifier_value is not None:
            self.identifier_value = identifier_value
        if response_filters is not None:
            self.response_filters = response_filters

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


        :return: The action_type of this ApiSpecForUpdateRouteInput.  # noqa: E501
        :rtype: str
        """
        return self._action_type

    @action_type.setter
    def action_type(self, action_type):
        """Sets the action_type of this ApiSpecForUpdateRouteInput.


        :param action_type: The action_type of this ApiSpecForUpdateRouteInput.  # noqa: E501
        :type: str
        """

        self._action_type = action_type

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


        :return: The action_value of this ApiSpecForUpdateRouteInput.  # noqa: E501
        :rtype: str
        """
        return self._action_value

    @action_value.setter
    def action_value(self, action_value):
        """Sets the action_value of this ApiSpecForUpdateRouteInput.


        :param action_value: The action_value of this ApiSpecForUpdateRouteInput.  # noqa: E501
        :type: str
        """

        self._action_value = action_value

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


        :return: The extractors of this ApiSpecForUpdateRouteInput.  # noqa: E501
        :rtype: list[ExtractorForUpdateRouteInput]
        """
        return self._extractors

    @extractors.setter
    def extractors(self, extractors):
        """Sets the extractors of this ApiSpecForUpdateRouteInput.


        :param extractors: The extractors of this ApiSpecForUpdateRouteInput.  # noqa: E501
        :type: list[ExtractorForUpdateRouteInput]
        """

        self._extractors = extractors

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


        :return: The identifier_type of this ApiSpecForUpdateRouteInput.  # noqa: E501
        :rtype: int
        """
        return self._identifier_type

    @identifier_type.setter
    def identifier_type(self, identifier_type):
        """Sets the identifier_type of this ApiSpecForUpdateRouteInput.


        :param identifier_type: The identifier_type of this ApiSpecForUpdateRouteInput.  # noqa: E501
        :type: int
        """

        self._identifier_type = identifier_type

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


        :return: The identifier_value of this ApiSpecForUpdateRouteInput.  # noqa: E501
        :rtype: str
        """
        return self._identifier_value

    @identifier_value.setter
    def identifier_value(self, identifier_value):
        """Sets the identifier_value of this ApiSpecForUpdateRouteInput.


        :param identifier_value: The identifier_value of this ApiSpecForUpdateRouteInput.  # noqa: E501
        :type: str
        """

        self._identifier_value = identifier_value

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


        :return: The response_filters of this ApiSpecForUpdateRouteInput.  # noqa: E501
        :rtype: list[ResponseFilterForUpdateRouteInput]
        """
        return self._response_filters

    @response_filters.setter
    def response_filters(self, response_filters):
        """Sets the response_filters of this ApiSpecForUpdateRouteInput.


        :param response_filters: The response_filters of this ApiSpecForUpdateRouteInput.  # noqa: E501
        :type: list[ResponseFilterForUpdateRouteInput]
        """

        self._response_filters = response_filters

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

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