# 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 UpdateRouteRequest(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 = {
        'api_spec': 'ApiSpecForUpdateRouteInput',
        'auth_resource_type': 'str',
        'description': 'str',
        'permission_pool': 'str',
        'priority': 'int',
        'resource_type': 'str',
        'route_name': 'str',
        'service_name': 'str',
        'status': 'str'
    }

    attribute_map = {
        'api_spec': 'ApiSpec',
        'auth_resource_type': 'AuthResourceType',
        'description': 'Description',
        'permission_pool': 'PermissionPool',
        'priority': 'Priority',
        'resource_type': 'ResourceType',
        'route_name': 'RouteName',
        'service_name': 'ServiceName',
        'status': 'Status'
    }

    def __init__(self, api_spec=None, auth_resource_type=None, description=None, permission_pool=None, priority=None, resource_type=None, route_name=None, service_name=None, status=None, _configuration=None):  # noqa: E501
        """UpdateRouteRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._api_spec = None
        self._auth_resource_type = None
        self._description = None
        self._permission_pool = None
        self._priority = None
        self._resource_type = None
        self._route_name = None
        self._service_name = None
        self._status = None
        self.discriminator = None

        if api_spec is not None:
            self.api_spec = api_spec
        if auth_resource_type is not None:
            self.auth_resource_type = auth_resource_type
        if description is not None:
            self.description = description
        if permission_pool is not None:
            self.permission_pool = permission_pool
        if priority is not None:
            self.priority = priority
        if resource_type is not None:
            self.resource_type = resource_type
        self.route_name = route_name
        self.service_name = service_name
        if status is not None:
            self.status = status

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


        :return: The api_spec of this UpdateRouteRequest.  # noqa: E501
        :rtype: ApiSpecForUpdateRouteInput
        """
        return self._api_spec

    @api_spec.setter
    def api_spec(self, api_spec):
        """Sets the api_spec of this UpdateRouteRequest.


        :param api_spec: The api_spec of this UpdateRouteRequest.  # noqa: E501
        :type: ApiSpecForUpdateRouteInput
        """

        self._api_spec = api_spec

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


        :return: The auth_resource_type of this UpdateRouteRequest.  # noqa: E501
        :rtype: str
        """
        return self._auth_resource_type

    @auth_resource_type.setter
    def auth_resource_type(self, auth_resource_type):
        """Sets the auth_resource_type of this UpdateRouteRequest.


        :param auth_resource_type: The auth_resource_type of this UpdateRouteRequest.  # noqa: E501
        :type: str
        """

        self._auth_resource_type = auth_resource_type

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


        :return: The description of this UpdateRouteRequest.  # noqa: E501
        :rtype: str
        """
        return self._description

    @description.setter
    def description(self, description):
        """Sets the description of this UpdateRouteRequest.


        :param description: The description of this UpdateRouteRequest.  # noqa: E501
        :type: str
        """

        self._description = description

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


        :return: The permission_pool of this UpdateRouteRequest.  # noqa: E501
        :rtype: str
        """
        return self._permission_pool

    @permission_pool.setter
    def permission_pool(self, permission_pool):
        """Sets the permission_pool of this UpdateRouteRequest.


        :param permission_pool: The permission_pool of this UpdateRouteRequest.  # noqa: E501
        :type: str
        """

        self._permission_pool = permission_pool

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


        :return: The priority of this UpdateRouteRequest.  # noqa: E501
        :rtype: int
        """
        return self._priority

    @priority.setter
    def priority(self, priority):
        """Sets the priority of this UpdateRouteRequest.


        :param priority: The priority of this UpdateRouteRequest.  # noqa: E501
        :type: int
        """

        self._priority = priority

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


        :return: The resource_type of this UpdateRouteRequest.  # noqa: E501
        :rtype: str
        """
        return self._resource_type

    @resource_type.setter
    def resource_type(self, resource_type):
        """Sets the resource_type of this UpdateRouteRequest.


        :param resource_type: The resource_type of this UpdateRouteRequest.  # noqa: E501
        :type: str
        """

        self._resource_type = resource_type

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


        :return: The route_name of this UpdateRouteRequest.  # noqa: E501
        :rtype: str
        """
        return self._route_name

    @route_name.setter
    def route_name(self, route_name):
        """Sets the route_name of this UpdateRouteRequest.


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

        self._route_name = route_name

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


        :return: The service_name of this UpdateRouteRequest.  # noqa: E501
        :rtype: str
        """
        return self._service_name

    @service_name.setter
    def service_name(self, service_name):
        """Sets the service_name of this UpdateRouteRequest.


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

        self._service_name = service_name

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


        :return: The status of this UpdateRouteRequest.  # noqa: E501
        :rtype: str
        """
        return self._status

    @status.setter
    def status(self, status):
        """Sets the status of this UpdateRouteRequest.


        :param status: The status of this UpdateRouteRequest.  # noqa: E501
        :type: str
        """

        self._status = status

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

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