# 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 OrgApacheSlingServletsPostImplSlingPostServletProperties(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 = {
        'servlet_post_date_formats': 'ConfigNodePropertyArray',
        'servlet_post_node_name_hints': 'ConfigNodePropertyArray',
        'servlet_post_node_name_max_length': 'ConfigNodePropertyInteger',
        'servlet_post_checkin_new_versionable_nodes': 'ConfigNodePropertyBoolean',
        'servlet_post_auto_checkout': 'ConfigNodePropertyBoolean',
        'servlet_post_auto_checkin': 'ConfigNodePropertyBoolean',
        'servlet_post_ignore_pattern': 'ConfigNodePropertyString'
    }

    attribute_map = {
        'servlet_post_date_formats': 'servlet.post.dateFormats',
        'servlet_post_node_name_hints': 'servlet.post.nodeNameHints',
        'servlet_post_node_name_max_length': 'servlet.post.nodeNameMaxLength',
        'servlet_post_checkin_new_versionable_nodes': 'servlet.post.checkinNewVersionableNodes',
        'servlet_post_auto_checkout': 'servlet.post.autoCheckout',
        'servlet_post_auto_checkin': 'servlet.post.autoCheckin',
        'servlet_post_ignore_pattern': 'servlet.post.ignorePattern'
    }

    def __init__(self, servlet_post_date_formats=None, servlet_post_node_name_hints=None, servlet_post_node_name_max_length=None, servlet_post_checkin_new_versionable_nodes=None, servlet_post_auto_checkout=None, servlet_post_auto_checkin=None, servlet_post_ignore_pattern=None):  # noqa: E501
        """OrgApacheSlingServletsPostImplSlingPostServletProperties - a model defined in OpenAPI"""  # noqa: E501

        self._servlet_post_date_formats = None
        self._servlet_post_node_name_hints = None
        self._servlet_post_node_name_max_length = None
        self._servlet_post_checkin_new_versionable_nodes = None
        self._servlet_post_auto_checkout = None
        self._servlet_post_auto_checkin = None
        self._servlet_post_ignore_pattern = None
        self.discriminator = None

        if servlet_post_date_formats is not None:
            self.servlet_post_date_formats = servlet_post_date_formats
        if servlet_post_node_name_hints is not None:
            self.servlet_post_node_name_hints = servlet_post_node_name_hints
        if servlet_post_node_name_max_length is not None:
            self.servlet_post_node_name_max_length = servlet_post_node_name_max_length
        if servlet_post_checkin_new_versionable_nodes is not None:
            self.servlet_post_checkin_new_versionable_nodes = servlet_post_checkin_new_versionable_nodes
        if servlet_post_auto_checkout is not None:
            self.servlet_post_auto_checkout = servlet_post_auto_checkout
        if servlet_post_auto_checkin is not None:
            self.servlet_post_auto_checkin = servlet_post_auto_checkin
        if servlet_post_ignore_pattern is not None:
            self.servlet_post_ignore_pattern = servlet_post_ignore_pattern

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


        :return: The servlet_post_date_formats of this OrgApacheSlingServletsPostImplSlingPostServletProperties.  # noqa: E501
        :rtype: ConfigNodePropertyArray
        """
        return self._servlet_post_date_formats

    @servlet_post_date_formats.setter
    def servlet_post_date_formats(self, servlet_post_date_formats):
        """Sets the servlet_post_date_formats of this OrgApacheSlingServletsPostImplSlingPostServletProperties.


        :param servlet_post_date_formats: The servlet_post_date_formats of this OrgApacheSlingServletsPostImplSlingPostServletProperties.  # noqa: E501
        :type: ConfigNodePropertyArray
        """

        self._servlet_post_date_formats = servlet_post_date_formats

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


        :return: The servlet_post_node_name_hints of this OrgApacheSlingServletsPostImplSlingPostServletProperties.  # noqa: E501
        :rtype: ConfigNodePropertyArray
        """
        return self._servlet_post_node_name_hints

    @servlet_post_node_name_hints.setter
    def servlet_post_node_name_hints(self, servlet_post_node_name_hints):
        """Sets the servlet_post_node_name_hints of this OrgApacheSlingServletsPostImplSlingPostServletProperties.


        :param servlet_post_node_name_hints: The servlet_post_node_name_hints of this OrgApacheSlingServletsPostImplSlingPostServletProperties.  # noqa: E501
        :type: ConfigNodePropertyArray
        """

        self._servlet_post_node_name_hints = servlet_post_node_name_hints

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


        :return: The servlet_post_node_name_max_length of this OrgApacheSlingServletsPostImplSlingPostServletProperties.  # noqa: E501
        :rtype: ConfigNodePropertyInteger
        """
        return self._servlet_post_node_name_max_length

    @servlet_post_node_name_max_length.setter
    def servlet_post_node_name_max_length(self, servlet_post_node_name_max_length):
        """Sets the servlet_post_node_name_max_length of this OrgApacheSlingServletsPostImplSlingPostServletProperties.


        :param servlet_post_node_name_max_length: The servlet_post_node_name_max_length of this OrgApacheSlingServletsPostImplSlingPostServletProperties.  # noqa: E501
        :type: ConfigNodePropertyInteger
        """

        self._servlet_post_node_name_max_length = servlet_post_node_name_max_length

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


        :return: The servlet_post_checkin_new_versionable_nodes of this OrgApacheSlingServletsPostImplSlingPostServletProperties.  # noqa: E501
        :rtype: ConfigNodePropertyBoolean
        """
        return self._servlet_post_checkin_new_versionable_nodes

    @servlet_post_checkin_new_versionable_nodes.setter
    def servlet_post_checkin_new_versionable_nodes(self, servlet_post_checkin_new_versionable_nodes):
        """Sets the servlet_post_checkin_new_versionable_nodes of this OrgApacheSlingServletsPostImplSlingPostServletProperties.


        :param servlet_post_checkin_new_versionable_nodes: The servlet_post_checkin_new_versionable_nodes of this OrgApacheSlingServletsPostImplSlingPostServletProperties.  # noqa: E501
        :type: ConfigNodePropertyBoolean
        """

        self._servlet_post_checkin_new_versionable_nodes = servlet_post_checkin_new_versionable_nodes

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


        :return: The servlet_post_auto_checkout of this OrgApacheSlingServletsPostImplSlingPostServletProperties.  # noqa: E501
        :rtype: ConfigNodePropertyBoolean
        """
        return self._servlet_post_auto_checkout

    @servlet_post_auto_checkout.setter
    def servlet_post_auto_checkout(self, servlet_post_auto_checkout):
        """Sets the servlet_post_auto_checkout of this OrgApacheSlingServletsPostImplSlingPostServletProperties.


        :param servlet_post_auto_checkout: The servlet_post_auto_checkout of this OrgApacheSlingServletsPostImplSlingPostServletProperties.  # noqa: E501
        :type: ConfigNodePropertyBoolean
        """

        self._servlet_post_auto_checkout = servlet_post_auto_checkout

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


        :return: The servlet_post_auto_checkin of this OrgApacheSlingServletsPostImplSlingPostServletProperties.  # noqa: E501
        :rtype: ConfigNodePropertyBoolean
        """
        return self._servlet_post_auto_checkin

    @servlet_post_auto_checkin.setter
    def servlet_post_auto_checkin(self, servlet_post_auto_checkin):
        """Sets the servlet_post_auto_checkin of this OrgApacheSlingServletsPostImplSlingPostServletProperties.


        :param servlet_post_auto_checkin: The servlet_post_auto_checkin of this OrgApacheSlingServletsPostImplSlingPostServletProperties.  # noqa: E501
        :type: ConfigNodePropertyBoolean
        """

        self._servlet_post_auto_checkin = servlet_post_auto_checkin

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


        :return: The servlet_post_ignore_pattern of this OrgApacheSlingServletsPostImplSlingPostServletProperties.  # noqa: E501
        :rtype: ConfigNodePropertyString
        """
        return self._servlet_post_ignore_pattern

    @servlet_post_ignore_pattern.setter
    def servlet_post_ignore_pattern(self, servlet_post_ignore_pattern):
        """Sets the servlet_post_ignore_pattern of this OrgApacheSlingServletsPostImplSlingPostServletProperties.


        :param servlet_post_ignore_pattern: The servlet_post_ignore_pattern of this OrgApacheSlingServletsPostImplSlingPostServletProperties.  # noqa: E501
        :type: ConfigNodePropertyString
        """

        self._servlet_post_ignore_pattern = servlet_post_ignore_pattern

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

        return self.__dict__ == other.__dict__

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