# coding: utf-8

from __future__ import absolute_import
from .base_model_ import Model
from datetime import date, datetime
from typing import List, Dict
from ..util import deserialize_model


class ErrorModel(Model):
    """
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    """
    def __init__(self, code: int=None, message: str=None):
        """
        ErrorModel - a model defined in Swagger

        :param code: The code of this ErrorModel.
        :type code: int
        :param message: The message of this ErrorModel.
        :type message: str
        """
        self.swagger_types = {
            'code': int,
            'message': str
        }

        self.attribute_map = {
            'code': 'code',
            'message': 'message'
        }

        self._code = code
        self._message = message

    @classmethod
    def from_dict(cls, dikt) -> 'ErrorModel':
        """
        Returns the dict as a model

        :param dikt: A dict.
        :type: dict
        :return: The errorModel of this ErrorModel.
        :rtype: ErrorModel
        """
        return deserialize_model(dikt, cls)

    @property
    def code(self) -> int:
        """
        Gets the code of this ErrorModel.

        :return: The code of this ErrorModel.
        :rtype: int
        """
        return self._code

    @code.setter
    def code(self, code: int):
        """
        Sets the code of this ErrorModel.

        :param code: The code of this ErrorModel.
        :type code: int
        """
        if code is None:
            raise ValueError("Invalid value for `code`, must not be `None`")

        self._code = code

    @property
    def message(self) -> str:
        """
        Gets the message of this ErrorModel.

        :return: The message of this ErrorModel.
        :rtype: str
        """
        return self._message

    @message.setter
    def message(self, message: str):
        """
        Sets the message of this ErrorModel.

        :param message: The message of this ErrorModel.
        :type message: str
        """
        if message is None:
            raise ValueError("Invalid value for `message`, must not be `None`")

        self._message = message


# coding: utf-8

from __future__ import absolute_import
from .base_model_ import Model
from datetime import date, datetime
from typing import List, Dict
from ..util import deserialize_model


class ErrorModel(Model):
    """
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    """
    def __init__(self, code: int=None, message: str=None):
        """
        ErrorModel - a model defined in Swagger

        :param code: The code of this ErrorModel.
        :type code: int
        :param message: The message of this ErrorModel.
        :type message: str
        """
        self.swagger_types = {
            'code': int,
            'message': str
        }

        self.attribute_map = {
            'code': 'code',
            'message': 'message'
        }

        self._code = code
        self._message = message

    @classmethod
    def from_dict(cls, dikt) -> 'ErrorModel':
        """
        Returns the dict as a model

        :param dikt: A dict.
        :type: dict
        :return: The errorModel of this ErrorModel.
        :rtype: ErrorModel
        """
        return deserialize_model(dikt, cls)

    @property
    def code(self) -> int:
        """
        Gets the code of this ErrorModel.

        :return: The code of this ErrorModel.
        :rtype: int
        """
        return self._code

    @code.setter
    def code(self, code: int):
        """
        Sets the code of this ErrorModel.

        :param code: The code of this ErrorModel.
        :type code: int
        """
        if code is None:
            raise ValueError("Invalid value for `code`, must not be `None`")

        self._code = code

    @property
    def message(self) -> str:
        """
        Gets the message of this ErrorModel.

        :return: The message of this ErrorModel.
        :rtype: str
        """
        return self._message

    @message.setter
    def message(self, message: str):
        """
        Sets the message of this ErrorModel.

        :param message: The message of this ErrorModel.
        :type message: str
        """
        if message is None:
            raise ValueError("Invalid value for `message`, must not be `None`")

        self._message = message


# coding: utf-8 NOTE: This class is auto generated by the swagger code generator program.     Do not edit the class manually. ErrorModel - a model defined in Swagger          :param code: The code of this ErrorModel.         :type code: int         :param message: The message of this ErrorModel.         :type message: str Returns the dict as a model          :param dikt: A dict.         :type: dict         :return: The errorModel of this ErrorModel.         :rtype: ErrorModel Gets the code of this ErrorModel.          :return: The code of this ErrorModel.         :rtype: int Sets the code of this ErrorModel.          :param code: The code of this ErrorModel.         :type code: int Gets the message of this ErrorModel.          :return: The message of this ErrorModel.         :rtype: str Sets the message of this ErrorModel.          :param message: The message of this ErrorModel.         :type message: str