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


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 ManagedSoftwareUpdateDetails(object):
    """
    The database registered for Oracle Managed Database Software Updates.
    """

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

        :param is_enrolled:
            The value to assign to the is_enrolled property of this ManagedSoftwareUpdateDetails.
        :type is_enrolled: bool

        :param preference_details:
            The value to assign to the preference_details property of this ManagedSoftwareUpdateDetails.
        :type preference_details: oci.database.models.ManagedSoftwareUpdatePreferenceDetails

        :param maintenance_details:
            The value to assign to the maintenance_details property of this ManagedSoftwareUpdateDetails.
        :type maintenance_details: oci.database.models.ManagedSoftwareUpdateMaintenanceDetails

        """
        self.swagger_types = {
            'is_enrolled': 'bool',
            'preference_details': 'ManagedSoftwareUpdatePreferenceDetails',
            'maintenance_details': 'ManagedSoftwareUpdateMaintenanceDetails'
        }
        self.attribute_map = {
            'is_enrolled': 'isEnrolled',
            'preference_details': 'preferenceDetails',
            'maintenance_details': 'maintenanceDetails'
        }
        self._is_enrolled = None
        self._preference_details = None
        self._maintenance_details = None

    @property
    def is_enrolled(self):
        """
        **[Required]** Gets the is_enrolled of this ManagedSoftwareUpdateDetails.
        If true, database is registered for Oracle Managed Database Software Updates otherwise database is not registered for Oracle Managed Database Software Updates


        :return: The is_enrolled of this ManagedSoftwareUpdateDetails.
        :rtype: bool
        """
        return self._is_enrolled

    @is_enrolled.setter
    def is_enrolled(self, is_enrolled):
        """
        Sets the is_enrolled of this ManagedSoftwareUpdateDetails.
        If true, database is registered for Oracle Managed Database Software Updates otherwise database is not registered for Oracle Managed Database Software Updates


        :param is_enrolled: The is_enrolled of this ManagedSoftwareUpdateDetails.
        :type: bool
        """
        self._is_enrolled = is_enrolled

    @property
    def preference_details(self):
        """
        Gets the preference_details of this ManagedSoftwareUpdateDetails.

        :return: The preference_details of this ManagedSoftwareUpdateDetails.
        :rtype: oci.database.models.ManagedSoftwareUpdatePreferenceDetails
        """
        return self._preference_details

    @preference_details.setter
    def preference_details(self, preference_details):
        """
        Sets the preference_details of this ManagedSoftwareUpdateDetails.

        :param preference_details: The preference_details of this ManagedSoftwareUpdateDetails.
        :type: oci.database.models.ManagedSoftwareUpdatePreferenceDetails
        """
        self._preference_details = preference_details

    @property
    def maintenance_details(self):
        """
        Gets the maintenance_details of this ManagedSoftwareUpdateDetails.

        :return: The maintenance_details of this ManagedSoftwareUpdateDetails.
        :rtype: oci.database.models.ManagedSoftwareUpdateMaintenanceDetails
        """
        return self._maintenance_details

    @maintenance_details.setter
    def maintenance_details(self, maintenance_details):
        """
        Sets the maintenance_details of this ManagedSoftwareUpdateDetails.

        :param maintenance_details: The maintenance_details of this ManagedSoftwareUpdateDetails.
        :type: oci.database.models.ManagedSoftwareUpdateMaintenanceDetails
        """
        self._maintenance_details = maintenance_details

    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
