# 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 OlvmVmSummary(object):
    """
    Type containing information related to virtual machines on a particular host.
    """

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

        :param active:
            The value to assign to the active property of this OlvmVmSummary.
        :type active: int

        :param migrating:
            The value to assign to the migrating property of this OlvmVmSummary.
        :type migrating: int

        :param total:
            The value to assign to the total property of this OlvmVmSummary.
        :type total: int

        """
        self.swagger_types = {
            'active': 'int',
            'migrating': 'int',
            'total': 'int'
        }
        self.attribute_map = {
            'active': 'active',
            'migrating': 'migrating',
            'total': 'total'
        }
        self._active = None
        self._migrating = None
        self._total = None

    @property
    def active(self):
        """
        Gets the active of this OlvmVmSummary.
        The number of virtual machines active on the host.


        :return: The active of this OlvmVmSummary.
        :rtype: int
        """
        return self._active

    @active.setter
    def active(self, active):
        """
        Sets the active of this OlvmVmSummary.
        The number of virtual machines active on the host.


        :param active: The active of this OlvmVmSummary.
        :type: int
        """
        self._active = active

    @property
    def migrating(self):
        """
        Gets the migrating of this OlvmVmSummary.
        The number of virtual machines migrating to or from the host.


        :return: The migrating of this OlvmVmSummary.
        :rtype: int
        """
        return self._migrating

    @migrating.setter
    def migrating(self, migrating):
        """
        Sets the migrating of this OlvmVmSummary.
        The number of virtual machines migrating to or from the host.


        :param migrating: The migrating of this OlvmVmSummary.
        :type: int
        """
        self._migrating = migrating

    @property
    def total(self):
        """
        Gets the total of this OlvmVmSummary.
        The number of virtual machines present on the host.


        :return: The total of this OlvmVmSummary.
        :rtype: int
        """
        return self._total

    @total.setter
    def total(self, total):
        """
        Sets the total of this OlvmVmSummary.
        The number of virtual machines present on the host.


        :param total: The total of this OlvmVmSummary.
        :type: int
        """
        self._total = total

    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
