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

import pprint
import re  # noqa: F401

import six

class AnalysisJobConfig(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 = {
        'analysis_job_id': 'str',
        'client_id': 'str',
        'version': 'str',
        'job_type': 'str'
    }

    attribute_map = {
        'analysis_job_id': 'analysis_job_id',
        'client_id': 'client_id',
        'version': 'version',
        'job_type': 'job_type'
    }

    def __init__(self, analysis_job_id=None, client_id=None, version=None, job_type=None):  # noqa: E501
        """AnalysisJobConfig - a model defined in Swagger"""  # noqa: E501
        self._analysis_job_id = None
        self._client_id = None
        self._version = None
        self._job_type = None
        self.discriminator = None
        self.analysis_job_id = analysis_job_id
        self.client_id = client_id
        self.version = version
        self.job_type = job_type

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


        :return: The analysis_job_id of this AnalysisJobConfig.  # 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 AnalysisJobConfig.


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

        self._analysis_job_id = analysis_job_id

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


        :return: The client_id of this AnalysisJobConfig.  # noqa: E501
        :rtype: str
        """
        return self._client_id

    @client_id.setter
    def client_id(self, client_id):
        """Sets the client_id of this AnalysisJobConfig.


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

        self._client_id = client_id

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


        :return: The version of this AnalysisJobConfig.  # noqa: E501
        :rtype: str
        """
        return self._version

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


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

        self._version = version

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


        :return: The job_type of this AnalysisJobConfig.  # noqa: E501
        :rtype: str
        """
        return self._job_type

    @job_type.setter
    def job_type(self, job_type):
        """Sets the job_type of this AnalysisJobConfig.


        :param job_type: The job_type of this AnalysisJobConfig.  # noqa: E501
        :type: str
        """
        if job_type is None:
            raise ValueError("Invalid value for `job_type`, must not be `None`")  # noqa: E501
        allowed_values = ["train", "predict"]  # noqa: E501
        if job_type not in allowed_values:
            raise ValueError(
                "Invalid value for `job_type` ({0}), must be one of {1}"  # noqa: E501
                .format(job_type, allowed_values)
            )

        self._job_type = job_type

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

        return self.__dict__ == other.__dict__

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