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


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 CreateDatabaseToolsMcpToolsetToolDetails(object):
    """
    MCP toolset tool configuration
    """

    #: A constant which can be used with the status property of a CreateDatabaseToolsMcpToolsetToolDetails.
    #: This constant has a value of "ENABLED"
    STATUS_ENABLED = "ENABLED"

    #: A constant which can be used with the status property of a CreateDatabaseToolsMcpToolsetToolDetails.
    #: This constant has a value of "DISABLED"
    STATUS_DISABLED = "DISABLED"

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

        :param name:
            The value to assign to the name property of this CreateDatabaseToolsMcpToolsetToolDetails.
        :type name: str

        :param status:
            The value to assign to the status property of this CreateDatabaseToolsMcpToolsetToolDetails.
            Allowed values for this property are: "ENABLED", "DISABLED"
        :type status: str

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

        """
        self.swagger_types = {
            'name': 'str',
            'status': 'str',
            'allowed_roles': 'list[str]'
        }
        self.attribute_map = {
            'name': 'name',
            'status': 'status',
            'allowed_roles': 'allowedRoles'
        }
        self._name = None
        self._status = None
        self._allowed_roles = None

    @property
    def name(self):
        """
        **[Required]** Gets the name of this CreateDatabaseToolsMcpToolsetToolDetails.
        The name of the tool


        :return: The name of this CreateDatabaseToolsMcpToolsetToolDetails.
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name):
        """
        Sets the name of this CreateDatabaseToolsMcpToolsetToolDetails.
        The name of the tool


        :param name: The name of this CreateDatabaseToolsMcpToolsetToolDetails.
        :type: str
        """
        self._name = name

    @property
    def status(self):
        """
        Gets the status of this CreateDatabaseToolsMcpToolsetToolDetails.
        The status of the tool

        Allowed values for this property are: "ENABLED", "DISABLED"


        :return: The status of this CreateDatabaseToolsMcpToolsetToolDetails.
        :rtype: str
        """
        return self._status

    @status.setter
    def status(self, status):
        """
        Sets the status of this CreateDatabaseToolsMcpToolsetToolDetails.
        The status of the tool


        :param status: The status of this CreateDatabaseToolsMcpToolsetToolDetails.
        :type: str
        """
        allowed_values = ["ENABLED", "DISABLED"]
        if not value_allowed_none_or_none_sentinel(status, allowed_values):
            raise ValueError(
                f"Invalid value for `status`, must be None or one of {allowed_values}"
            )
        self._status = status

    @property
    def allowed_roles(self):
        """
        Gets the allowed_roles of this CreateDatabaseToolsMcpToolsetToolDetails.
        The roles granted access to this tool


        :return: The allowed_roles of this CreateDatabaseToolsMcpToolsetToolDetails.
        :rtype: list[str]
        """
        return self._allowed_roles

    @allowed_roles.setter
    def allowed_roles(self, allowed_roles):
        """
        Sets the allowed_roles of this CreateDatabaseToolsMcpToolsetToolDetails.
        The roles granted access to this tool


        :param allowed_roles: The allowed_roles of this CreateDatabaseToolsMcpToolsetToolDetails.
        :type: list[str]
        """
        self._allowed_roles = allowed_roles

    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
