# 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 DbSystemOsPatchDetailsSummary(object):
    """
    The details of available/applied OS patch on a DB Node.
    """

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

        :param db_node_id:
            The value to assign to the db_node_id property of this DbSystemOsPatchDetailsSummary.
        :type db_node_id: str

        :param is_reboot_required:
            The value to assign to the is_reboot_required property of this DbSystemOsPatchDetailsSummary.
        :type is_reboot_required: bool

        :param rpms:
            The value to assign to the rpms property of this DbSystemOsPatchDetailsSummary.
        :type rpms: list[str]

        """
        self.swagger_types = {
            'db_node_id': 'str',
            'is_reboot_required': 'bool',
            'rpms': 'list[str]'
        }
        self.attribute_map = {
            'db_node_id': 'dbNodeId',
            'is_reboot_required': 'isRebootRequired',
            'rpms': 'rpms'
        }
        self._db_node_id = None
        self._is_reboot_required = None
        self._rpms = None

    @property
    def db_node_id(self):
        """
        **[Required]** Gets the db_node_id of this DbSystemOsPatchDetailsSummary.
        The OCID of the DB node targeted for this patch action.


        :return: The db_node_id of this DbSystemOsPatchDetailsSummary.
        :rtype: str
        """
        return self._db_node_id

    @db_node_id.setter
    def db_node_id(self, db_node_id):
        """
        Sets the db_node_id of this DbSystemOsPatchDetailsSummary.
        The OCID of the DB node targeted for this patch action.


        :param db_node_id: The db_node_id of this DbSystemOsPatchDetailsSummary.
        :type: str
        """
        self._db_node_id = db_node_id

    @property
    def is_reboot_required(self):
        """
        **[Required]** Gets the is_reboot_required of this DbSystemOsPatchDetailsSummary.
        Indicates whether a reboot is required after applying the patch.


        :return: The is_reboot_required of this DbSystemOsPatchDetailsSummary.
        :rtype: bool
        """
        return self._is_reboot_required

    @is_reboot_required.setter
    def is_reboot_required(self, is_reboot_required):
        """
        Sets the is_reboot_required of this DbSystemOsPatchDetailsSummary.
        Indicates whether a reboot is required after applying the patch.


        :param is_reboot_required: The is_reboot_required of this DbSystemOsPatchDetailsSummary.
        :type: bool
        """
        self._is_reboot_required = is_reboot_required

    @property
    def rpms(self):
        """
        **[Required]** Gets the rpms of this DbSystemOsPatchDetailsSummary.
        List of OS package identifiers (e.g., RPM strings).


        :return: The rpms of this DbSystemOsPatchDetailsSummary.
        :rtype: list[str]
        """
        return self._rpms

    @rpms.setter
    def rpms(self, rpms):
        """
        Sets the rpms of this DbSystemOsPatchDetailsSummary.
        List of OS package identifiers (e.g., RPM strings).


        :param rpms: The rpms of this DbSystemOsPatchDetailsSummary.
        :type: list[str]
        """
        self._rpms = rpms

    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
