# 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 ValidationErrorGroup(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 = {
        'multiple_matches_columns': 'list[MultipleMatchesColumn]',
        'missing_columns': 'list[MissingColumn]',
        'wrong_types': 'list[WrongColumnType]',
        'error_count': 'int'
    }

    attribute_map = {
        'multiple_matches_columns': 'multipleMatchesColumns',
        'missing_columns': 'missingColumns',
        'wrong_types': 'wrongTypes',
        'error_count': 'errorCount'
    }

    def __init__(self, multiple_matches_columns=None, missing_columns=None, wrong_types=None, error_count=None):  # noqa: E501
        """ValidationErrorGroup - a model defined in Swagger"""  # noqa: E501
        self._multiple_matches_columns = None
        self._missing_columns = None
        self._wrong_types = None
        self._error_count = None
        self.discriminator = None
        if multiple_matches_columns is not None:
            self.multiple_matches_columns = multiple_matches_columns
        if missing_columns is not None:
            self.missing_columns = missing_columns
        if wrong_types is not None:
            self.wrong_types = wrong_types
        if error_count is not None:
            self.error_count = error_count

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


        :return: The multiple_matches_columns of this ValidationErrorGroup.  # noqa: E501
        :rtype: list[MultipleMatchesColumn]
        """
        return self._multiple_matches_columns

    @multiple_matches_columns.setter
    def multiple_matches_columns(self, multiple_matches_columns):
        """Sets the multiple_matches_columns of this ValidationErrorGroup.


        :param multiple_matches_columns: The multiple_matches_columns of this ValidationErrorGroup.  # noqa: E501
        :type: list[MultipleMatchesColumn]
        """

        self._multiple_matches_columns = multiple_matches_columns

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


        :return: The missing_columns of this ValidationErrorGroup.  # noqa: E501
        :rtype: list[MissingColumn]
        """
        return self._missing_columns

    @missing_columns.setter
    def missing_columns(self, missing_columns):
        """Sets the missing_columns of this ValidationErrorGroup.


        :param missing_columns: The missing_columns of this ValidationErrorGroup.  # noqa: E501
        :type: list[MissingColumn]
        """

        self._missing_columns = missing_columns

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


        :return: The wrong_types of this ValidationErrorGroup.  # noqa: E501
        :rtype: list[WrongColumnType]
        """
        return self._wrong_types

    @wrong_types.setter
    def wrong_types(self, wrong_types):
        """Sets the wrong_types of this ValidationErrorGroup.


        :param wrong_types: The wrong_types of this ValidationErrorGroup.  # noqa: E501
        :type: list[WrongColumnType]
        """

        self._wrong_types = wrong_types

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


        :return: The error_count of this ValidationErrorGroup.  # noqa: E501
        :rtype: int
        """
        return self._error_count

    @error_count.setter
    def error_count(self, error_count):
        """Sets the error_count of this ValidationErrorGroup.


        :param error_count: The error_count of this ValidationErrorGroup.  # noqa: E501
        :type: int
        """

        self._error_count = error_count

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

        return self.__dict__ == other.__dict__

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