# 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 ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties(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 = {
        'granite_workflowinbox_sort_property_name': 'ConfigNodePropertyDropDown',
        'granite_workflowinbox_sort_order': 'ConfigNodePropertyString',
        'cq_workflow_job_retry': 'ConfigNodePropertyInteger',
        'cq_workflow_superuser': 'ConfigNodePropertyArray',
        'granite_workflow_inbox_query_size': 'ConfigNodePropertyInteger',
        'granite_workflow_admin_user_group_filter': 'ConfigNodePropertyBoolean',
        'granite_workflow_enforce_workitem_assignee_permissions': 'ConfigNodePropertyBoolean',
        'granite_workflow_enforce_workflow_initiator_permissions': 'ConfigNodePropertyBoolean',
        'granite_workflow_inject_tenant_id_in_job_topics': 'ConfigNodePropertyBoolean',
        'granite_workflow_max_purge_save_threshold': 'ConfigNodePropertyInteger',
        'granite_workflow_max_purge_query_count': 'ConfigNodePropertyInteger'
    }

    attribute_map = {
        'granite_workflowinbox_sort_property_name': 'granite.workflowinbox.sort.propertyName',
        'granite_workflowinbox_sort_order': 'granite.workflowinbox.sort.order',
        'cq_workflow_job_retry': 'cq.workflow.job.retry',
        'cq_workflow_superuser': 'cq.workflow.superuser',
        'granite_workflow_inbox_query_size': 'granite.workflow.inboxQuerySize',
        'granite_workflow_admin_user_group_filter': 'granite.workflow.adminUserGroupFilter',
        'granite_workflow_enforce_workitem_assignee_permissions': 'granite.workflow.enforceWorkitemAssigneePermissions',
        'granite_workflow_enforce_workflow_initiator_permissions': 'granite.workflow.enforceWorkflowInitiatorPermissions',
        'granite_workflow_inject_tenant_id_in_job_topics': 'granite.workflow.injectTenantIdInJobTopics',
        'granite_workflow_max_purge_save_threshold': 'granite.workflow.maxPurgeSaveThreshold',
        'granite_workflow_max_purge_query_count': 'granite.workflow.maxPurgeQueryCount'
    }

    def __init__(self, granite_workflowinbox_sort_property_name=None, granite_workflowinbox_sort_order=None, cq_workflow_job_retry=None, cq_workflow_superuser=None, granite_workflow_inbox_query_size=None, granite_workflow_admin_user_group_filter=None, granite_workflow_enforce_workitem_assignee_permissions=None, granite_workflow_enforce_workflow_initiator_permissions=None, granite_workflow_inject_tenant_id_in_job_topics=None, granite_workflow_max_purge_save_threshold=None, granite_workflow_max_purge_query_count=None):  # noqa: E501
        """ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties - a model defined in OpenAPI"""  # noqa: E501

        self._granite_workflowinbox_sort_property_name = None
        self._granite_workflowinbox_sort_order = None
        self._cq_workflow_job_retry = None
        self._cq_workflow_superuser = None
        self._granite_workflow_inbox_query_size = None
        self._granite_workflow_admin_user_group_filter = None
        self._granite_workflow_enforce_workitem_assignee_permissions = None
        self._granite_workflow_enforce_workflow_initiator_permissions = None
        self._granite_workflow_inject_tenant_id_in_job_topics = None
        self._granite_workflow_max_purge_save_threshold = None
        self._granite_workflow_max_purge_query_count = None
        self.discriminator = None

        if granite_workflowinbox_sort_property_name is not None:
            self.granite_workflowinbox_sort_property_name = granite_workflowinbox_sort_property_name
        if granite_workflowinbox_sort_order is not None:
            self.granite_workflowinbox_sort_order = granite_workflowinbox_sort_order
        if cq_workflow_job_retry is not None:
            self.cq_workflow_job_retry = cq_workflow_job_retry
        if cq_workflow_superuser is not None:
            self.cq_workflow_superuser = cq_workflow_superuser
        if granite_workflow_inbox_query_size is not None:
            self.granite_workflow_inbox_query_size = granite_workflow_inbox_query_size
        if granite_workflow_admin_user_group_filter is not None:
            self.granite_workflow_admin_user_group_filter = granite_workflow_admin_user_group_filter
        if granite_workflow_enforce_workitem_assignee_permissions is not None:
            self.granite_workflow_enforce_workitem_assignee_permissions = granite_workflow_enforce_workitem_assignee_permissions
        if granite_workflow_enforce_workflow_initiator_permissions is not None:
            self.granite_workflow_enforce_workflow_initiator_permissions = granite_workflow_enforce_workflow_initiator_permissions
        if granite_workflow_inject_tenant_id_in_job_topics is not None:
            self.granite_workflow_inject_tenant_id_in_job_topics = granite_workflow_inject_tenant_id_in_job_topics
        if granite_workflow_max_purge_save_threshold is not None:
            self.granite_workflow_max_purge_save_threshold = granite_workflow_max_purge_save_threshold
        if granite_workflow_max_purge_query_count is not None:
            self.granite_workflow_max_purge_query_count = granite_workflow_max_purge_query_count

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


        :return: The granite_workflowinbox_sort_property_name of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.  # noqa: E501
        :rtype: ConfigNodePropertyDropDown
        """
        return self._granite_workflowinbox_sort_property_name

    @granite_workflowinbox_sort_property_name.setter
    def granite_workflowinbox_sort_property_name(self, granite_workflowinbox_sort_property_name):
        """Sets the granite_workflowinbox_sort_property_name of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.


        :param granite_workflowinbox_sort_property_name: The granite_workflowinbox_sort_property_name of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.  # noqa: E501
        :type: ConfigNodePropertyDropDown
        """

        self._granite_workflowinbox_sort_property_name = granite_workflowinbox_sort_property_name

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


        :return: The granite_workflowinbox_sort_order of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.  # noqa: E501
        :rtype: ConfigNodePropertyString
        """
        return self._granite_workflowinbox_sort_order

    @granite_workflowinbox_sort_order.setter
    def granite_workflowinbox_sort_order(self, granite_workflowinbox_sort_order):
        """Sets the granite_workflowinbox_sort_order of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.


        :param granite_workflowinbox_sort_order: The granite_workflowinbox_sort_order of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.  # noqa: E501
        :type: ConfigNodePropertyString
        """

        self._granite_workflowinbox_sort_order = granite_workflowinbox_sort_order

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


        :return: The cq_workflow_job_retry of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.  # noqa: E501
        :rtype: ConfigNodePropertyInteger
        """
        return self._cq_workflow_job_retry

    @cq_workflow_job_retry.setter
    def cq_workflow_job_retry(self, cq_workflow_job_retry):
        """Sets the cq_workflow_job_retry of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.


        :param cq_workflow_job_retry: The cq_workflow_job_retry of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.  # noqa: E501
        :type: ConfigNodePropertyInteger
        """

        self._cq_workflow_job_retry = cq_workflow_job_retry

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


        :return: The cq_workflow_superuser of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.  # noqa: E501
        :rtype: ConfigNodePropertyArray
        """
        return self._cq_workflow_superuser

    @cq_workflow_superuser.setter
    def cq_workflow_superuser(self, cq_workflow_superuser):
        """Sets the cq_workflow_superuser of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.


        :param cq_workflow_superuser: The cq_workflow_superuser of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.  # noqa: E501
        :type: ConfigNodePropertyArray
        """

        self._cq_workflow_superuser = cq_workflow_superuser

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


        :return: The granite_workflow_inbox_query_size of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.  # noqa: E501
        :rtype: ConfigNodePropertyInteger
        """
        return self._granite_workflow_inbox_query_size

    @granite_workflow_inbox_query_size.setter
    def granite_workflow_inbox_query_size(self, granite_workflow_inbox_query_size):
        """Sets the granite_workflow_inbox_query_size of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.


        :param granite_workflow_inbox_query_size: The granite_workflow_inbox_query_size of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.  # noqa: E501
        :type: ConfigNodePropertyInteger
        """

        self._granite_workflow_inbox_query_size = granite_workflow_inbox_query_size

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


        :return: The granite_workflow_admin_user_group_filter of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.  # noqa: E501
        :rtype: ConfigNodePropertyBoolean
        """
        return self._granite_workflow_admin_user_group_filter

    @granite_workflow_admin_user_group_filter.setter
    def granite_workflow_admin_user_group_filter(self, granite_workflow_admin_user_group_filter):
        """Sets the granite_workflow_admin_user_group_filter of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.


        :param granite_workflow_admin_user_group_filter: The granite_workflow_admin_user_group_filter of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.  # noqa: E501
        :type: ConfigNodePropertyBoolean
        """

        self._granite_workflow_admin_user_group_filter = granite_workflow_admin_user_group_filter

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


        :return: The granite_workflow_enforce_workitem_assignee_permissions of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.  # noqa: E501
        :rtype: ConfigNodePropertyBoolean
        """
        return self._granite_workflow_enforce_workitem_assignee_permissions

    @granite_workflow_enforce_workitem_assignee_permissions.setter
    def granite_workflow_enforce_workitem_assignee_permissions(self, granite_workflow_enforce_workitem_assignee_permissions):
        """Sets the granite_workflow_enforce_workitem_assignee_permissions of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.


        :param granite_workflow_enforce_workitem_assignee_permissions: The granite_workflow_enforce_workitem_assignee_permissions of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.  # noqa: E501
        :type: ConfigNodePropertyBoolean
        """

        self._granite_workflow_enforce_workitem_assignee_permissions = granite_workflow_enforce_workitem_assignee_permissions

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


        :return: The granite_workflow_enforce_workflow_initiator_permissions of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.  # noqa: E501
        :rtype: ConfigNodePropertyBoolean
        """
        return self._granite_workflow_enforce_workflow_initiator_permissions

    @granite_workflow_enforce_workflow_initiator_permissions.setter
    def granite_workflow_enforce_workflow_initiator_permissions(self, granite_workflow_enforce_workflow_initiator_permissions):
        """Sets the granite_workflow_enforce_workflow_initiator_permissions of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.


        :param granite_workflow_enforce_workflow_initiator_permissions: The granite_workflow_enforce_workflow_initiator_permissions of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.  # noqa: E501
        :type: ConfigNodePropertyBoolean
        """

        self._granite_workflow_enforce_workflow_initiator_permissions = granite_workflow_enforce_workflow_initiator_permissions

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


        :return: The granite_workflow_inject_tenant_id_in_job_topics of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.  # noqa: E501
        :rtype: ConfigNodePropertyBoolean
        """
        return self._granite_workflow_inject_tenant_id_in_job_topics

    @granite_workflow_inject_tenant_id_in_job_topics.setter
    def granite_workflow_inject_tenant_id_in_job_topics(self, granite_workflow_inject_tenant_id_in_job_topics):
        """Sets the granite_workflow_inject_tenant_id_in_job_topics of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.


        :param granite_workflow_inject_tenant_id_in_job_topics: The granite_workflow_inject_tenant_id_in_job_topics of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.  # noqa: E501
        :type: ConfigNodePropertyBoolean
        """

        self._granite_workflow_inject_tenant_id_in_job_topics = granite_workflow_inject_tenant_id_in_job_topics

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


        :return: The granite_workflow_max_purge_save_threshold of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.  # noqa: E501
        :rtype: ConfigNodePropertyInteger
        """
        return self._granite_workflow_max_purge_save_threshold

    @granite_workflow_max_purge_save_threshold.setter
    def granite_workflow_max_purge_save_threshold(self, granite_workflow_max_purge_save_threshold):
        """Sets the granite_workflow_max_purge_save_threshold of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.


        :param granite_workflow_max_purge_save_threshold: The granite_workflow_max_purge_save_threshold of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.  # noqa: E501
        :type: ConfigNodePropertyInteger
        """

        self._granite_workflow_max_purge_save_threshold = granite_workflow_max_purge_save_threshold

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


        :return: The granite_workflow_max_purge_query_count of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.  # noqa: E501
        :rtype: ConfigNodePropertyInteger
        """
        return self._granite_workflow_max_purge_query_count

    @granite_workflow_max_purge_query_count.setter
    def granite_workflow_max_purge_query_count(self, granite_workflow_max_purge_query_count):
        """Sets the granite_workflow_max_purge_query_count of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.


        :param granite_workflow_max_purge_query_count: The granite_workflow_max_purge_query_count of this ComAdobeGraniteWorkflowCoreWorkflowSessionFactoryProperties.  # noqa: E501
        :type: ConfigNodePropertyInteger
        """

        self._granite_workflow_max_purge_query_count = granite_workflow_max_purge_query_count

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

        return self.__dict__ == other.__dict__

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