# coding: utf-8

"""
    KAMONOHASHI API

    A platform for deep learning  # noqa: E501

    OpenAPI spec version: v2
    Contact: kamonohashi-support@jp.nssol.nipponsteel.com
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401

import six


class PreprocessingApiModelsCreateInputModel(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 = {
        'container_image': 'ComponentsContainerImageInputModel',
        'cpu': 'int',
        'entry_point': 'str',
        'git_model': 'ComponentsGitCommitNullableInputModel',
        'gpu': 'int',
        'memo': 'str',
        'memory': 'int',
        'name': 'str'
    }

    attribute_map = {
        'container_image': 'containerImage',
        'cpu': 'cpu',
        'entry_point': 'entryPoint',
        'git_model': 'gitModel',
        'gpu': 'gpu',
        'memo': 'memo',
        'memory': 'memory',
        'name': 'name'
    }

    def __init__(self, container_image=None, cpu=None, entry_point=None, git_model=None, gpu=None, memo=None, memory=None, name=None):  # noqa: E501
        """PreprocessingApiModelsCreateInputModel - a model defined in Swagger"""  # noqa: E501

        self._container_image = None
        self._cpu = None
        self._entry_point = None
        self._git_model = None
        self._gpu = None
        self._memo = None
        self._memory = None
        self._name = None
        self.discriminator = None

        if container_image is not None:
            self.container_image = container_image
        if cpu is not None:
            self.cpu = cpu
        if entry_point is not None:
            self.entry_point = entry_point
        if git_model is not None:
            self.git_model = git_model
        if gpu is not None:
            self.gpu = gpu
        if memo is not None:
            self.memo = memo
        if memory is not None:
            self.memory = memory
        self.name = name

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


        :return: The container_image of this PreprocessingApiModelsCreateInputModel.  # noqa: E501
        :rtype: ComponentsContainerImageInputModel
        """
        return self._container_image

    @container_image.setter
    def container_image(self, container_image):
        """Sets the container_image of this PreprocessingApiModelsCreateInputModel.


        :param container_image: The container_image of this PreprocessingApiModelsCreateInputModel.  # noqa: E501
        :type: ComponentsContainerImageInputModel
        """

        self._container_image = container_image

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


        :return: The cpu of this PreprocessingApiModelsCreateInputModel.  # noqa: E501
        :rtype: int
        """
        return self._cpu

    @cpu.setter
    def cpu(self, cpu):
        """Sets the cpu of this PreprocessingApiModelsCreateInputModel.


        :param cpu: The cpu of this PreprocessingApiModelsCreateInputModel.  # noqa: E501
        :type: int
        """

        self._cpu = cpu

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


        :return: The entry_point of this PreprocessingApiModelsCreateInputModel.  # noqa: E501
        :rtype: str
        """
        return self._entry_point

    @entry_point.setter
    def entry_point(self, entry_point):
        """Sets the entry_point of this PreprocessingApiModelsCreateInputModel.


        :param entry_point: The entry_point of this PreprocessingApiModelsCreateInputModel.  # noqa: E501
        :type: str
        """

        self._entry_point = entry_point

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


        :return: The git_model of this PreprocessingApiModelsCreateInputModel.  # noqa: E501
        :rtype: ComponentsGitCommitNullableInputModel
        """
        return self._git_model

    @git_model.setter
    def git_model(self, git_model):
        """Sets the git_model of this PreprocessingApiModelsCreateInputModel.


        :param git_model: The git_model of this PreprocessingApiModelsCreateInputModel.  # noqa: E501
        :type: ComponentsGitCommitNullableInputModel
        """

        self._git_model = git_model

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


        :return: The gpu of this PreprocessingApiModelsCreateInputModel.  # noqa: E501
        :rtype: int
        """
        return self._gpu

    @gpu.setter
    def gpu(self, gpu):
        """Sets the gpu of this PreprocessingApiModelsCreateInputModel.


        :param gpu: The gpu of this PreprocessingApiModelsCreateInputModel.  # noqa: E501
        :type: int
        """

        self._gpu = gpu

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


        :return: The memo of this PreprocessingApiModelsCreateInputModel.  # noqa: E501
        :rtype: str
        """
        return self._memo

    @memo.setter
    def memo(self, memo):
        """Sets the memo of this PreprocessingApiModelsCreateInputModel.


        :param memo: The memo of this PreprocessingApiModelsCreateInputModel.  # noqa: E501
        :type: str
        """

        self._memo = memo

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


        :return: The memory of this PreprocessingApiModelsCreateInputModel.  # noqa: E501
        :rtype: int
        """
        return self._memory

    @memory.setter
    def memory(self, memory):
        """Sets the memory of this PreprocessingApiModelsCreateInputModel.


        :param memory: The memory of this PreprocessingApiModelsCreateInputModel.  # noqa: E501
        :type: int
        """

        self._memory = memory

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


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

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


        :param name: The name of this PreprocessingApiModelsCreateInputModel.  # noqa: E501
        :type: str
        """
        if name is None:
            raise ValueError("Invalid value for `name`, must not be `None`")  # noqa: E501
        if name is not None and not re.search(r'^[^,!=<>][^,]*$', name):  # noqa: E501
            raise ValueError(r"Invalid value for `name`, must be a follow pattern or equal to `/^[^,!=<>][^,]*$/`")  # noqa: E501

        self._name = name

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

        return self.__dict__ == other.__dict__

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