# 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 CreateRouteResponse(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': 'ApiSpecForCreateRouteOutput',
        'auth_resource_type': 'str',
        'created_at': 'int',
        'description': 'str',
        'method': 'str',
        'path': 'str',
        'path_match_type': 'str',
        'permission_pool': 'str',
        'priority': 'int',
        'resource_type': 'str',
        'route_name': 'str',
        'source_template_id': 'str',
        'status': 'str',
        'updated_at': 'int'
    }

    attribute_map = {
        'api_spec': 'ApiSpec',
        'auth_resource_type': 'AuthResourceType',
        'created_at': 'CreatedAt',
        'description': 'Description',
        'method': 'Method',
        'path': 'Path',
        'path_match_type': 'PathMatchType',
        'permission_pool': 'PermissionPool',
        'priority': 'Priority',
        'resource_type': 'ResourceType',
        'route_name': 'RouteName',
        'source_template_id': 'SourceTemplateId',
        'status': 'Status',
        'updated_at': 'UpdatedAt'
    }

    def __init__(self, api_spec=None, auth_resource_type=None, created_at=None, description=None, method=None, path=None, path_match_type=None, permission_pool=None, priority=None, resource_type=None, route_name=None, source_template_id=None, status=None, updated_at=None, _configuration=None):  # noqa: E501
        """CreateRouteResponse - 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._created_at = None
        self._description = None
        self._method = None
        self._path = None
        self._path_match_type = None
        self._permission_pool = None
        self._priority = None
        self._resource_type = None
        self._route_name = None
        self._source_template_id = None
        self._status = None
        self._updated_at = 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 created_at is not None:
            self.created_at = created_at
        if description is not None:
            self.description = description
        if method is not None:
            self.method = method
        if path is not None:
            self.path = path
        if path_match_type is not None:
            self.path_match_type = path_match_type
        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
        if route_name is not None:
            self.route_name = route_name
        if source_template_id is not None:
            self.source_template_id = source_template_id
        if status is not None:
            self.status = status
        if updated_at is not None:
            self.updated_at = updated_at

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


        :return: The api_spec of this CreateRouteResponse.  # noqa: E501
        :rtype: ApiSpecForCreateRouteOutput
        """
        return self._api_spec

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


        :param api_spec: The api_spec of this CreateRouteResponse.  # noqa: E501
        :type: ApiSpecForCreateRouteOutput
        """

        self._api_spec = api_spec

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


        :return: The auth_resource_type of this CreateRouteResponse.  # 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 CreateRouteResponse.


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

        self._auth_resource_type = auth_resource_type

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


        :return: The created_at of this CreateRouteResponse.  # noqa: E501
        :rtype: int
        """
        return self._created_at

    @created_at.setter
    def created_at(self, created_at):
        """Sets the created_at of this CreateRouteResponse.


        :param created_at: The created_at of this CreateRouteResponse.  # noqa: E501
        :type: int
        """

        self._created_at = created_at

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


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

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


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

        self._description = description

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


        :return: The method of this CreateRouteResponse.  # noqa: E501
        :rtype: str
        """
        return self._method

    @method.setter
    def method(self, method):
        """Sets the method of this CreateRouteResponse.


        :param method: The method of this CreateRouteResponse.  # noqa: E501
        :type: str
        """

        self._method = method

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


        :return: The path of this CreateRouteResponse.  # noqa: E501
        :rtype: str
        """
        return self._path

    @path.setter
    def path(self, path):
        """Sets the path of this CreateRouteResponse.


        :param path: The path of this CreateRouteResponse.  # noqa: E501
        :type: str
        """

        self._path = path

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


        :return: The path_match_type of this CreateRouteResponse.  # noqa: E501
        :rtype: str
        """
        return self._path_match_type

    @path_match_type.setter
    def path_match_type(self, path_match_type):
        """Sets the path_match_type of this CreateRouteResponse.


        :param path_match_type: The path_match_type of this CreateRouteResponse.  # noqa: E501
        :type: str
        """

        self._path_match_type = path_match_type

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


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

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


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

        self._permission_pool = permission_pool

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


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

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


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

        self._priority = priority

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


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

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


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

        self._resource_type = resource_type

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


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

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


        :param route_name: The route_name of this CreateRouteResponse.  # noqa: E501
        :type: str
        """

        self._route_name = route_name

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


        :return: The source_template_id of this CreateRouteResponse.  # noqa: E501
        :rtype: str
        """
        return self._source_template_id

    @source_template_id.setter
    def source_template_id(self, source_template_id):
        """Sets the source_template_id of this CreateRouteResponse.


        :param source_template_id: The source_template_id of this CreateRouteResponse.  # noqa: E501
        :type: str
        """

        self._source_template_id = source_template_id

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


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

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


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

        self._status = status

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


        :return: The updated_at of this CreateRouteResponse.  # noqa: E501
        :rtype: int
        """
        return self._updated_at

    @updated_at.setter
    def updated_at(self, updated_at):
        """Sets the updated_at of this CreateRouteResponse.


        :param updated_at: The updated_at of this CreateRouteResponse.  # noqa: E501
        :type: int
        """

        self._updated_at = updated_at

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

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