# 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 OrgApacheFelixEventadminImplEventAdminProperties(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 = {
        'org_apache_felix_eventadmin_thread_pool_size': 'ConfigNodePropertyInteger',
        'org_apache_felix_eventadmin_async_to_sync_thread_ratio': 'ConfigNodePropertyFloat',
        'org_apache_felix_eventadmin_timeout': 'ConfigNodePropertyInteger',
        'org_apache_felix_eventadmin_require_topic': 'ConfigNodePropertyBoolean',
        'org_apache_felix_eventadmin_ignore_timeout': 'ConfigNodePropertyArray',
        'org_apache_felix_eventadmin_ignore_topic': 'ConfigNodePropertyArray'
    }

    attribute_map = {
        'org_apache_felix_eventadmin_thread_pool_size': 'org.apache.felix.eventadmin.ThreadPoolSize',
        'org_apache_felix_eventadmin_async_to_sync_thread_ratio': 'org.apache.felix.eventadmin.AsyncToSyncThreadRatio',
        'org_apache_felix_eventadmin_timeout': 'org.apache.felix.eventadmin.Timeout',
        'org_apache_felix_eventadmin_require_topic': 'org.apache.felix.eventadmin.RequireTopic',
        'org_apache_felix_eventadmin_ignore_timeout': 'org.apache.felix.eventadmin.IgnoreTimeout',
        'org_apache_felix_eventadmin_ignore_topic': 'org.apache.felix.eventadmin.IgnoreTopic'
    }

    def __init__(self, org_apache_felix_eventadmin_thread_pool_size=None, org_apache_felix_eventadmin_async_to_sync_thread_ratio=None, org_apache_felix_eventadmin_timeout=None, org_apache_felix_eventadmin_require_topic=None, org_apache_felix_eventadmin_ignore_timeout=None, org_apache_felix_eventadmin_ignore_topic=None):  # noqa: E501
        """OrgApacheFelixEventadminImplEventAdminProperties - a model defined in OpenAPI"""  # noqa: E501

        self._org_apache_felix_eventadmin_thread_pool_size = None
        self._org_apache_felix_eventadmin_async_to_sync_thread_ratio = None
        self._org_apache_felix_eventadmin_timeout = None
        self._org_apache_felix_eventadmin_require_topic = None
        self._org_apache_felix_eventadmin_ignore_timeout = None
        self._org_apache_felix_eventadmin_ignore_topic = None
        self.discriminator = None

        if org_apache_felix_eventadmin_thread_pool_size is not None:
            self.org_apache_felix_eventadmin_thread_pool_size = org_apache_felix_eventadmin_thread_pool_size
        if org_apache_felix_eventadmin_async_to_sync_thread_ratio is not None:
            self.org_apache_felix_eventadmin_async_to_sync_thread_ratio = org_apache_felix_eventadmin_async_to_sync_thread_ratio
        if org_apache_felix_eventadmin_timeout is not None:
            self.org_apache_felix_eventadmin_timeout = org_apache_felix_eventadmin_timeout
        if org_apache_felix_eventadmin_require_topic is not None:
            self.org_apache_felix_eventadmin_require_topic = org_apache_felix_eventadmin_require_topic
        if org_apache_felix_eventadmin_ignore_timeout is not None:
            self.org_apache_felix_eventadmin_ignore_timeout = org_apache_felix_eventadmin_ignore_timeout
        if org_apache_felix_eventadmin_ignore_topic is not None:
            self.org_apache_felix_eventadmin_ignore_topic = org_apache_felix_eventadmin_ignore_topic

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


        :return: The org_apache_felix_eventadmin_thread_pool_size of this OrgApacheFelixEventadminImplEventAdminProperties.  # noqa: E501
        :rtype: ConfigNodePropertyInteger
        """
        return self._org_apache_felix_eventadmin_thread_pool_size

    @org_apache_felix_eventadmin_thread_pool_size.setter
    def org_apache_felix_eventadmin_thread_pool_size(self, org_apache_felix_eventadmin_thread_pool_size):
        """Sets the org_apache_felix_eventadmin_thread_pool_size of this OrgApacheFelixEventadminImplEventAdminProperties.


        :param org_apache_felix_eventadmin_thread_pool_size: The org_apache_felix_eventadmin_thread_pool_size of this OrgApacheFelixEventadminImplEventAdminProperties.  # noqa: E501
        :type: ConfigNodePropertyInteger
        """

        self._org_apache_felix_eventadmin_thread_pool_size = org_apache_felix_eventadmin_thread_pool_size

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


        :return: The org_apache_felix_eventadmin_async_to_sync_thread_ratio of this OrgApacheFelixEventadminImplEventAdminProperties.  # noqa: E501
        :rtype: ConfigNodePropertyFloat
        """
        return self._org_apache_felix_eventadmin_async_to_sync_thread_ratio

    @org_apache_felix_eventadmin_async_to_sync_thread_ratio.setter
    def org_apache_felix_eventadmin_async_to_sync_thread_ratio(self, org_apache_felix_eventadmin_async_to_sync_thread_ratio):
        """Sets the org_apache_felix_eventadmin_async_to_sync_thread_ratio of this OrgApacheFelixEventadminImplEventAdminProperties.


        :param org_apache_felix_eventadmin_async_to_sync_thread_ratio: The org_apache_felix_eventadmin_async_to_sync_thread_ratio of this OrgApacheFelixEventadminImplEventAdminProperties.  # noqa: E501
        :type: ConfigNodePropertyFloat
        """

        self._org_apache_felix_eventadmin_async_to_sync_thread_ratio = org_apache_felix_eventadmin_async_to_sync_thread_ratio

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


        :return: The org_apache_felix_eventadmin_timeout of this OrgApacheFelixEventadminImplEventAdminProperties.  # noqa: E501
        :rtype: ConfigNodePropertyInteger
        """
        return self._org_apache_felix_eventadmin_timeout

    @org_apache_felix_eventadmin_timeout.setter
    def org_apache_felix_eventadmin_timeout(self, org_apache_felix_eventadmin_timeout):
        """Sets the org_apache_felix_eventadmin_timeout of this OrgApacheFelixEventadminImplEventAdminProperties.


        :param org_apache_felix_eventadmin_timeout: The org_apache_felix_eventadmin_timeout of this OrgApacheFelixEventadminImplEventAdminProperties.  # noqa: E501
        :type: ConfigNodePropertyInteger
        """

        self._org_apache_felix_eventadmin_timeout = org_apache_felix_eventadmin_timeout

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


        :return: The org_apache_felix_eventadmin_require_topic of this OrgApacheFelixEventadminImplEventAdminProperties.  # noqa: E501
        :rtype: ConfigNodePropertyBoolean
        """
        return self._org_apache_felix_eventadmin_require_topic

    @org_apache_felix_eventadmin_require_topic.setter
    def org_apache_felix_eventadmin_require_topic(self, org_apache_felix_eventadmin_require_topic):
        """Sets the org_apache_felix_eventadmin_require_topic of this OrgApacheFelixEventadminImplEventAdminProperties.


        :param org_apache_felix_eventadmin_require_topic: The org_apache_felix_eventadmin_require_topic of this OrgApacheFelixEventadminImplEventAdminProperties.  # noqa: E501
        :type: ConfigNodePropertyBoolean
        """

        self._org_apache_felix_eventadmin_require_topic = org_apache_felix_eventadmin_require_topic

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


        :return: The org_apache_felix_eventadmin_ignore_timeout of this OrgApacheFelixEventadminImplEventAdminProperties.  # noqa: E501
        :rtype: ConfigNodePropertyArray
        """
        return self._org_apache_felix_eventadmin_ignore_timeout

    @org_apache_felix_eventadmin_ignore_timeout.setter
    def org_apache_felix_eventadmin_ignore_timeout(self, org_apache_felix_eventadmin_ignore_timeout):
        """Sets the org_apache_felix_eventadmin_ignore_timeout of this OrgApacheFelixEventadminImplEventAdminProperties.


        :param org_apache_felix_eventadmin_ignore_timeout: The org_apache_felix_eventadmin_ignore_timeout of this OrgApacheFelixEventadminImplEventAdminProperties.  # noqa: E501
        :type: ConfigNodePropertyArray
        """

        self._org_apache_felix_eventadmin_ignore_timeout = org_apache_felix_eventadmin_ignore_timeout

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


        :return: The org_apache_felix_eventadmin_ignore_topic of this OrgApacheFelixEventadminImplEventAdminProperties.  # noqa: E501
        :rtype: ConfigNodePropertyArray
        """
        return self._org_apache_felix_eventadmin_ignore_topic

    @org_apache_felix_eventadmin_ignore_topic.setter
    def org_apache_felix_eventadmin_ignore_topic(self, org_apache_felix_eventadmin_ignore_topic):
        """Sets the org_apache_felix_eventadmin_ignore_topic of this OrgApacheFelixEventadminImplEventAdminProperties.


        :param org_apache_felix_eventadmin_ignore_topic: The org_apache_felix_eventadmin_ignore_topic of this OrgApacheFelixEventadminImplEventAdminProperties.  # noqa: E501
        :type: ConfigNodePropertyArray
        """

        self._org_apache_felix_eventadmin_ignore_topic = org_apache_felix_eventadmin_ignore_topic

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

        return self.__dict__ == other.__dict__

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