# coding: utf-8

"""
    Curia Platform API

    These are the docs for the curia platform API. To test, generate an authorization token first.  # noqa: E501

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

import pprint
import re  # noqa: F401

import six

class CreateDataQueryDto(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 = {
        'name': 'str',
        'statement': 'str',
        'execution_id': 'str',
        'results': 'list[object]',
        'status': 'str',
        'dataset_id': 'str'
    }

    attribute_map = {
        'name': 'name',
        'statement': 'statement',
        'execution_id': 'executionId',
        'results': 'results',
        'status': 'status',
        'dataset_id': 'datasetId'
    }

    def __init__(self, name=None, statement=None, execution_id=None, results=None, status=None, dataset_id=None):  # noqa: E501
        """CreateDataQueryDto - a model defined in Swagger"""  # noqa: E501
        self._name = None
        self._statement = None
        self._execution_id = None
        self._results = None
        self._status = None
        self._dataset_id = None
        self.discriminator = None
        if name is not None:
            self.name = name
        self.statement = statement
        if execution_id is not None:
            self.execution_id = execution_id
        if results is not None:
            self.results = results
        if status is not None:
            self.status = status
        if dataset_id is not None:
            self.dataset_id = dataset_id

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


        :return: The name of this CreateDataQueryDto.  # noqa: E501
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name):
        """Sets the name of this CreateDataQueryDto.


        :param name: The name of this CreateDataQueryDto.  # noqa: E501
        :type: str
        """

        self._name = name

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


        :return: The statement of this CreateDataQueryDto.  # noqa: E501
        :rtype: str
        """
        return self._statement

    @statement.setter
    def statement(self, statement):
        """Sets the statement of this CreateDataQueryDto.


        :param statement: The statement of this CreateDataQueryDto.  # noqa: E501
        :type: str
        """
        if statement is None:
            raise ValueError("Invalid value for `statement`, must not be `None`")  # noqa: E501

        self._statement = statement

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


        :return: The execution_id of this CreateDataQueryDto.  # noqa: E501
        :rtype: str
        """
        return self._execution_id

    @execution_id.setter
    def execution_id(self, execution_id):
        """Sets the execution_id of this CreateDataQueryDto.


        :param execution_id: The execution_id of this CreateDataQueryDto.  # noqa: E501
        :type: str
        """

        self._execution_id = execution_id

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


        :return: The results of this CreateDataQueryDto.  # noqa: E501
        :rtype: list[object]
        """
        return self._results

    @results.setter
    def results(self, results):
        """Sets the results of this CreateDataQueryDto.


        :param results: The results of this CreateDataQueryDto.  # noqa: E501
        :type: list[object]
        """

        self._results = results

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


        :return: The status of this CreateDataQueryDto.  # noqa: E501
        :rtype: str
        """
        return self._status

    @status.setter
    def status(self, status):
        """Sets the status of this CreateDataQueryDto.


        :param status: The status of this CreateDataQueryDto.  # noqa: E501
        :type: str
        """

        self._status = status

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


        :return: The dataset_id of this CreateDataQueryDto.  # noqa: E501
        :rtype: str
        """
        return self._dataset_id

    @dataset_id.setter
    def dataset_id(self, dataset_id):
        """Sets the dataset_id of this CreateDataQueryDto.


        :param dataset_id: The dataset_id of this CreateDataQueryDto.  # noqa: E501
        :type: str
        """

        self._dataset_id = dataset_id

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

        return self.__dict__ == other.__dict__

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