# 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: 1.11.1
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""

import pprint
import re  # noqa: F401

import six

class ModelBatchJob(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 = {
        'id': 'str',
        'model_batch_id': 'str',
        'analysis_job_id': 'str',
        'analysis_job': 'AnalysisJob',
        'model_jobs': 'list[ModelJob]',
        'cohort_id': 'str',
        'cohort': 'Cohort',
        'outcome_types': 'list[str]',
        'last_updated_by': 'str',
        'created_at': 'datetime',
        'updated_at': 'datetime',
        'version': 'float'
    }

    attribute_map = {
        'id': 'id',
        'model_batch_id': 'modelBatchId',
        'analysis_job_id': 'analysisJobId',
        'analysis_job': 'analysisJob',
        'model_jobs': 'modelJobs',
        'cohort_id': 'cohortId',
        'cohort': 'cohort',
        'outcome_types': 'outcomeTypes',
        'last_updated_by': 'lastUpdatedBy',
        'created_at': 'createdAt',
        'updated_at': 'updatedAt',
        'version': 'version'
    }

    def __init__(self, id=None, model_batch_id=None, analysis_job_id=None, analysis_job=None, model_jobs=None, cohort_id=None, cohort=None, outcome_types=None, last_updated_by=None, created_at=None, updated_at=None, version=None):  # noqa: E501
        """ModelBatchJob - a model defined in Swagger"""  # noqa: E501
        self._id = None
        self._model_batch_id = None
        self._analysis_job_id = None
        self._analysis_job = None
        self._model_jobs = None
        self._cohort_id = None
        self._cohort = None
        self._outcome_types = None
        self._last_updated_by = None
        self._created_at = None
        self._updated_at = None
        self._version = None
        self.discriminator = None
        if id is not None:
            self.id = id
        if model_batch_id is not None:
            self.model_batch_id = model_batch_id
        if analysis_job_id is not None:
            self.analysis_job_id = analysis_job_id
        if analysis_job is not None:
            self.analysis_job = analysis_job
        if model_jobs is not None:
            self.model_jobs = model_jobs
        self.cohort_id = cohort_id
        if cohort is not None:
            self.cohort = cohort
        self.outcome_types = outcome_types
        if last_updated_by is not None:
            self.last_updated_by = last_updated_by
        if created_at is not None:
            self.created_at = created_at
        if updated_at is not None:
            self.updated_at = updated_at
        if version is not None:
            self.version = version

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


        :return: The id of this ModelBatchJob.  # noqa: E501
        :rtype: str
        """
        return self._id

    @id.setter
    def id(self, id):
        """Sets the id of this ModelBatchJob.


        :param id: The id of this ModelBatchJob.  # noqa: E501
        :type: str
        """

        self._id = id

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


        :return: The model_batch_id of this ModelBatchJob.  # noqa: E501
        :rtype: str
        """
        return self._model_batch_id

    @model_batch_id.setter
    def model_batch_id(self, model_batch_id):
        """Sets the model_batch_id of this ModelBatchJob.


        :param model_batch_id: The model_batch_id of this ModelBatchJob.  # noqa: E501
        :type: str
        """

        self._model_batch_id = model_batch_id

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


        :return: The analysis_job_id of this ModelBatchJob.  # noqa: E501
        :rtype: str
        """
        return self._analysis_job_id

    @analysis_job_id.setter
    def analysis_job_id(self, analysis_job_id):
        """Sets the analysis_job_id of this ModelBatchJob.


        :param analysis_job_id: The analysis_job_id of this ModelBatchJob.  # noqa: E501
        :type: str
        """

        self._analysis_job_id = analysis_job_id

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


        :return: The analysis_job of this ModelBatchJob.  # noqa: E501
        :rtype: AnalysisJob
        """
        return self._analysis_job

    @analysis_job.setter
    def analysis_job(self, analysis_job):
        """Sets the analysis_job of this ModelBatchJob.


        :param analysis_job: The analysis_job of this ModelBatchJob.  # noqa: E501
        :type: AnalysisJob
        """

        self._analysis_job = analysis_job

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


        :return: The model_jobs of this ModelBatchJob.  # noqa: E501
        :rtype: list[ModelJob]
        """
        return self._model_jobs

    @model_jobs.setter
    def model_jobs(self, model_jobs):
        """Sets the model_jobs of this ModelBatchJob.


        :param model_jobs: The model_jobs of this ModelBatchJob.  # noqa: E501
        :type: list[ModelJob]
        """

        self._model_jobs = model_jobs

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


        :return: The cohort_id of this ModelBatchJob.  # noqa: E501
        :rtype: str
        """
        return self._cohort_id

    @cohort_id.setter
    def cohort_id(self, cohort_id):
        """Sets the cohort_id of this ModelBatchJob.


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

        self._cohort_id = cohort_id

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


        :return: The cohort of this ModelBatchJob.  # noqa: E501
        :rtype: Cohort
        """
        return self._cohort

    @cohort.setter
    def cohort(self, cohort):
        """Sets the cohort of this ModelBatchJob.


        :param cohort: The cohort of this ModelBatchJob.  # noqa: E501
        :type: Cohort
        """

        self._cohort = cohort

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


        :return: The outcome_types of this ModelBatchJob.  # noqa: E501
        :rtype: list[str]
        """
        return self._outcome_types

    @outcome_types.setter
    def outcome_types(self, outcome_types):
        """Sets the outcome_types of this ModelBatchJob.


        :param outcome_types: The outcome_types of this ModelBatchJob.  # noqa: E501
        :type: list[str]
        """
        if outcome_types is None:
            raise ValueError("Invalid value for `outcome_types`, must not be `None`")  # noqa: E501

        self._outcome_types = outcome_types

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


        :return: The last_updated_by of this ModelBatchJob.  # noqa: E501
        :rtype: str
        """
        return self._last_updated_by

    @last_updated_by.setter
    def last_updated_by(self, last_updated_by):
        """Sets the last_updated_by of this ModelBatchJob.


        :param last_updated_by: The last_updated_by of this ModelBatchJob.  # noqa: E501
        :type: str
        """

        self._last_updated_by = last_updated_by

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


        :return: The created_at of this ModelBatchJob.  # noqa: E501
        :rtype: datetime
        """
        return self._created_at

    @created_at.setter
    def created_at(self, created_at):
        """Sets the created_at of this ModelBatchJob.


        :param created_at: The created_at of this ModelBatchJob.  # noqa: E501
        :type: datetime
        """

        self._created_at = created_at

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


        :return: The updated_at of this ModelBatchJob.  # noqa: E501
        :rtype: datetime
        """
        return self._updated_at

    @updated_at.setter
    def updated_at(self, updated_at):
        """Sets the updated_at of this ModelBatchJob.


        :param updated_at: The updated_at of this ModelBatchJob.  # noqa: E501
        :type: datetime
        """

        self._updated_at = updated_at

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


        :return: The version of this ModelBatchJob.  # noqa: E501
        :rtype: float
        """
        return self._version

    @version.setter
    def version(self, version):
        """Sets the version of this ModelBatchJob.


        :param version: The version of this ModelBatchJob.  # noqa: E501
        :type: float
        """

        self._version = version

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

        return self.__dict__ == other.__dict__

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