# coding: utf-8

"""
    vei_api

    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 EdgeCallResponse(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 = {
        'device_id': 'str',
        'function_identifier': 'str',
        'mode': 'int',
        'module_identifier': 'str',
        'origin': 'int',
        'output': 'OutputForEdgeCallOutput',
        'template': 'str'
    }

    attribute_map = {
        'device_id': 'device_id',
        'function_identifier': 'function_identifier',
        'mode': 'mode',
        'module_identifier': 'module_identifier',
        'origin': 'origin',
        'output': 'output',
        'template': 'template'
    }

    def __init__(self, device_id=None, function_identifier=None, mode=None, module_identifier=None, origin=None, output=None, template=None, _configuration=None):  # noqa: E501
        """EdgeCallResponse - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._device_id = None
        self._function_identifier = None
        self._mode = None
        self._module_identifier = None
        self._origin = None
        self._output = None
        self._template = None
        self.discriminator = None

        if device_id is not None:
            self.device_id = device_id
        if function_identifier is not None:
            self.function_identifier = function_identifier
        if mode is not None:
            self.mode = mode
        if module_identifier is not None:
            self.module_identifier = module_identifier
        if origin is not None:
            self.origin = origin
        if output is not None:
            self.output = output
        if template is not None:
            self.template = template

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


        :return: The device_id of this EdgeCallResponse.  # noqa: E501
        :rtype: str
        """
        return self._device_id

    @device_id.setter
    def device_id(self, device_id):
        """Sets the device_id of this EdgeCallResponse.


        :param device_id: The device_id of this EdgeCallResponse.  # noqa: E501
        :type: str
        """

        self._device_id = device_id

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


        :return: The function_identifier of this EdgeCallResponse.  # noqa: E501
        :rtype: str
        """
        return self._function_identifier

    @function_identifier.setter
    def function_identifier(self, function_identifier):
        """Sets the function_identifier of this EdgeCallResponse.


        :param function_identifier: The function_identifier of this EdgeCallResponse.  # noqa: E501
        :type: str
        """

        self._function_identifier = function_identifier

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


        :return: The mode of this EdgeCallResponse.  # noqa: E501
        :rtype: int
        """
        return self._mode

    @mode.setter
    def mode(self, mode):
        """Sets the mode of this EdgeCallResponse.


        :param mode: The mode of this EdgeCallResponse.  # noqa: E501
        :type: int
        """

        self._mode = mode

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


        :return: The module_identifier of this EdgeCallResponse.  # noqa: E501
        :rtype: str
        """
        return self._module_identifier

    @module_identifier.setter
    def module_identifier(self, module_identifier):
        """Sets the module_identifier of this EdgeCallResponse.


        :param module_identifier: The module_identifier of this EdgeCallResponse.  # noqa: E501
        :type: str
        """

        self._module_identifier = module_identifier

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


        :return: The origin of this EdgeCallResponse.  # noqa: E501
        :rtype: int
        """
        return self._origin

    @origin.setter
    def origin(self, origin):
        """Sets the origin of this EdgeCallResponse.


        :param origin: The origin of this EdgeCallResponse.  # noqa: E501
        :type: int
        """

        self._origin = origin

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


        :return: The output of this EdgeCallResponse.  # noqa: E501
        :rtype: OutputForEdgeCallOutput
        """
        return self._output

    @output.setter
    def output(self, output):
        """Sets the output of this EdgeCallResponse.


        :param output: The output of this EdgeCallResponse.  # noqa: E501
        :type: OutputForEdgeCallOutput
        """

        self._output = output

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


        :return: The template of this EdgeCallResponse.  # noqa: E501
        :rtype: str
        """
        return self._template

    @template.setter
    def template(self, template):
        """Sets the template of this EdgeCallResponse.


        :param template: The template of this EdgeCallResponse.  # noqa: E501
        :type: str
        """

        self._template = template

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

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