# coding: utf-8

from __future__ import absolute_import
from datetime import date, datetime  # noqa: F401

from typing import List, Dict  # noqa: F401

from openapi_server.models.base_model_ import Model
from openapi_server import util


class HealthCheck(Model):
    """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

    Do not edit the class manually.
    """

    def __init__(self, status=None):  # noqa: E501
        """HealthCheck - a model defined in OpenAPI

        :param status: The status of this HealthCheck.  # noqa: E501
        :type status: str
        """
        self.openapi_types = {
            'status': str
        }

        self.attribute_map = {
            'status': 'status'
        }

        self._status = status

    @classmethod
    def from_dict(cls, dikt) -> 'HealthCheck':
        """Returns the dict as a model

        :param dikt: A dict.
        :type: dict
        :return: The HealthCheck of this HealthCheck.  # noqa: E501
        :rtype: HealthCheck
        """
        return util.deserialize_model(dikt, cls)

    @property
    def status(self):
        """Gets the status of this HealthCheck.

        Indicates whether the service status is acceptable or not  # noqa: E501

        :return: The status of this HealthCheck.
        :rtype: str
        """
        return self._status

    @status.setter
    def status(self, status):
        """Sets the status of this HealthCheck.

        Indicates whether the service status is acceptable or not  # noqa: E501

        :param status: The status of this HealthCheck.
        :type status: str
        """
        allowed_values = ["pass", "fail", "warn"]  # noqa: E501
        if status not in allowed_values:
            raise ValueError(
                "Invalid value for `status` ({0}), must be one of {1}"
                .format(status, allowed_values)
            )

        self._status = status
