# 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 PluggableDatabaseManagementConfig(object):
    """
    The configuration of the Pluggable Database Management service.
    """

    #: A constant which can be used with the management_status property of a PluggableDatabaseManagementConfig.
    #: This constant has a value of "ENABLING"
    MANAGEMENT_STATUS_ENABLING = "ENABLING"

    #: A constant which can be used with the management_status property of a PluggableDatabaseManagementConfig.
    #: This constant has a value of "ENABLED"
    MANAGEMENT_STATUS_ENABLED = "ENABLED"

    #: A constant which can be used with the management_status property of a PluggableDatabaseManagementConfig.
    #: This constant has a value of "DISABLING"
    MANAGEMENT_STATUS_DISABLING = "DISABLING"

    #: A constant which can be used with the management_status property of a PluggableDatabaseManagementConfig.
    #: This constant has a value of "DISABLED"
    MANAGEMENT_STATUS_DISABLED = "DISABLED"

    #: A constant which can be used with the management_status property of a PluggableDatabaseManagementConfig.
    #: This constant has a value of "UPDATING"
    MANAGEMENT_STATUS_UPDATING = "UPDATING"

    #: A constant which can be used with the management_status property of a PluggableDatabaseManagementConfig.
    #: This constant has a value of "FAILED_ENABLING"
    MANAGEMENT_STATUS_FAILED_ENABLING = "FAILED_ENABLING"

    #: A constant which can be used with the management_status property of a PluggableDatabaseManagementConfig.
    #: This constant has a value of "FAILED_DISABLING"
    MANAGEMENT_STATUS_FAILED_DISABLING = "FAILED_DISABLING"

    #: A constant which can be used with the management_status property of a PluggableDatabaseManagementConfig.
    #: This constant has a value of "FAILED_UPDATING"
    MANAGEMENT_STATUS_FAILED_UPDATING = "FAILED_UPDATING"

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

        :param management_status:
            The value to assign to the management_status property of this PluggableDatabaseManagementConfig.
            Allowed values for this property are: "ENABLING", "ENABLED", "DISABLING", "DISABLED", "UPDATING", "FAILED_ENABLING", "FAILED_DISABLING", "FAILED_UPDATING", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type management_status: str

        """
        self.swagger_types = {
            'management_status': 'str'
        }
        self.attribute_map = {
            'management_status': 'managementStatus'
        }
        self._management_status = None

    @property
    def management_status(self):
        """
        **[Required]** Gets the management_status of this PluggableDatabaseManagementConfig.
        The status of the Pluggable Database Management service.

        Allowed values for this property are: "ENABLING", "ENABLED", "DISABLING", "DISABLED", "UPDATING", "FAILED_ENABLING", "FAILED_DISABLING", "FAILED_UPDATING", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The management_status of this PluggableDatabaseManagementConfig.
        :rtype: str
        """
        return self._management_status

    @management_status.setter
    def management_status(self, management_status):
        """
        Sets the management_status of this PluggableDatabaseManagementConfig.
        The status of the Pluggable Database Management service.


        :param management_status: The management_status of this PluggableDatabaseManagementConfig.
        :type: str
        """
        allowed_values = ["ENABLING", "ENABLED", "DISABLING", "DISABLED", "UPDATING", "FAILED_ENABLING", "FAILED_DISABLING", "FAILED_UPDATING"]
        if not value_allowed_none_or_none_sentinel(management_status, allowed_values):
            management_status = 'UNKNOWN_ENUM_VALUE'
        self._management_status = management_status

    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
