# coding: utf-8

"""
    Healthbot APIs

    API interface for Healthbot application  # noqa: E501

    OpenAPI spec version: 1.0.0
    Contact: healthbot-hackers@juniper.net
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401

import six


class RuleSchemaFormulaOutlierdetectionAlgorithmDbscanSensitivity(object):
    """NOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    """

    """
    Attributes:
      swagger_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.
    """
    swagger_types = {
        'absolute_percentage': 'float',
        'level': 'str'
    }

    attribute_map = {
        'absolute_percentage': 'absolute-percentage',
        'level': 'level'
    }

    def __init__(self, absolute_percentage=None, level=None):  # noqa: E501
        """RuleSchemaFormulaOutlierdetectionAlgorithmDbscanSensitivity - a model defined in Swagger"""  # noqa: E501

        self._absolute_percentage = None
        self._level = None
        self.discriminator = None

        if absolute_percentage is not None:
            self.absolute_percentage = absolute_percentage
        if level is not None:
            self.level = level

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

        Absolute percentage of members that are to be marked as outliers  # noqa: E501

        :return: The absolute_percentage of this RuleSchemaFormulaOutlierdetectionAlgorithmDbscanSensitivity.  # noqa: E501
        :rtype: float
        """
        return self._absolute_percentage

    @absolute_percentage.setter
    def absolute_percentage(self, absolute_percentage):
        """Sets the absolute_percentage of this RuleSchemaFormulaOutlierdetectionAlgorithmDbscanSensitivity.

        Absolute percentage of members that are to be marked as outliers  # noqa: E501

        :param absolute_percentage: The absolute_percentage of this RuleSchemaFormulaOutlierdetectionAlgorithmDbscanSensitivity.  # noqa: E501
        :type: float
        """

        self._absolute_percentage = absolute_percentage

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

        Fuzzy level of outliers to be detected  # noqa: E501

        :return: The level of this RuleSchemaFormulaOutlierdetectionAlgorithmDbscanSensitivity.  # noqa: E501
        :rtype: str
        """
        return self._level

    @level.setter
    def level(self, level):
        """Sets the level of this RuleSchemaFormulaOutlierdetectionAlgorithmDbscanSensitivity.

        Fuzzy level of outliers to be detected  # noqa: E501

        :param level: The level of this RuleSchemaFormulaOutlierdetectionAlgorithmDbscanSensitivity.  # noqa: E501
        :type: str
        """
        allowed_values = ["low", "medium", "high"]  # noqa: E501
        if level not in allowed_values:
            raise ValueError(
                "Invalid value for `level` ({0}), must be one of {1}"  # noqa: E501
                .format(level, allowed_values)
            )

        self._level = level

    def to_dict(self):
        """Returns the model properties as a dict"""
        result = {}

        for attr, _ in six.iteritems(self.swagger_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, RuleSchemaFormulaOutlierdetectionAlgorithmDbscanSensitivity):
            return False

        return self.__dict__ == other.__dict__

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