# 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 ComAdobeGraniteTaskmanagementImplPurgeTaskPurgeMaintenanceTaskProperties(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 = {
        'purge_completed': 'ConfigNodePropertyBoolean',
        'completed_age': 'ConfigNodePropertyInteger',
        'purge_active': 'ConfigNodePropertyBoolean',
        'active_age': 'ConfigNodePropertyInteger',
        'save_threshold': 'ConfigNodePropertyInteger'
    }

    attribute_map = {
        'purge_completed': 'purgeCompleted',
        'completed_age': 'completedAge',
        'purge_active': 'purgeActive',
        'active_age': 'activeAge',
        'save_threshold': 'saveThreshold'
    }

    def __init__(self, purge_completed=None, completed_age=None, purge_active=None, active_age=None, save_threshold=None):  # noqa: E501
        """ComAdobeGraniteTaskmanagementImplPurgeTaskPurgeMaintenanceTaskProperties - a model defined in OpenAPI"""  # noqa: E501

        self._purge_completed = None
        self._completed_age = None
        self._purge_active = None
        self._active_age = None
        self._save_threshold = None
        self.discriminator = None

        if purge_completed is not None:
            self.purge_completed = purge_completed
        if completed_age is not None:
            self.completed_age = completed_age
        if purge_active is not None:
            self.purge_active = purge_active
        if active_age is not None:
            self.active_age = active_age
        if save_threshold is not None:
            self.save_threshold = save_threshold

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


        :return: The purge_completed of this ComAdobeGraniteTaskmanagementImplPurgeTaskPurgeMaintenanceTaskProperties.  # noqa: E501
        :rtype: ConfigNodePropertyBoolean
        """
        return self._purge_completed

    @purge_completed.setter
    def purge_completed(self, purge_completed):
        """Sets the purge_completed of this ComAdobeGraniteTaskmanagementImplPurgeTaskPurgeMaintenanceTaskProperties.


        :param purge_completed: The purge_completed of this ComAdobeGraniteTaskmanagementImplPurgeTaskPurgeMaintenanceTaskProperties.  # noqa: E501
        :type: ConfigNodePropertyBoolean
        """

        self._purge_completed = purge_completed

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


        :return: The completed_age of this ComAdobeGraniteTaskmanagementImplPurgeTaskPurgeMaintenanceTaskProperties.  # noqa: E501
        :rtype: ConfigNodePropertyInteger
        """
        return self._completed_age

    @completed_age.setter
    def completed_age(self, completed_age):
        """Sets the completed_age of this ComAdobeGraniteTaskmanagementImplPurgeTaskPurgeMaintenanceTaskProperties.


        :param completed_age: The completed_age of this ComAdobeGraniteTaskmanagementImplPurgeTaskPurgeMaintenanceTaskProperties.  # noqa: E501
        :type: ConfigNodePropertyInteger
        """

        self._completed_age = completed_age

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


        :return: The purge_active of this ComAdobeGraniteTaskmanagementImplPurgeTaskPurgeMaintenanceTaskProperties.  # noqa: E501
        :rtype: ConfigNodePropertyBoolean
        """
        return self._purge_active

    @purge_active.setter
    def purge_active(self, purge_active):
        """Sets the purge_active of this ComAdobeGraniteTaskmanagementImplPurgeTaskPurgeMaintenanceTaskProperties.


        :param purge_active: The purge_active of this ComAdobeGraniteTaskmanagementImplPurgeTaskPurgeMaintenanceTaskProperties.  # noqa: E501
        :type: ConfigNodePropertyBoolean
        """

        self._purge_active = purge_active

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


        :return: The active_age of this ComAdobeGraniteTaskmanagementImplPurgeTaskPurgeMaintenanceTaskProperties.  # noqa: E501
        :rtype: ConfigNodePropertyInteger
        """
        return self._active_age

    @active_age.setter
    def active_age(self, active_age):
        """Sets the active_age of this ComAdobeGraniteTaskmanagementImplPurgeTaskPurgeMaintenanceTaskProperties.


        :param active_age: The active_age of this ComAdobeGraniteTaskmanagementImplPurgeTaskPurgeMaintenanceTaskProperties.  # noqa: E501
        :type: ConfigNodePropertyInteger
        """

        self._active_age = active_age

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


        :return: The save_threshold of this ComAdobeGraniteTaskmanagementImplPurgeTaskPurgeMaintenanceTaskProperties.  # noqa: E501
        :rtype: ConfigNodePropertyInteger
        """
        return self._save_threshold

    @save_threshold.setter
    def save_threshold(self, save_threshold):
        """Sets the save_threshold of this ComAdobeGraniteTaskmanagementImplPurgeTaskPurgeMaintenanceTaskProperties.


        :param save_threshold: The save_threshold of this ComAdobeGraniteTaskmanagementImplPurgeTaskPurgeMaintenanceTaskProperties.  # noqa: E501
        :type: ConfigNodePropertyInteger
        """

        self._save_threshold = save_threshold

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

        return self.__dict__ == other.__dict__

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