# 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 BackendForCreateServiceOutput(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',
        'enable_tls': 'bool',
        'protocol': 'str',
        'timeout_seconds': 'int'
    }

    attribute_map = {
        'backend_domain': 'BackendDomain',
        'backend_port': 'BackendPort',
        'enable_tls': 'EnableTls',
        'protocol': 'Protocol',
        'timeout_seconds': 'TimeoutSeconds'
    }

    def __init__(self, backend_domain=None, backend_port=None, enable_tls=None, protocol=None, timeout_seconds=None, _configuration=None):  # noqa: E501
        """BackendForCreateServiceOutput - 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._enable_tls = None
        self._protocol = None
        self._timeout_seconds = 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 enable_tls is not None:
            self.enable_tls = enable_tls
        if protocol is not None:
            self.protocol = protocol
        if timeout_seconds is not None:
            self.timeout_seconds = timeout_seconds

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


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

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


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

        self._backend_domain = backend_domain

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


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

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


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

        self._backend_port = backend_port

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


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

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


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

        self._enable_tls = enable_tls

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


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

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


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

        self._protocol = protocol

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


        :return: The timeout_seconds of this BackendForCreateServiceOutput.  # noqa: E501
        :rtype: int
        """
        return self._timeout_seconds

    @timeout_seconds.setter
    def timeout_seconds(self, timeout_seconds):
        """Sets the timeout_seconds of this BackendForCreateServiceOutput.


        :param timeout_seconds: The timeout_seconds of this BackendForCreateServiceOutput.  # noqa: E501
        :type: int
        """

        self._timeout_seconds = timeout_seconds

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

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