# coding: utf-8

"""
    Hopsworks api

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

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

import pprint
import re  # noqa: F401

import six
from swagger_client.models.cluster_analysis_dto import ClusterAnalysisDTO  # noqa: F401,E501
from swagger_client.models.descriptive_stats_dto import DescriptiveStatsDTO  # noqa: F401,E501
from swagger_client.models.feature_correlation_matrix_dto import FeatureCorrelationMatrixDTO  # noqa: F401,E501
from swagger_client.models.feature_distributions_dto import FeatureDistributionsDTO  # noqa: F401,E501
from swagger_client.models.feature_dto import FeatureDTO  # noqa: F401,E501
from swagger_client.models.featuregroup_dto import FeaturegroupDTO  # noqa: F401,E501
from swagger_client.models.featurestore_job_dto import FeaturestoreJobDTO  # noqa: F401,E501


class OnDemandFeaturegroupDTO(FeaturegroupDTO):
    """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 = {
        'jdbc_connector_id': 'int',
        'jdbc_connector_name': 'str',
        'query': 'str'
    }

    attribute_map = {
        'jdbc_connector_id': 'jdbcConnectorId',
        'jdbc_connector_name': 'jdbcConnectorName',
        'query': 'query'
    }

    def __init__(self, jdbc_connector_id=None, jdbc_connector_name=None, query=None):  # noqa: E501
        """OnDemandFeaturegroupDTO - a model defined in Swagger"""  # noqa: E501
        self._jdbc_connector_id = None
        self._jdbc_connector_name = None
        self._query = None
        self.discriminator = None
        if jdbc_connector_id is not None:
            self.jdbc_connector_id = jdbc_connector_id
        if jdbc_connector_name is not None:
            self.jdbc_connector_name = jdbc_connector_name
        if query is not None:
            self.query = query

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


        :return: The jdbc_connector_id of this OnDemandFeaturegroupDTO.  # noqa: E501
        :rtype: int
        """
        return self._jdbc_connector_id

    @jdbc_connector_id.setter
    def jdbc_connector_id(self, jdbc_connector_id):
        """Sets the jdbc_connector_id of this OnDemandFeaturegroupDTO.


        :param jdbc_connector_id: The jdbc_connector_id of this OnDemandFeaturegroupDTO.  # noqa: E501
        :type: int
        """

        self._jdbc_connector_id = jdbc_connector_id

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


        :return: The jdbc_connector_name of this OnDemandFeaturegroupDTO.  # noqa: E501
        :rtype: str
        """
        return self._jdbc_connector_name

    @jdbc_connector_name.setter
    def jdbc_connector_name(self, jdbc_connector_name):
        """Sets the jdbc_connector_name of this OnDemandFeaturegroupDTO.


        :param jdbc_connector_name: The jdbc_connector_name of this OnDemandFeaturegroupDTO.  # noqa: E501
        :type: str
        """

        self._jdbc_connector_name = jdbc_connector_name

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


        :return: The query of this OnDemandFeaturegroupDTO.  # noqa: E501
        :rtype: str
        """
        return self._query

    @query.setter
    def query(self, query):
        """Sets the query of this OnDemandFeaturegroupDTO.


        :param query: The query of this OnDemandFeaturegroupDTO.  # noqa: E501
        :type: str
        """

        self._query = query

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

        return self.__dict__ == other.__dict__

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