# 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 OlvmHostedEngine(object):
    """
    The self-hosted engine status of this host.
    """

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

        :param is_active:
            The value to assign to the is_active property of this OlvmHostedEngine.
        :type is_active: bool

        :param is_configured:
            The value to assign to the is_configured property of this OlvmHostedEngine.
        :type is_configured: bool

        :param is_global_maintenance:
            The value to assign to the is_global_maintenance property of this OlvmHostedEngine.
        :type is_global_maintenance: bool

        :param is_local_maintenance:
            The value to assign to the is_local_maintenance property of this OlvmHostedEngine.
        :type is_local_maintenance: bool

        :param score:
            The value to assign to the score property of this OlvmHostedEngine.
        :type score: int

        """
        self.swagger_types = {
            'is_active': 'bool',
            'is_configured': 'bool',
            'is_global_maintenance': 'bool',
            'is_local_maintenance': 'bool',
            'score': 'int'
        }
        self.attribute_map = {
            'is_active': 'isActive',
            'is_configured': 'isConfigured',
            'is_global_maintenance': 'isGlobalMaintenance',
            'is_local_maintenance': 'isLocalMaintenance',
            'score': 'score'
        }
        self._is_active = None
        self._is_configured = None
        self._is_global_maintenance = None
        self._is_local_maintenance = None
        self._score = None

    @property
    def is_active(self):
        """
        Gets the is_active of this OlvmHostedEngine.
        Indicates if this hosted engine is active.


        :return: The is_active of this OlvmHostedEngine.
        :rtype: bool
        """
        return self._is_active

    @is_active.setter
    def is_active(self, is_active):
        """
        Sets the is_active of this OlvmHostedEngine.
        Indicates if this hosted engine is active.


        :param is_active: The is_active of this OlvmHostedEngine.
        :type: bool
        """
        self._is_active = is_active

    @property
    def is_configured(self):
        """
        Gets the is_configured of this OlvmHostedEngine.
        Indicates if this hosted engine is configured.


        :return: The is_configured of this OlvmHostedEngine.
        :rtype: bool
        """
        return self._is_configured

    @is_configured.setter
    def is_configured(self, is_configured):
        """
        Sets the is_configured of this OlvmHostedEngine.
        Indicates if this hosted engine is configured.


        :param is_configured: The is_configured of this OlvmHostedEngine.
        :type: bool
        """
        self._is_configured = is_configured

    @property
    def is_global_maintenance(self):
        """
        Gets the is_global_maintenance of this OlvmHostedEngine.
        Indicates if this hosted engine under global maintenance.


        :return: The is_global_maintenance of this OlvmHostedEngine.
        :rtype: bool
        """
        return self._is_global_maintenance

    @is_global_maintenance.setter
    def is_global_maintenance(self, is_global_maintenance):
        """
        Sets the is_global_maintenance of this OlvmHostedEngine.
        Indicates if this hosted engine under global maintenance.


        :param is_global_maintenance: The is_global_maintenance of this OlvmHostedEngine.
        :type: bool
        """
        self._is_global_maintenance = is_global_maintenance

    @property
    def is_local_maintenance(self):
        """
        Gets the is_local_maintenance of this OlvmHostedEngine.
        Indicates if this hosted engine under local maintenance.


        :return: The is_local_maintenance of this OlvmHostedEngine.
        :rtype: bool
        """
        return self._is_local_maintenance

    @is_local_maintenance.setter
    def is_local_maintenance(self, is_local_maintenance):
        """
        Sets the is_local_maintenance of this OlvmHostedEngine.
        Indicates if this hosted engine under local maintenance.


        :param is_local_maintenance: The is_local_maintenance of this OlvmHostedEngine.
        :type: bool
        """
        self._is_local_maintenance = is_local_maintenance

    @property
    def score(self):
        """
        Gets the score of this OlvmHostedEngine.
        A numerical value representing the health and status of the Manager virtual machine


        :return: The score of this OlvmHostedEngine.
        :rtype: int
        """
        return self._score

    @score.setter
    def score(self, score):
        """
        Sets the score of this OlvmHostedEngine.
        A numerical value representing the health and status of the Manager virtual machine


        :param score: The score of this OlvmHostedEngine.
        :type: int
        """
        self._score = score

    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
