# coding: utf-8

"""
    external/v1/auth_service.proto

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

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

    NOTE
    ----
    standard swagger-codegen-cli for this python client has been modified
    by custom templates. The purpose of these templates is to include
    typing information in the API and Model code. Please refer to the
    main grid repository for more info
"""

import pprint
import re  # noqa: F401

from typing import TYPE_CHECKING

import six

if TYPE_CHECKING:
    from datetime import datetime
    from lightning_cloud.openapi.models import *

class V1SlurmV1JobStatus(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 = {
        'cluster': 'str',
        'end': 'datetime',
        'exit_code_return_code': 'int',
        'exit_code_status': 'str',
        'nodes': 'str',
        'start': 'datetime'
    }

    attribute_map = {
        'cluster': 'cluster',
        'end': 'end',
        'exit_code_return_code': 'exitCodeReturnCode',
        'exit_code_status': 'exitCodeStatus',
        'nodes': 'nodes',
        'start': 'start'
    }

    def __init__(self, cluster: 'str' =None, end: 'datetime' =None, exit_code_return_code: 'int' =None, exit_code_status: 'str' =None, nodes: 'str' =None, start: 'datetime' =None):  # noqa: E501
        """V1SlurmV1JobStatus - a model defined in Swagger"""  # noqa: E501
        self._cluster = None
        self._end = None
        self._exit_code_return_code = None
        self._exit_code_status = None
        self._nodes = None
        self._start = None
        self.discriminator = None
        if cluster is not None:
            self.cluster = cluster
        if end is not None:
            self.end = end
        if exit_code_return_code is not None:
            self.exit_code_return_code = exit_code_return_code
        if exit_code_status is not None:
            self.exit_code_status = exit_code_status
        if nodes is not None:
            self.nodes = nodes
        if start is not None:
            self.start = start

    @property
    def cluster(self) -> 'str':
        """Gets the cluster of this V1SlurmV1JobStatus.  # noqa: E501


        :return: The cluster of this V1SlurmV1JobStatus.  # noqa: E501
        :rtype: str
        """
        return self._cluster

    @cluster.setter
    def cluster(self, cluster: 'str'):
        """Sets the cluster of this V1SlurmV1JobStatus.


        :param cluster: The cluster of this V1SlurmV1JobStatus.  # noqa: E501
        :type: str
        """

        self._cluster = cluster

    @property
    def end(self) -> 'datetime':
        """Gets the end of this V1SlurmV1JobStatus.  # noqa: E501


        :return: The end of this V1SlurmV1JobStatus.  # noqa: E501
        :rtype: datetime
        """
        return self._end

    @end.setter
    def end(self, end: 'datetime'):
        """Sets the end of this V1SlurmV1JobStatus.


        :param end: The end of this V1SlurmV1JobStatus.  # noqa: E501
        :type: datetime
        """

        self._end = end

    @property
    def exit_code_return_code(self) -> 'int':
        """Gets the exit_code_return_code of this V1SlurmV1JobStatus.  # noqa: E501


        :return: The exit_code_return_code of this V1SlurmV1JobStatus.  # noqa: E501
        :rtype: int
        """
        return self._exit_code_return_code

    @exit_code_return_code.setter
    def exit_code_return_code(self, exit_code_return_code: 'int'):
        """Sets the exit_code_return_code of this V1SlurmV1JobStatus.


        :param exit_code_return_code: The exit_code_return_code of this V1SlurmV1JobStatus.  # noqa: E501
        :type: int
        """

        self._exit_code_return_code = exit_code_return_code

    @property
    def exit_code_status(self) -> 'str':
        """Gets the exit_code_status of this V1SlurmV1JobStatus.  # noqa: E501


        :return: The exit_code_status of this V1SlurmV1JobStatus.  # noqa: E501
        :rtype: str
        """
        return self._exit_code_status

    @exit_code_status.setter
    def exit_code_status(self, exit_code_status: 'str'):
        """Sets the exit_code_status of this V1SlurmV1JobStatus.


        :param exit_code_status: The exit_code_status of this V1SlurmV1JobStatus.  # noqa: E501
        :type: str
        """

        self._exit_code_status = exit_code_status

    @property
    def nodes(self) -> 'str':
        """Gets the nodes of this V1SlurmV1JobStatus.  # noqa: E501


        :return: The nodes of this V1SlurmV1JobStatus.  # noqa: E501
        :rtype: str
        """
        return self._nodes

    @nodes.setter
    def nodes(self, nodes: 'str'):
        """Sets the nodes of this V1SlurmV1JobStatus.


        :param nodes: The nodes of this V1SlurmV1JobStatus.  # noqa: E501
        :type: str
        """

        self._nodes = nodes

    @property
    def start(self) -> 'datetime':
        """Gets the start of this V1SlurmV1JobStatus.  # noqa: E501


        :return: The start of this V1SlurmV1JobStatus.  # noqa: E501
        :rtype: datetime
        """
        return self._start

    @start.setter
    def start(self, start: 'datetime'):
        """Sets the start of this V1SlurmV1JobStatus.


        :param start: The start of this V1SlurmV1JobStatus.  # noqa: E501
        :type: datetime
        """

        self._start = start

    def to_dict(self) -> dict:
        """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(V1SlurmV1JobStatus, dict):
            for key, value in self.items():
                result[key] = value

        return result

    def to_str(self) -> str:
        """Returns the string representation of the model"""
        return pprint.pformat(self.to_dict())

    def __repr__(self) -> str:
        """For `print` and `pprint`"""
        return self.to_str()

    def __eq__(self, other: 'V1SlurmV1JobStatus') -> bool:
        """Returns true if both objects are equal"""
        if not isinstance(other, V1SlurmV1JobStatus):
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other: 'V1SlurmV1JobStatus') -> bool:
        """Returns true if both objects are not equal"""
        return not self == other
