# coding: utf-8

"""
    AristaFlowREST/LicenceManager

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

    OpenAPI spec version: 3.0.0
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""

import pprint
import re  # noqa: F401

import six
from af_licence_manager.models.ilm_exception import IlmException  # noqa: F401,E501

class InvalidDataTypeException(IlmException):
    """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 = {
        'param_name': 'str',
        'inst_id': 'str',
        'de_id': 'int',
        'act_data_type': 'str',
        'exp_data_type': 'str'
    }
    if hasattr(IlmException, "swagger_types"):
        swagger_types.update(IlmException.swagger_types)

    attribute_map = {
        'param_name': 'paramName',
        'inst_id': 'instId',
        'de_id': 'deId',
        'act_data_type': 'actDataType',
        'exp_data_type': 'expDataType'
    }
    if hasattr(IlmException, "attribute_map"):
        attribute_map.update(IlmException.attribute_map)

    def __init__(self, param_name=None, inst_id=None, de_id=None, act_data_type=None, exp_data_type=None, *args, **kwargs):  # noqa: E501
        """InvalidDataTypeException - a model defined in Swagger"""  # noqa: E501
        self._param_name = None
        self._inst_id = None
        self._de_id = None
        self._act_data_type = None
        self._exp_data_type = None
        if not(hasattr(self, "discriminator")) or not(self.discriminator):
            self.discriminator = None
        if param_name is not None:
            self.param_name = param_name
        if inst_id is not None:
            self.inst_id = inst_id
        if de_id is not None:
            self.de_id = de_id
        if act_data_type is not None:
            self.act_data_type = act_data_type
        if exp_data_type is not None:
            self.exp_data_type = exp_data_type
        IlmException.__init__(self, *args, **kwargs)

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


        :return: The param_name of this InvalidDataTypeException.  # noqa: E501
        :rtype: str
        """
        return self._param_name

    @param_name.setter
    def param_name(self, param_name):
        """Sets the param_name of this InvalidDataTypeException.


        :param param_name: The param_name of this InvalidDataTypeException.  # noqa: E501
        :type: str
        """

        self._param_name = param_name

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


        :return: The inst_id of this InvalidDataTypeException.  # noqa: E501
        :rtype: str
        """
        return self._inst_id

    @inst_id.setter
    def inst_id(self, inst_id):
        """Sets the inst_id of this InvalidDataTypeException.


        :param inst_id: The inst_id of this InvalidDataTypeException.  # noqa: E501
        :type: str
        """

        self._inst_id = inst_id

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


        :return: The de_id of this InvalidDataTypeException.  # noqa: E501
        :rtype: int
        """
        return self._de_id

    @de_id.setter
    def de_id(self, de_id):
        """Sets the de_id of this InvalidDataTypeException.


        :param de_id: The de_id of this InvalidDataTypeException.  # noqa: E501
        :type: int
        """

        self._de_id = de_id

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


        :return: The act_data_type of this InvalidDataTypeException.  # noqa: E501
        :rtype: str
        """
        return self._act_data_type

    @act_data_type.setter
    def act_data_type(self, act_data_type):
        """Sets the act_data_type of this InvalidDataTypeException.


        :param act_data_type: The act_data_type of this InvalidDataTypeException.  # noqa: E501
        :type: str
        """
        allowed_values = ["INTEGER", "FLOAT", "STRING", "BOOLEAN", "DATE", "URI", "USERDEFINED"]  # noqa: E501
        if act_data_type not in allowed_values:
            raise ValueError(
                "Invalid value for `act_data_type` ({0}), must be one of {1}"  # noqa: E501
                .format(act_data_type, allowed_values)
            )

        self._act_data_type = act_data_type

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


        :return: The exp_data_type of this InvalidDataTypeException.  # noqa: E501
        :rtype: str
        """
        return self._exp_data_type

    @exp_data_type.setter
    def exp_data_type(self, exp_data_type):
        """Sets the exp_data_type of this InvalidDataTypeException.


        :param exp_data_type: The exp_data_type of this InvalidDataTypeException.  # noqa: E501
        :type: str
        """
        allowed_values = ["INTEGER", "FLOAT", "STRING", "BOOLEAN", "DATE", "URI", "USERDEFINED"]  # noqa: E501
        if exp_data_type not in allowed_values:
            raise ValueError(
                "Invalid value for `exp_data_type` ({0}), must be one of {1}"  # noqa: E501
                .format(exp_data_type, allowed_values)
            )

        self._exp_data_type = exp_data_type

    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(InvalidDataTypeException, 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, InvalidDataTypeException):
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        return not self == other
