# 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 ItemForDescribeTemplateOptionsOutput(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_domain': 'str',
        'backend_port': 'int',
        'description': 'str',
        'enable_tls': 'bool',
        'icon_url': 'str',
        'protocol': 'str',
        'route_count': 'int',
        'template_id': 'str',
        'template_name': 'str'
    }

    attribute_map = {
        'backend_domain': 'BackendDomain',
        'backend_port': 'BackendPort',
        'description': 'Description',
        'enable_tls': 'EnableTls',
        'icon_url': 'IconUrl',
        'protocol': 'Protocol',
        'route_count': 'RouteCount',
        'template_id': 'TemplateId',
        'template_name': 'TemplateName'
    }

    def __init__(self, backend_domain=None, backend_port=None, description=None, enable_tls=None, icon_url=None, protocol=None, route_count=None, template_id=None, template_name=None, _configuration=None):  # noqa: E501
        """ItemForDescribeTemplateOptionsOutput - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._backend_domain = None
        self._backend_port = None
        self._description = None
        self._enable_tls = None
        self._icon_url = None
        self._protocol = None
        self._route_count = None
        self._template_id = None
        self._template_name = None
        self.discriminator = None

        if backend_domain is not None:
            self.backend_domain = backend_domain
        if backend_port is not None:
            self.backend_port = backend_port
        if description is not None:
            self.description = description
        if enable_tls is not None:
            self.enable_tls = enable_tls
        if icon_url is not None:
            self.icon_url = icon_url
        if protocol is not None:
            self.protocol = protocol
        if route_count is not None:
            self.route_count = route_count
        if template_id is not None:
            self.template_id = template_id
        if template_name is not None:
            self.template_name = template_name

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


        :return: The backend_domain of this ItemForDescribeTemplateOptionsOutput.  # noqa: E501
        :rtype: str
        """
        return self._backend_domain

    @backend_domain.setter
    def backend_domain(self, backend_domain):
        """Sets the backend_domain of this ItemForDescribeTemplateOptionsOutput.


        :param backend_domain: The backend_domain of this ItemForDescribeTemplateOptionsOutput.  # noqa: E501
        :type: str
        """

        self._backend_domain = backend_domain

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


        :return: The backend_port of this ItemForDescribeTemplateOptionsOutput.  # noqa: E501
        :rtype: int
        """
        return self._backend_port

    @backend_port.setter
    def backend_port(self, backend_port):
        """Sets the backend_port of this ItemForDescribeTemplateOptionsOutput.


        :param backend_port: The backend_port of this ItemForDescribeTemplateOptionsOutput.  # noqa: E501
        :type: int
        """

        self._backend_port = backend_port

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


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

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


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

        self._description = description

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


        :return: The enable_tls of this ItemForDescribeTemplateOptionsOutput.  # noqa: E501
        :rtype: bool
        """
        return self._enable_tls

    @enable_tls.setter
    def enable_tls(self, enable_tls):
        """Sets the enable_tls of this ItemForDescribeTemplateOptionsOutput.


        :param enable_tls: The enable_tls of this ItemForDescribeTemplateOptionsOutput.  # noqa: E501
        :type: bool
        """

        self._enable_tls = enable_tls

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


        :return: The icon_url of this ItemForDescribeTemplateOptionsOutput.  # noqa: E501
        :rtype: str
        """
        return self._icon_url

    @icon_url.setter
    def icon_url(self, icon_url):
        """Sets the icon_url of this ItemForDescribeTemplateOptionsOutput.


        :param icon_url: The icon_url of this ItemForDescribeTemplateOptionsOutput.  # noqa: E501
        :type: str
        """

        self._icon_url = icon_url

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


        :return: The protocol of this ItemForDescribeTemplateOptionsOutput.  # noqa: E501
        :rtype: str
        """
        return self._protocol

    @protocol.setter
    def protocol(self, protocol):
        """Sets the protocol of this ItemForDescribeTemplateOptionsOutput.


        :param protocol: The protocol of this ItemForDescribeTemplateOptionsOutput.  # noqa: E501
        :type: str
        """

        self._protocol = protocol

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


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

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


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

        self._route_count = route_count

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


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

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


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

        self._template_id = template_id

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


        :return: The template_name of this ItemForDescribeTemplateOptionsOutput.  # noqa: E501
        :rtype: str
        """
        return self._template_name

    @template_name.setter
    def template_name(self, template_name):
        """Sets the template_name of this ItemForDescribeTemplateOptionsOutput.


        :param template_name: The template_name of this ItemForDescribeTemplateOptionsOutput.  # noqa: E501
        :type: str
        """

        self._template_name = template_name

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

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