# 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 UpdateServiceResponse(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 = {
        'backend': 'BackendForUpdateServiceOutput',
        'backend_type': 'str',
        'created_at': 'int',
        'description': 'str',
        'hijack_domain_private': 'str',
        'hijack_domain_public': 'str',
        'permission_space_id': 'str',
        'permission_space_name': 'str',
        'project_name': 'str',
        'route_count': 'int',
        'service_id': 'str',
        'service_name': 'str',
        'status': 'str',
        'tags': 'list[TagForUpdateServiceOutput]',
        'template_id': 'str',
        'trn': 'str',
        'updated_at': 'int'
    }

    attribute_map = {
        'backend': 'Backend',
        'backend_type': 'BackendType',
        'created_at': 'CreatedAt',
        'description': 'Description',
        'hijack_domain_private': 'HijackDomainPrivate',
        'hijack_domain_public': 'HijackDomainPublic',
        'permission_space_id': 'PermissionSpaceId',
        'permission_space_name': 'PermissionSpaceName',
        'project_name': 'ProjectName',
        'route_count': 'RouteCount',
        'service_id': 'ServiceId',
        'service_name': 'ServiceName',
        'status': 'Status',
        'tags': 'Tags',
        'template_id': 'TemplateId',
        'trn': 'Trn',
        'updated_at': 'UpdatedAt'
    }

    def __init__(self, backend=None, backend_type=None, created_at=None, description=None, hijack_domain_private=None, hijack_domain_public=None, permission_space_id=None, permission_space_name=None, project_name=None, route_count=None, service_id=None, service_name=None, status=None, tags=None, template_id=None, trn=None, updated_at=None, _configuration=None):  # noqa: E501
        """UpdateServiceResponse - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._backend = None
        self._backend_type = None
        self._created_at = None
        self._description = None
        self._hijack_domain_private = None
        self._hijack_domain_public = None
        self._permission_space_id = None
        self._permission_space_name = None
        self._project_name = None
        self._route_count = None
        self._service_id = None
        self._service_name = None
        self._status = None
        self._tags = None
        self._template_id = None
        self._trn = None
        self._updated_at = None
        self.discriminator = None

        if backend is not None:
            self.backend = backend
        if backend_type is not None:
            self.backend_type = backend_type
        if created_at is not None:
            self.created_at = created_at
        if description is not None:
            self.description = description
        if hijack_domain_private is not None:
            self.hijack_domain_private = hijack_domain_private
        if hijack_domain_public is not None:
            self.hijack_domain_public = hijack_domain_public
        if permission_space_id is not None:
            self.permission_space_id = permission_space_id
        if permission_space_name is not None:
            self.permission_space_name = permission_space_name
        if project_name is not None:
            self.project_name = project_name
        if route_count is not None:
            self.route_count = route_count
        if service_id is not None:
            self.service_id = service_id
        if service_name is not None:
            self.service_name = service_name
        if status is not None:
            self.status = status
        if tags is not None:
            self.tags = tags
        if template_id is not None:
            self.template_id = template_id
        if trn is not None:
            self.trn = trn
        if updated_at is not None:
            self.updated_at = updated_at

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


        :return: The backend of this UpdateServiceResponse.  # noqa: E501
        :rtype: BackendForUpdateServiceOutput
        """
        return self._backend

    @backend.setter
    def backend(self, backend):
        """Sets the backend of this UpdateServiceResponse.


        :param backend: The backend of this UpdateServiceResponse.  # noqa: E501
        :type: BackendForUpdateServiceOutput
        """

        self._backend = backend

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


        :return: The backend_type of this UpdateServiceResponse.  # noqa: E501
        :rtype: str
        """
        return self._backend_type

    @backend_type.setter
    def backend_type(self, backend_type):
        """Sets the backend_type of this UpdateServiceResponse.


        :param backend_type: The backend_type of this UpdateServiceResponse.  # noqa: E501
        :type: str
        """

        self._backend_type = backend_type

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


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

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


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

        self._created_at = created_at

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


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

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


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

        self._description = description

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


        :return: The hijack_domain_private of this UpdateServiceResponse.  # noqa: E501
        :rtype: str
        """
        return self._hijack_domain_private

    @hijack_domain_private.setter
    def hijack_domain_private(self, hijack_domain_private):
        """Sets the hijack_domain_private of this UpdateServiceResponse.


        :param hijack_domain_private: The hijack_domain_private of this UpdateServiceResponse.  # noqa: E501
        :type: str
        """

        self._hijack_domain_private = hijack_domain_private

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


        :return: The hijack_domain_public of this UpdateServiceResponse.  # noqa: E501
        :rtype: str
        """
        return self._hijack_domain_public

    @hijack_domain_public.setter
    def hijack_domain_public(self, hijack_domain_public):
        """Sets the hijack_domain_public of this UpdateServiceResponse.


        :param hijack_domain_public: The hijack_domain_public of this UpdateServiceResponse.  # noqa: E501
        :type: str
        """

        self._hijack_domain_public = hijack_domain_public

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


        :return: The permission_space_id of this UpdateServiceResponse.  # noqa: E501
        :rtype: str
        """
        return self._permission_space_id

    @permission_space_id.setter
    def permission_space_id(self, permission_space_id):
        """Sets the permission_space_id of this UpdateServiceResponse.


        :param permission_space_id: The permission_space_id of this UpdateServiceResponse.  # noqa: E501
        :type: str
        """

        self._permission_space_id = permission_space_id

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


        :return: The permission_space_name of this UpdateServiceResponse.  # noqa: E501
        :rtype: str
        """
        return self._permission_space_name

    @permission_space_name.setter
    def permission_space_name(self, permission_space_name):
        """Sets the permission_space_name of this UpdateServiceResponse.


        :param permission_space_name: The permission_space_name of this UpdateServiceResponse.  # noqa: E501
        :type: str
        """

        self._permission_space_name = permission_space_name

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


        :return: The project_name of this UpdateServiceResponse.  # noqa: E501
        :rtype: str
        """
        return self._project_name

    @project_name.setter
    def project_name(self, project_name):
        """Sets the project_name of this UpdateServiceResponse.


        :param project_name: The project_name of this UpdateServiceResponse.  # noqa: E501
        :type: str
        """

        self._project_name = project_name

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


        :return: The route_count of this UpdateServiceResponse.  # noqa: E501
        :rtype: int
        """
        return self._route_count

    @route_count.setter
    def route_count(self, route_count):
        """Sets the route_count of this UpdateServiceResponse.


        :param route_count: The route_count of this UpdateServiceResponse.  # noqa: E501
        :type: int
        """

        self._route_count = route_count

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


        :return: The service_id of this UpdateServiceResponse.  # noqa: E501
        :rtype: str
        """
        return self._service_id

    @service_id.setter
    def service_id(self, service_id):
        """Sets the service_id of this UpdateServiceResponse.


        :param service_id: The service_id of this UpdateServiceResponse.  # noqa: E501
        :type: str
        """

        self._service_id = service_id

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


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

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


        :param service_name: The service_name of this UpdateServiceResponse.  # noqa: E501
        :type: str
        """

        self._service_name = service_name

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


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

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


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

        self._status = status

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


        :return: The tags of this UpdateServiceResponse.  # noqa: E501
        :rtype: list[TagForUpdateServiceOutput]
        """
        return self._tags

    @tags.setter
    def tags(self, tags):
        """Sets the tags of this UpdateServiceResponse.


        :param tags: The tags of this UpdateServiceResponse.  # noqa: E501
        :type: list[TagForUpdateServiceOutput]
        """

        self._tags = tags

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


        :return: The template_id of this UpdateServiceResponse.  # noqa: E501
        :rtype: str
        """
        return self._template_id

    @template_id.setter
    def template_id(self, template_id):
        """Sets the template_id of this UpdateServiceResponse.


        :param template_id: The template_id of this UpdateServiceResponse.  # noqa: E501
        :type: str
        """

        self._template_id = template_id

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


        :return: The trn of this UpdateServiceResponse.  # noqa: E501
        :rtype: str
        """
        return self._trn

    @trn.setter
    def trn(self, trn):
        """Sets the trn of this UpdateServiceResponse.


        :param trn: The trn of this UpdateServiceResponse.  # noqa: E501
        :type: str
        """

        self._trn = trn

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


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

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


        :param updated_at: The updated_at of this UpdateServiceResponse.  # 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(UpdateServiceResponse, 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, UpdateServiceResponse):
            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, UpdateServiceResponse):
            return True

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