# coding: utf-8

"""
    Adobe Experience Manager OSGI config (AEM) API

    Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API  # noqa: E501

    OpenAPI spec version: 1.0.0-pre.0
    Contact: opensource@shinesolutions.com
    Generated by: https://openapi-generator.tech
"""


import pprint
import re  # noqa: F401

import six


class OrgApacheSlingEventJobsQueueConfigurationProperties(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 = {
        'queue_name': 'ConfigNodePropertyString',
        'queue_topics': 'ConfigNodePropertyArray',
        'queue_type': 'ConfigNodePropertyDropDown',
        'queue_priority': 'ConfigNodePropertyDropDown',
        'queue_retries': 'ConfigNodePropertyInteger',
        'queue_retrydelay': 'ConfigNodePropertyInteger',
        'queue_maxparallel': 'ConfigNodePropertyFloat',
        'queue_keep_jobs': 'ConfigNodePropertyBoolean',
        'queue_prefer_run_on_creation_instance': 'ConfigNodePropertyBoolean',
        'queue_thread_pool_size': 'ConfigNodePropertyInteger',
        'service_ranking': 'ConfigNodePropertyInteger'
    }

    attribute_map = {
        'queue_name': 'queue.name',
        'queue_topics': 'queue.topics',
        'queue_type': 'queue.type',
        'queue_priority': 'queue.priority',
        'queue_retries': 'queue.retries',
        'queue_retrydelay': 'queue.retrydelay',
        'queue_maxparallel': 'queue.maxparallel',
        'queue_keep_jobs': 'queue.keepJobs',
        'queue_prefer_run_on_creation_instance': 'queue.preferRunOnCreationInstance',
        'queue_thread_pool_size': 'queue.threadPoolSize',
        'service_ranking': 'service.ranking'
    }

    def __init__(self, queue_name=None, queue_topics=None, queue_type=None, queue_priority=None, queue_retries=None, queue_retrydelay=None, queue_maxparallel=None, queue_keep_jobs=None, queue_prefer_run_on_creation_instance=None, queue_thread_pool_size=None, service_ranking=None):  # noqa: E501
        """OrgApacheSlingEventJobsQueueConfigurationProperties - a model defined in OpenAPI"""  # noqa: E501

        self._queue_name = None
        self._queue_topics = None
        self._queue_type = None
        self._queue_priority = None
        self._queue_retries = None
        self._queue_retrydelay = None
        self._queue_maxparallel = None
        self._queue_keep_jobs = None
        self._queue_prefer_run_on_creation_instance = None
        self._queue_thread_pool_size = None
        self._service_ranking = None
        self.discriminator = None

        if queue_name is not None:
            self.queue_name = queue_name
        if queue_topics is not None:
            self.queue_topics = queue_topics
        if queue_type is not None:
            self.queue_type = queue_type
        if queue_priority is not None:
            self.queue_priority = queue_priority
        if queue_retries is not None:
            self.queue_retries = queue_retries
        if queue_retrydelay is not None:
            self.queue_retrydelay = queue_retrydelay
        if queue_maxparallel is not None:
            self.queue_maxparallel = queue_maxparallel
        if queue_keep_jobs is not None:
            self.queue_keep_jobs = queue_keep_jobs
        if queue_prefer_run_on_creation_instance is not None:
            self.queue_prefer_run_on_creation_instance = queue_prefer_run_on_creation_instance
        if queue_thread_pool_size is not None:
            self.queue_thread_pool_size = queue_thread_pool_size
        if service_ranking is not None:
            self.service_ranking = service_ranking

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


        :return: The queue_name of this OrgApacheSlingEventJobsQueueConfigurationProperties.  # noqa: E501
        :rtype: ConfigNodePropertyString
        """
        return self._queue_name

    @queue_name.setter
    def queue_name(self, queue_name):
        """Sets the queue_name of this OrgApacheSlingEventJobsQueueConfigurationProperties.


        :param queue_name: The queue_name of this OrgApacheSlingEventJobsQueueConfigurationProperties.  # noqa: E501
        :type: ConfigNodePropertyString
        """

        self._queue_name = queue_name

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


        :return: The queue_topics of this OrgApacheSlingEventJobsQueueConfigurationProperties.  # noqa: E501
        :rtype: ConfigNodePropertyArray
        """
        return self._queue_topics

    @queue_topics.setter
    def queue_topics(self, queue_topics):
        """Sets the queue_topics of this OrgApacheSlingEventJobsQueueConfigurationProperties.


        :param queue_topics: The queue_topics of this OrgApacheSlingEventJobsQueueConfigurationProperties.  # noqa: E501
        :type: ConfigNodePropertyArray
        """

        self._queue_topics = queue_topics

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


        :return: The queue_type of this OrgApacheSlingEventJobsQueueConfigurationProperties.  # noqa: E501
        :rtype: ConfigNodePropertyDropDown
        """
        return self._queue_type

    @queue_type.setter
    def queue_type(self, queue_type):
        """Sets the queue_type of this OrgApacheSlingEventJobsQueueConfigurationProperties.


        :param queue_type: The queue_type of this OrgApacheSlingEventJobsQueueConfigurationProperties.  # noqa: E501
        :type: ConfigNodePropertyDropDown
        """

        self._queue_type = queue_type

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


        :return: The queue_priority of this OrgApacheSlingEventJobsQueueConfigurationProperties.  # noqa: E501
        :rtype: ConfigNodePropertyDropDown
        """
        return self._queue_priority

    @queue_priority.setter
    def queue_priority(self, queue_priority):
        """Sets the queue_priority of this OrgApacheSlingEventJobsQueueConfigurationProperties.


        :param queue_priority: The queue_priority of this OrgApacheSlingEventJobsQueueConfigurationProperties.  # noqa: E501
        :type: ConfigNodePropertyDropDown
        """

        self._queue_priority = queue_priority

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


        :return: The queue_retries of this OrgApacheSlingEventJobsQueueConfigurationProperties.  # noqa: E501
        :rtype: ConfigNodePropertyInteger
        """
        return self._queue_retries

    @queue_retries.setter
    def queue_retries(self, queue_retries):
        """Sets the queue_retries of this OrgApacheSlingEventJobsQueueConfigurationProperties.


        :param queue_retries: The queue_retries of this OrgApacheSlingEventJobsQueueConfigurationProperties.  # noqa: E501
        :type: ConfigNodePropertyInteger
        """

        self._queue_retries = queue_retries

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


        :return: The queue_retrydelay of this OrgApacheSlingEventJobsQueueConfigurationProperties.  # noqa: E501
        :rtype: ConfigNodePropertyInteger
        """
        return self._queue_retrydelay

    @queue_retrydelay.setter
    def queue_retrydelay(self, queue_retrydelay):
        """Sets the queue_retrydelay of this OrgApacheSlingEventJobsQueueConfigurationProperties.


        :param queue_retrydelay: The queue_retrydelay of this OrgApacheSlingEventJobsQueueConfigurationProperties.  # noqa: E501
        :type: ConfigNodePropertyInteger
        """

        self._queue_retrydelay = queue_retrydelay

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


        :return: The queue_maxparallel of this OrgApacheSlingEventJobsQueueConfigurationProperties.  # noqa: E501
        :rtype: ConfigNodePropertyFloat
        """
        return self._queue_maxparallel

    @queue_maxparallel.setter
    def queue_maxparallel(self, queue_maxparallel):
        """Sets the queue_maxparallel of this OrgApacheSlingEventJobsQueueConfigurationProperties.


        :param queue_maxparallel: The queue_maxparallel of this OrgApacheSlingEventJobsQueueConfigurationProperties.  # noqa: E501
        :type: ConfigNodePropertyFloat
        """

        self._queue_maxparallel = queue_maxparallel

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


        :return: The queue_keep_jobs of this OrgApacheSlingEventJobsQueueConfigurationProperties.  # noqa: E501
        :rtype: ConfigNodePropertyBoolean
        """
        return self._queue_keep_jobs

    @queue_keep_jobs.setter
    def queue_keep_jobs(self, queue_keep_jobs):
        """Sets the queue_keep_jobs of this OrgApacheSlingEventJobsQueueConfigurationProperties.


        :param queue_keep_jobs: The queue_keep_jobs of this OrgApacheSlingEventJobsQueueConfigurationProperties.  # noqa: E501
        :type: ConfigNodePropertyBoolean
        """

        self._queue_keep_jobs = queue_keep_jobs

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


        :return: The queue_prefer_run_on_creation_instance of this OrgApacheSlingEventJobsQueueConfigurationProperties.  # noqa: E501
        :rtype: ConfigNodePropertyBoolean
        """
        return self._queue_prefer_run_on_creation_instance

    @queue_prefer_run_on_creation_instance.setter
    def queue_prefer_run_on_creation_instance(self, queue_prefer_run_on_creation_instance):
        """Sets the queue_prefer_run_on_creation_instance of this OrgApacheSlingEventJobsQueueConfigurationProperties.


        :param queue_prefer_run_on_creation_instance: The queue_prefer_run_on_creation_instance of this OrgApacheSlingEventJobsQueueConfigurationProperties.  # noqa: E501
        :type: ConfigNodePropertyBoolean
        """

        self._queue_prefer_run_on_creation_instance = queue_prefer_run_on_creation_instance

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


        :return: The queue_thread_pool_size of this OrgApacheSlingEventJobsQueueConfigurationProperties.  # noqa: E501
        :rtype: ConfigNodePropertyInteger
        """
        return self._queue_thread_pool_size

    @queue_thread_pool_size.setter
    def queue_thread_pool_size(self, queue_thread_pool_size):
        """Sets the queue_thread_pool_size of this OrgApacheSlingEventJobsQueueConfigurationProperties.


        :param queue_thread_pool_size: The queue_thread_pool_size of this OrgApacheSlingEventJobsQueueConfigurationProperties.  # noqa: E501
        :type: ConfigNodePropertyInteger
        """

        self._queue_thread_pool_size = queue_thread_pool_size

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


        :return: The service_ranking of this OrgApacheSlingEventJobsQueueConfigurationProperties.  # noqa: E501
        :rtype: ConfigNodePropertyInteger
        """
        return self._service_ranking

    @service_ranking.setter
    def service_ranking(self, service_ranking):
        """Sets the service_ranking of this OrgApacheSlingEventJobsQueueConfigurationProperties.


        :param service_ranking: The service_ranking of this OrgApacheSlingEventJobsQueueConfigurationProperties.  # noqa: E501
        :type: ConfigNodePropertyInteger
        """

        self._service_ranking = service_ranking

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

        return self.__dict__ == other.__dict__

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