# 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 OlvmHostType(object):
    """
    Indicates if the host contains a full installation of the operating system or a scaled-down version intended only to host virtual machines.
    """

    #: A constant which can be used with the host_type property of a OlvmHostType.
    #: This constant has a value of "OVIRT_NODE"
    HOST_TYPE_OVIRT_NODE = "OVIRT_NODE"

    #: A constant which can be used with the host_type property of a OlvmHostType.
    #: This constant has a value of "RHEL"
    HOST_TYPE_RHEL = "RHEL"

    #: A constant which can be used with the host_type property of a OlvmHostType.
    #: This constant has a value of "RHEV_H"
    HOST_TYPE_RHEV_H = "RHEV_H"

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

        :param host_type:
            The value to assign to the host_type property of this OlvmHostType.
            Allowed values for this property are: "OVIRT_NODE", "RHEL", "RHEV_H"
        :type host_type: str

        """
        self.swagger_types = {
            'host_type': 'str'
        }
        self.attribute_map = {
            'host_type': 'hostType'
        }
        self._host_type = None

    @property
    def host_type(self):
        """
        Gets the host_type of this OlvmHostType.
        This enumerated type is used to determine which type of operating system is used by the host.

        Allowed values for this property are: "OVIRT_NODE", "RHEL", "RHEV_H"


        :return: The host_type of this OlvmHostType.
        :rtype: str
        """
        return self._host_type

    @host_type.setter
    def host_type(self, host_type):
        """
        Sets the host_type of this OlvmHostType.
        This enumerated type is used to determine which type of operating system is used by the host.


        :param host_type: The host_type of this OlvmHostType.
        :type: str
        """
        allowed_values = ["OVIRT_NODE", "RHEL", "RHEV_H"]
        if not value_allowed_none_or_none_sentinel(host_type, allowed_values):
            raise ValueError(
                f"Invalid value for `host_type`, must be None or one of {allowed_values}"
            )
        self._host_type = host_type

    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
