# coding: utf-8
# Copyright (c) 2016, 2026, Oracle and/or its affiliates.  All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.

# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20220919


from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel  # noqa: F401
from oci.decorators import init_model_state_from_kwargs


@init_model_state_from_kwargs
class OlvmHostStatus(object):
    """
    Type representing a host status.
    """

    #: A constant which can be used with the status property of a OlvmHostStatus.
    #: This constant has a value of "CONNECTING"
    STATUS_CONNECTING = "CONNECTING"

    #: A constant which can be used with the status property of a OlvmHostStatus.
    #: This constant has a value of "DOWN"
    STATUS_DOWN = "DOWN"

    #: A constant which can be used with the status property of a OlvmHostStatus.
    #: This constant has a value of "ERROR"
    STATUS_ERROR = "ERROR"

    #: A constant which can be used with the status property of a OlvmHostStatus.
    #: This constant has a value of "INITIALIZING"
    STATUS_INITIALIZING = "INITIALIZING"

    #: A constant which can be used with the status property of a OlvmHostStatus.
    #: This constant has a value of "INSTALL_FAILED"
    STATUS_INSTALL_FAILED = "INSTALL_FAILED"

    #: A constant which can be used with the status property of a OlvmHostStatus.
    #: This constant has a value of "INSTALLING"
    STATUS_INSTALLING = "INSTALLING"

    #: A constant which can be used with the status property of a OlvmHostStatus.
    #: This constant has a value of "INSTALLING_OS"
    STATUS_INSTALLING_OS = "INSTALLING_OS"

    #: A constant which can be used with the status property of a OlvmHostStatus.
    #: This constant has a value of "KDUMPING"
    STATUS_KDUMPING = "KDUMPING"

    #: A constant which can be used with the status property of a OlvmHostStatus.
    #: This constant has a value of "MAINTENANCE"
    STATUS_MAINTENANCE = "MAINTENANCE"

    #: A constant which can be used with the status property of a OlvmHostStatus.
    #: This constant has a value of "NON_OPERATIONAL"
    STATUS_NON_OPERATIONAL = "NON_OPERATIONAL"

    #: A constant which can be used with the status property of a OlvmHostStatus.
    #: This constant has a value of "NON_RESPONSIVE"
    STATUS_NON_RESPONSIVE = "NON_RESPONSIVE"

    #: A constant which can be used with the status property of a OlvmHostStatus.
    #: This constant has a value of "PENDING_APPROVAL"
    STATUS_PENDING_APPROVAL = "PENDING_APPROVAL"

    #: A constant which can be used with the status property of a OlvmHostStatus.
    #: This constant has a value of "PREPARING_FOR_MAINTENANCE"
    STATUS_PREPARING_FOR_MAINTENANCE = "PREPARING_FOR_MAINTENANCE"

    #: A constant which can be used with the status property of a OlvmHostStatus.
    #: This constant has a value of "REBOOT"
    STATUS_REBOOT = "REBOOT"

    #: A constant which can be used with the status property of a OlvmHostStatus.
    #: This constant has a value of "UNASSIGNED"
    STATUS_UNASSIGNED = "UNASSIGNED"

    #: A constant which can be used with the status property of a OlvmHostStatus.
    #: This constant has a value of "UP"
    STATUS_UP = "UP"

    def __init__(self, **kwargs):
        """
        Initializes a new OlvmHostStatus object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param status:
            The value to assign to the status property of this OlvmHostStatus.
            Allowed values for this property are: "CONNECTING", "DOWN", "ERROR", "INITIALIZING", "INSTALL_FAILED", "INSTALLING", "INSTALLING_OS", "KDUMPING", "MAINTENANCE", "NON_OPERATIONAL", "NON_RESPONSIVE", "PENDING_APPROVAL", "PREPARING_FOR_MAINTENANCE", "REBOOT", "UNASSIGNED", "UP"
        :type status: str

        """
        self.swagger_types = {
            'status': 'str'
        }
        self.attribute_map = {
            'status': 'status'
        }
        self._status = None

    @property
    def status(self):
        """
        Gets the status of this OlvmHostStatus.
        Type representing a host status.

        Allowed values for this property are: "CONNECTING", "DOWN", "ERROR", "INITIALIZING", "INSTALL_FAILED", "INSTALLING", "INSTALLING_OS", "KDUMPING", "MAINTENANCE", "NON_OPERATIONAL", "NON_RESPONSIVE", "PENDING_APPROVAL", "PREPARING_FOR_MAINTENANCE", "REBOOT", "UNASSIGNED", "UP"


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

    @status.setter
    def status(self, status):
        """
        Sets the status of this OlvmHostStatus.
        Type representing a host status.


        :param status: The status of this OlvmHostStatus.
        :type: str
        """
        allowed_values = ["CONNECTING", "DOWN", "ERROR", "INITIALIZING", "INSTALL_FAILED", "INSTALLING", "INSTALLING_OS", "KDUMPING", "MAINTENANCE", "NON_OPERATIONAL", "NON_RESPONSIVE", "PENDING_APPROVAL", "PREPARING_FOR_MAINTENANCE", "REBOOT", "UNASSIGNED", "UP"]
        if not value_allowed_none_or_none_sentinel(status, allowed_values):
            raise ValueError(
                f"Invalid value for `status`, must be None or one of {allowed_values}"
            )
        self._status = status

    def __repr__(self):
        return formatted_flat_dict(self)

    def __eq__(self, other):
        if other is None:
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        return not self == other
