# 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 DatabaseToolsMcpToolsetVersionTool(object):
    """
    A tool definition for a specific MCP toolset version.
    """

    #: A constant which can be used with the default_status property of a DatabaseToolsMcpToolsetVersionTool.
    #: This constant has a value of "ENABLED"
    DEFAULT_STATUS_ENABLED = "ENABLED"

    #: A constant which can be used with the default_status property of a DatabaseToolsMcpToolsetVersionTool.
    #: This constant has a value of "DISABLED"
    DEFAULT_STATUS_DISABLED = "DISABLED"

    def __init__(self, **kwargs):
        """
        Initializes a new DatabaseToolsMcpToolsetVersionTool 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 DatabaseToolsMcpToolsetVersionTool.
        :type name: str

        :param display_name:
            The value to assign to the display_name property of this DatabaseToolsMcpToolsetVersionTool.
        :type display_name: str

        :param description:
            The value to assign to the description property of this DatabaseToolsMcpToolsetVersionTool.
        :type description: str

        :param default_status:
            The value to assign to the default_status property of this DatabaseToolsMcpToolsetVersionTool.
            Allowed values for this property are: "ENABLED", "DISABLED", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type default_status: str

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

        """
        self.swagger_types = {
            'name': 'str',
            'display_name': 'str',
            'description': 'str',
            'default_status': 'str',
            'default_allowed_roles': 'list[str]'
        }
        self.attribute_map = {
            'name': 'name',
            'display_name': 'displayName',
            'description': 'description',
            'default_status': 'defaultStatus',
            'default_allowed_roles': 'defaultAllowedRoles'
        }
        self._name = None
        self._display_name = None
        self._description = None
        self._default_status = None
        self._default_allowed_roles = None

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


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

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


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

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


        :return: The display_name of this DatabaseToolsMcpToolsetVersionTool.
        :rtype: str
        """
        return self._display_name

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


        :param display_name: The display_name of this DatabaseToolsMcpToolsetVersionTool.
        :type: str
        """
        self._display_name = display_name

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


        :return: The description of this DatabaseToolsMcpToolsetVersionTool.
        :rtype: str
        """
        return self._description

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


        :param description: The description of this DatabaseToolsMcpToolsetVersionTool.
        :type: str
        """
        self._description = description

    @property
    def default_status(self):
        """
        **[Required]** Gets the default_status of this DatabaseToolsMcpToolsetVersionTool.
        The default status of the tool in this version.

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


        :return: The default_status of this DatabaseToolsMcpToolsetVersionTool.
        :rtype: str
        """
        return self._default_status

    @default_status.setter
    def default_status(self, default_status):
        """
        Sets the default_status of this DatabaseToolsMcpToolsetVersionTool.
        The default status of the tool in this version.


        :param default_status: The default_status of this DatabaseToolsMcpToolsetVersionTool.
        :type: str
        """
        allowed_values = ["ENABLED", "DISABLED"]
        if not value_allowed_none_or_none_sentinel(default_status, allowed_values):
            default_status = 'UNKNOWN_ENUM_VALUE'
        self._default_status = default_status

    @property
    def default_allowed_roles(self):
        """
        Gets the default_allowed_roles of this DatabaseToolsMcpToolsetVersionTool.
        The roles granted access to this tool by default.


        :return: The default_allowed_roles of this DatabaseToolsMcpToolsetVersionTool.
        :rtype: list[str]
        """
        return self._default_allowed_roles

    @default_allowed_roles.setter
    def default_allowed_roles(self, default_allowed_roles):
        """
        Sets the default_allowed_roles of this DatabaseToolsMcpToolsetVersionTool.
        The roles granted access to this tool by default.


        :param default_allowed_roles: The default_allowed_roles of this DatabaseToolsMcpToolsetVersionTool.
        :type: list[str]
        """
        self._default_allowed_roles = default_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
