# 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: 20220509


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 OlvmCore(object):
    """
    Core of the CPU in OLVM
    """

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

        :param index:
            The value to assign to the index property of this OlvmCore.
        :type index: int

        :param socket:
            The value to assign to the socket property of this OlvmCore.
        :type socket: int

        """
        self.swagger_types = {
            'index': 'int',
            'socket': 'int'
        }
        self.attribute_map = {
            'index': 'index',
            'socket': 'socket'
        }
        self._index = None
        self._socket = None

    @property
    def index(self):
        """
        Gets the index of this OlvmCore.
        Index of this CPU core


        :return: The index of this OlvmCore.
        :rtype: int
        """
        return self._index

    @index.setter
    def index(self, index):
        """
        Sets the index of this OlvmCore.
        Index of this CPU core


        :param index: The index of this OlvmCore.
        :type: int
        """
        self._index = index

    @property
    def socket(self):
        """
        Gets the socket of this OlvmCore.
        Socket of this CPU core


        :return: The socket of this OlvmCore.
        :rtype: int
        """
        return self._socket

    @socket.setter
    def socket(self, socket):
        """
        Sets the socket of this OlvmCore.
        Socket of this CPU core


        :param socket: The socket of this OlvmCore.
        :type: int
        """
        self._socket = socket

    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
