# coding: utf-8

"""
    CartoVista REST API

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

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

import pprint
import re  # noqa: F401

import six

class CartoVistaException(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 = {
        'message': 'str',
        'inner_exception': 'OneOfCartoVistaExceptionInnerException',
        'source': 'str',
        'stack_trace': 'str',
        'code': 'CartoVistaExceptionCodeEnum',
        'code_details': 'CartoVistaExceptionCodeEnum',
        'additional_information': 'list[str]'
    }

    attribute_map = {
        'message': 'Message',
        'inner_exception': 'InnerException',
        'source': 'Source',
        'stack_trace': 'StackTrace',
        'code': 'code',
        'code_details': 'codeDetails',
        'additional_information': 'additionalInformation'
    }

    def __init__(self, message=None, inner_exception=None, source=None, stack_trace=None, code=None, code_details=None, additional_information=None):  # noqa: E501
        """CartoVistaException - a model defined in Swagger"""  # noqa: E501
        self._message = None
        self._inner_exception = None
        self._source = None
        self._stack_trace = None
        self._code = None
        self._code_details = None
        self._additional_information = None
        self.discriminator = None
        if message is not None:
            self.message = message
        if inner_exception is not None:
            self.inner_exception = inner_exception
        if source is not None:
            self.source = source
        if stack_trace is not None:
            self.stack_trace = stack_trace
        if code is not None:
            self.code = code
        if code_details is not None:
            self.code_details = code_details
        if additional_information is not None:
            self.additional_information = additional_information

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


        :return: The message of this CartoVistaException.  # noqa: E501
        :rtype: str
        """
        return self._message

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


        :param message: The message of this CartoVistaException.  # noqa: E501
        :type: str
        """

        self._message = message

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


        :return: The inner_exception of this CartoVistaException.  # noqa: E501
        :rtype: OneOfCartoVistaExceptionInnerException
        """
        return self._inner_exception

    @inner_exception.setter
    def inner_exception(self, inner_exception):
        """Sets the inner_exception of this CartoVistaException.


        :param inner_exception: The inner_exception of this CartoVistaException.  # noqa: E501
        :type: OneOfCartoVistaExceptionInnerException
        """

        self._inner_exception = inner_exception

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


        :return: The source of this CartoVistaException.  # noqa: E501
        :rtype: str
        """
        return self._source

    @source.setter
    def source(self, source):
        """Sets the source of this CartoVistaException.


        :param source: The source of this CartoVistaException.  # noqa: E501
        :type: str
        """

        self._source = source

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


        :return: The stack_trace of this CartoVistaException.  # noqa: E501
        :rtype: str
        """
        return self._stack_trace

    @stack_trace.setter
    def stack_trace(self, stack_trace):
        """Sets the stack_trace of this CartoVistaException.


        :param stack_trace: The stack_trace of this CartoVistaException.  # noqa: E501
        :type: str
        """

        self._stack_trace = stack_trace

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


        :return: The code of this CartoVistaException.  # noqa: E501
        :rtype: CartoVistaExceptionCodeEnum
        """
        return self._code

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


        :param code: The code of this CartoVistaException.  # noqa: E501
        :type: CartoVistaExceptionCodeEnum
        """

        self._code = code

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


        :return: The code_details of this CartoVistaException.  # noqa: E501
        :rtype: CartoVistaExceptionCodeEnum
        """
        return self._code_details

    @code_details.setter
    def code_details(self, code_details):
        """Sets the code_details of this CartoVistaException.


        :param code_details: The code_details of this CartoVistaException.  # noqa: E501
        :type: CartoVistaExceptionCodeEnum
        """

        self._code_details = code_details

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


        :return: The additional_information of this CartoVistaException.  # noqa: E501
        :rtype: list[str]
        """
        return self._additional_information

    @additional_information.setter
    def additional_information(self, additional_information):
        """Sets the additional_information of this CartoVistaException.


        :param additional_information: The additional_information of this CartoVistaException.  # noqa: E501
        :type: list[str]
        """

        self._additional_information = additional_information

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

        return self.__dict__ == other.__dict__

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