# 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 EdgeCallRequest(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',
        'input': 'str',
        'mode': 'int',
        'module_identifier': 'str',
        'show_template': 'bool'
    }

    attribute_map = {
        'device_id': 'device_id',
        'function_identifier': 'function_identifier',
        'input': 'input',
        'mode': 'mode',
        'module_identifier': 'module_identifier',
        'show_template': 'show_template'
    }

    def __init__(self, device_id=None, function_identifier=None, input=None, mode=None, module_identifier=None, show_template=None, _configuration=None):  # noqa: E501
        """EdgeCallRequest - 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._input = None
        self._mode = None
        self._module_identifier = None
        self._show_template = None
        self.discriminator = None

        self.device_id = device_id
        self.function_identifier = function_identifier
        if input is not None:
            self.input = input
        self.mode = mode
        self.module_identifier = module_identifier
        if show_template is not None:
            self.show_template = show_template

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


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

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


        :param device_id: The device_id of this EdgeCallRequest.  # noqa: E501
        :type: str
        """
        if self._configuration.client_side_validation and device_id is None:
            raise ValueError("Invalid value for `device_id`, must not be `None`")  # noqa: E501

        self._device_id = device_id

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


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

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


        :param function_identifier: The function_identifier of this EdgeCallRequest.  # noqa: E501
        :type: str
        """
        if self._configuration.client_side_validation and function_identifier is None:
            raise ValueError("Invalid value for `function_identifier`, must not be `None`")  # noqa: E501

        self._function_identifier = function_identifier

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


        :return: The input of this EdgeCallRequest.  # noqa: E501
        :rtype: str
        """
        return self._input

    @input.setter
    def input(self, input):
        """Sets the input of this EdgeCallRequest.


        :param input: The input of this EdgeCallRequest.  # noqa: E501
        :type: str
        """

        self._input = input

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


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

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


        :param mode: The mode of this EdgeCallRequest.  # noqa: E501
        :type: int
        """
        if self._configuration.client_side_validation and mode is None:
            raise ValueError("Invalid value for `mode`, must not be `None`")  # noqa: E501

        self._mode = mode

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


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

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


        :param module_identifier: The module_identifier of this EdgeCallRequest.  # noqa: E501
        :type: str
        """
        if self._configuration.client_side_validation and module_identifier is None:
            raise ValueError("Invalid value for `module_identifier`, must not be `None`")  # noqa: E501

        self._module_identifier = module_identifier

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


        :return: The show_template of this EdgeCallRequest.  # noqa: E501
        :rtype: bool
        """
        return self._show_template

    @show_template.setter
    def show_template(self, show_template):
        """Sets the show_template of this EdgeCallRequest.


        :param show_template: The show_template of this EdgeCallRequest.  # noqa: E501
        :type: bool
        """

        self._show_template = show_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(EdgeCallRequest, 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, EdgeCallRequest):
            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, EdgeCallRequest):
            return True

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