# 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 OlvmGuestOperatingSystem(object):
    """
    Represents an operating system installed on the virtual machine.
    """

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

        :param architecture:
            The value to assign to the architecture property of this OlvmGuestOperatingSystem.
        :type architecture: str

        :param codename:
            The value to assign to the codename property of this OlvmGuestOperatingSystem.
        :type codename: str

        :param distribution:
            The value to assign to the distribution property of this OlvmGuestOperatingSystem.
        :type distribution: str

        :param family:
            The value to assign to the family property of this OlvmGuestOperatingSystem.
        :type family: str

        :param kernel:
            The value to assign to the kernel property of this OlvmGuestOperatingSystem.
        :type kernel: oci.cloud_bridge.models.OlvmKernel

        :param version:
            The value to assign to the version property of this OlvmGuestOperatingSystem.
        :type version: oci.cloud_bridge.models.OlvmVersion

        """
        self.swagger_types = {
            'architecture': 'str',
            'codename': 'str',
            'distribution': 'str',
            'family': 'str',
            'kernel': 'OlvmKernel',
            'version': 'OlvmVersion'
        }
        self.attribute_map = {
            'architecture': 'architecture',
            'codename': 'codename',
            'distribution': 'distribution',
            'family': 'family',
            'kernel': 'kernel',
            'version': 'version'
        }
        self._architecture = None
        self._codename = None
        self._distribution = None
        self._family = None
        self._kernel = None
        self._version = None

    @property
    def architecture(self):
        """
        Gets the architecture of this OlvmGuestOperatingSystem.
        The architecture of the operating system, such as x86_64.


        :return: The architecture of this OlvmGuestOperatingSystem.
        :rtype: str
        """
        return self._architecture

    @architecture.setter
    def architecture(self, architecture):
        """
        Sets the architecture of this OlvmGuestOperatingSystem.
        The architecture of the operating system, such as x86_64.


        :param architecture: The architecture of this OlvmGuestOperatingSystem.
        :type: str
        """
        self._architecture = architecture

    @property
    def codename(self):
        """
        Gets the codename of this OlvmGuestOperatingSystem.
        Code name of the operating system, such as Maipo.


        :return: The codename of this OlvmGuestOperatingSystem.
        :rtype: str
        """
        return self._codename

    @codename.setter
    def codename(self, codename):
        """
        Sets the codename of this OlvmGuestOperatingSystem.
        Code name of the operating system, such as Maipo.


        :param codename: The codename of this OlvmGuestOperatingSystem.
        :type: str
        """
        self._codename = codename

    @property
    def distribution(self):
        """
        Gets the distribution of this OlvmGuestOperatingSystem.
        Full name of operating system distribution.


        :return: The distribution of this OlvmGuestOperatingSystem.
        :rtype: str
        """
        return self._distribution

    @distribution.setter
    def distribution(self, distribution):
        """
        Sets the distribution of this OlvmGuestOperatingSystem.
        Full name of operating system distribution.


        :param distribution: The distribution of this OlvmGuestOperatingSystem.
        :type: str
        """
        self._distribution = distribution

    @property
    def family(self):
        """
        Gets the family of this OlvmGuestOperatingSystem.
        Family of operating system, such as Linux.


        :return: The family of this OlvmGuestOperatingSystem.
        :rtype: str
        """
        return self._family

    @family.setter
    def family(self, family):
        """
        Sets the family of this OlvmGuestOperatingSystem.
        Family of operating system, such as Linux.


        :param family: The family of this OlvmGuestOperatingSystem.
        :type: str
        """
        self._family = family

    @property
    def kernel(self):
        """
        Gets the kernel of this OlvmGuestOperatingSystem.

        :return: The kernel of this OlvmGuestOperatingSystem.
        :rtype: oci.cloud_bridge.models.OlvmKernel
        """
        return self._kernel

    @kernel.setter
    def kernel(self, kernel):
        """
        Sets the kernel of this OlvmGuestOperatingSystem.

        :param kernel: The kernel of this OlvmGuestOperatingSystem.
        :type: oci.cloud_bridge.models.OlvmKernel
        """
        self._kernel = kernel

    @property
    def version(self):
        """
        Gets the version of this OlvmGuestOperatingSystem.

        :return: The version of this OlvmGuestOperatingSystem.
        :rtype: oci.cloud_bridge.models.OlvmVersion
        """
        return self._version

    @version.setter
    def version(self, version):
        """
        Sets the version of this OlvmGuestOperatingSystem.

        :param version: The version of this OlvmGuestOperatingSystem.
        :type: oci.cloud_bridge.models.OlvmVersion
        """
        self._version = version

    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
