# coding: utf-8

"""
    Managed Ray API

    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E501

    The version of the OpenAPI document: 0.1.0
    Generated by: https://openapi-generator.tech
"""


import pprint
import re  # noqa: F401

import six

from openapi_client.configuration import Configuration


class JobQueueSpecResponse(object):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """

    """
    Attributes:
      openapi_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.
    """
    openapi_types = {
        'name': 'str',
        'execution_mode': 'str',
        'compute_config': 'str',
        'max_concurrency': 'int',
        'idle_timeout_s': 'int'
    }

    attribute_map = {
        'name': 'name',
        'execution_mode': 'execution_mode',
        'compute_config': 'compute_config',
        'max_concurrency': 'max_concurrency',
        'idle_timeout_s': 'idle_timeout_s'
    }

    def __init__(self, name=None, execution_mode=None, compute_config=None, max_concurrency=None, idle_timeout_s=None, local_vars_configuration=None):  # noqa: E501
        """JobQueueSpecResponse - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._name = None
        self._execution_mode = None
        self._compute_config = None
        self._max_concurrency = None
        self._idle_timeout_s = None
        self.discriminator = None

        if name is not None:
            self.name = name
        if execution_mode is not None:
            self.execution_mode = execution_mode
        if compute_config is not None:
            self.compute_config = compute_config
        if max_concurrency is not None:
            self.max_concurrency = max_concurrency
        if idle_timeout_s is not None:
            self.idle_timeout_s = idle_timeout_s

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

        Name of the job queue.  # noqa: E501

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

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

        Name of the job queue.  # noqa: E501

        :param name: The name of this JobQueueSpecResponse.  # noqa: E501
        :type: str
        """

        self._name = name

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

        Execution mode (FIFO, PRIORITY).  # noqa: E501

        :return: The execution_mode of this JobQueueSpecResponse.  # noqa: E501
        :rtype: str
        """
        return self._execution_mode

    @execution_mode.setter
    def execution_mode(self, execution_mode):
        """Sets the execution_mode of this JobQueueSpecResponse.

        Execution mode (FIFO, PRIORITY).  # noqa: E501

        :param execution_mode: The execution_mode of this JobQueueSpecResponse.  # noqa: E501
        :type: str
        """

        self._execution_mode = execution_mode

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

        Compute config name.  # noqa: E501

        :return: The compute_config of this JobQueueSpecResponse.  # noqa: E501
        :rtype: str
        """
        return self._compute_config

    @compute_config.setter
    def compute_config(self, compute_config):
        """Sets the compute_config of this JobQueueSpecResponse.

        Compute config name.  # noqa: E501

        :param compute_config: The compute_config of this JobQueueSpecResponse.  # noqa: E501
        :type: str
        """

        self._compute_config = compute_config

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

        Max concurrent jobs.  # noqa: E501

        :return: The max_concurrency of this JobQueueSpecResponse.  # noqa: E501
        :rtype: int
        """
        return self._max_concurrency

    @max_concurrency.setter
    def max_concurrency(self, max_concurrency):
        """Sets the max_concurrency of this JobQueueSpecResponse.

        Max concurrent jobs.  # noqa: E501

        :param max_concurrency: The max_concurrency of this JobQueueSpecResponse.  # noqa: E501
        :type: int
        """

        self._max_concurrency = max_concurrency

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

        Idle timeout in seconds.  # noqa: E501

        :return: The idle_timeout_s of this JobQueueSpecResponse.  # noqa: E501
        :rtype: int
        """
        return self._idle_timeout_s

    @idle_timeout_s.setter
    def idle_timeout_s(self, idle_timeout_s):
        """Sets the idle_timeout_s of this JobQueueSpecResponse.

        Idle timeout in seconds.  # noqa: E501

        :param idle_timeout_s: The idle_timeout_s of this JobQueueSpecResponse.  # noqa: E501
        :type: int
        """

        self._idle_timeout_s = idle_timeout_s

    def to_dict(self):
        """Returns the model properties as a dict"""
        result = {}

        for attr, _ in six.iteritems(self.openapi_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

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

        return self.to_dict() == other.to_dict()

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

        return self.to_dict() != other.to_dict()
