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


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 CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails(object):
    """
    The content of a Database Tools database API gateway config pool sub resource to be created.
    """

    #: A constant which can be used with the type property of a CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
    #: This constant has a value of "DEFAULT"
    TYPE_DEFAULT = "DEFAULT"

    #: A constant which can be used with the database_actions_status property of a CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
    #: This constant has a value of "ENABLED"
    DATABASE_ACTIONS_STATUS_ENABLED = "ENABLED"

    #: A constant which can be used with the database_actions_status property of a CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
    #: This constant has a value of "DISABLED"
    DATABASE_ACTIONS_STATUS_DISABLED = "DISABLED"

    #: A constant which can be used with the rest_enabled_sql_status property of a CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
    #: This constant has a value of "ENABLED"
    REST_ENABLED_SQL_STATUS_ENABLED = "ENABLED"

    #: A constant which can be used with the rest_enabled_sql_status property of a CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
    #: This constant has a value of "DISABLED"
    REST_ENABLED_SQL_STATUS_DISABLED = "DISABLED"

    def __init__(self, **kwargs):
        """
        Initializes a new CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input
        to a service operations then you should favor using a subclass over the base class:

        * :class:`~oci.database_tools_runtime.models.CreateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails`

        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param type:
            The value to assign to the type property of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
            Allowed values for this property are: "DEFAULT"
        :type type: str

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

        :param pool_route_value:
            The value to assign to the pool_route_value property of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        :type pool_route_value: str

        :param database_tools_connection_id:
            The value to assign to the database_tools_connection_id property of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        :type database_tools_connection_id: str

        :param max_pool_size:
            The value to assign to the max_pool_size property of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        :type max_pool_size: int

        :param min_pool_size:
            The value to assign to the min_pool_size property of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        :type min_pool_size: int

        :param initial_pool_size:
            The value to assign to the initial_pool_size property of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        :type initial_pool_size: int

        :param jwt_profile_jwk_url:
            The value to assign to the jwt_profile_jwk_url property of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        :type jwt_profile_jwk_url: str

        :param jwt_profile_issuer:
            The value to assign to the jwt_profile_issuer property of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        :type jwt_profile_issuer: str

        :param jwt_profile_audience:
            The value to assign to the jwt_profile_audience property of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        :type jwt_profile_audience: str

        :param jwt_profile_role_claim_name:
            The value to assign to the jwt_profile_role_claim_name property of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        :type jwt_profile_role_claim_name: str

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

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

        :param advanced_properties:
            The value to assign to the advanced_properties property of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        :type advanced_properties: dict(str, str)

        """
        self.swagger_types = {
            'type': 'str',
            'display_name': 'str',
            'pool_route_value': 'str',
            'database_tools_connection_id': 'str',
            'max_pool_size': 'int',
            'min_pool_size': 'int',
            'initial_pool_size': 'int',
            'jwt_profile_jwk_url': 'str',
            'jwt_profile_issuer': 'str',
            'jwt_profile_audience': 'str',
            'jwt_profile_role_claim_name': 'str',
            'database_actions_status': 'str',
            'rest_enabled_sql_status': 'str',
            'advanced_properties': 'dict(str, str)'
        }
        self.attribute_map = {
            'type': 'type',
            'display_name': 'displayName',
            'pool_route_value': 'poolRouteValue',
            'database_tools_connection_id': 'databaseToolsConnectionId',
            'max_pool_size': 'maxPoolSize',
            'min_pool_size': 'minPoolSize',
            'initial_pool_size': 'initialPoolSize',
            'jwt_profile_jwk_url': 'jwtProfileJwkUrl',
            'jwt_profile_issuer': 'jwtProfileIssuer',
            'jwt_profile_audience': 'jwtProfileAudience',
            'jwt_profile_role_claim_name': 'jwtProfileRoleClaimName',
            'database_actions_status': 'databaseActionsStatus',
            'rest_enabled_sql_status': 'restEnabledSqlStatus',
            'advanced_properties': 'advancedProperties'
        }
        self._type = None
        self._display_name = None
        self._pool_route_value = None
        self._database_tools_connection_id = None
        self._max_pool_size = None
        self._min_pool_size = None
        self._initial_pool_size = None
        self._jwt_profile_jwk_url = None
        self._jwt_profile_issuer = None
        self._jwt_profile_audience = None
        self._jwt_profile_role_claim_name = None
        self._database_actions_status = None
        self._rest_enabled_sql_status = None
        self._advanced_properties = None

    @staticmethod
    def get_subtype(object_dictionary):
        """
        Given the hash representation of a subtype of this class,
        use the info in the hash to return the class of the subtype.
        """
        type = object_dictionary['type']

        if type == 'DEFAULT':
            return 'CreateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails'
        else:
            return 'CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails'

    @property
    def type(self):
        """
        **[Required]** Gets the type of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        The type of the Database Tools database API gateway config pool sub resource.

        Allowed values for this property are: "DEFAULT"


        :return: The type of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        :rtype: str
        """
        return self._type

    @type.setter
    def type(self, type):
        """
        Sets the type of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        The type of the Database Tools database API gateway config pool sub resource.


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

    @property
    def display_name(self):
        """
        **[Required]** Gets the display_name of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        A user-friendly name. Does not have to be unique, and it\u2019s changeable. Avoid entering confidential information.


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

    @display_name.setter
    def display_name(self, display_name):
        """
        Sets the display_name of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        A user-friendly name. Does not have to be unique, and it\u2019s changeable. Avoid entering confidential information.


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

    @property
    def pool_route_value(self):
        """
        **[Required]** Gets the pool_route_value of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        The pool route value provided in requests to target this pool.


        :return: The pool_route_value of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        :rtype: str
        """
        return self._pool_route_value

    @pool_route_value.setter
    def pool_route_value(self, pool_route_value):
        """
        Sets the pool_route_value of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        The pool route value provided in requests to target this pool.


        :param pool_route_value: The pool_route_value of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        :type: str
        """
        self._pool_route_value = pool_route_value

    @property
    def database_tools_connection_id(self):
        """
        **[Required]** Gets the database_tools_connection_id of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        The `OCID`__ of the related Database Tools connection. Specifies the OCI database tools connection ocid to build the connection pool from.

        __ https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :return: The database_tools_connection_id of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        :rtype: str
        """
        return self._database_tools_connection_id

    @database_tools_connection_id.setter
    def database_tools_connection_id(self, database_tools_connection_id):
        """
        Sets the database_tools_connection_id of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        The `OCID`__ of the related Database Tools connection. Specifies the OCI database tools connection ocid to build the connection pool from.

        __ https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :param database_tools_connection_id: The database_tools_connection_id of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        :type: str
        """
        self._database_tools_connection_id = database_tools_connection_id

    @property
    def max_pool_size(self):
        """
        Gets the max_pool_size of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        Specifies the maximum number of database connections allowed for the pool.


        :return: The max_pool_size of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        :rtype: int
        """
        return self._max_pool_size

    @max_pool_size.setter
    def max_pool_size(self, max_pool_size):
        """
        Sets the max_pool_size of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        Specifies the maximum number of database connections allowed for the pool.


        :param max_pool_size: The max_pool_size of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        :type: int
        """
        self._max_pool_size = max_pool_size

    @property
    def min_pool_size(self):
        """
        Gets the min_pool_size of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        Specifies the minimum number of database connections allowed for the pool.


        :return: The min_pool_size of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        :rtype: int
        """
        return self._min_pool_size

    @min_pool_size.setter
    def min_pool_size(self, min_pool_size):
        """
        Sets the min_pool_size of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        Specifies the minimum number of database connections allowed for the pool.


        :param min_pool_size: The min_pool_size of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        :type: int
        """
        self._min_pool_size = min_pool_size

    @property
    def initial_pool_size(self):
        """
        Gets the initial_pool_size of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        Specifies the initial size for the number of database connections that will be created for the pool.


        :return: The initial_pool_size of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        :rtype: int
        """
        return self._initial_pool_size

    @initial_pool_size.setter
    def initial_pool_size(self, initial_pool_size):
        """
        Sets the initial_pool_size of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        Specifies the initial size for the number of database connections that will be created for the pool.


        :param initial_pool_size: The initial_pool_size of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        :type: int
        """
        self._initial_pool_size = initial_pool_size

    @property
    def jwt_profile_jwk_url(self):
        """
        Gets the jwt_profile_jwk_url of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        Specifies the URL of the JSON Web Key (JWK) that is used to verify the signature of the JWT token.


        :return: The jwt_profile_jwk_url of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        :rtype: str
        """
        return self._jwt_profile_jwk_url

    @jwt_profile_jwk_url.setter
    def jwt_profile_jwk_url(self, jwt_profile_jwk_url):
        """
        Sets the jwt_profile_jwk_url of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        Specifies the URL of the JSON Web Key (JWK) that is used to verify the signature of the JWT token.


        :param jwt_profile_jwk_url: The jwt_profile_jwk_url of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        :type: str
        """
        self._jwt_profile_jwk_url = jwt_profile_jwk_url

    @property
    def jwt_profile_issuer(self):
        """
        Gets the jwt_profile_issuer of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        Specifies the issuer of the JWT token. This value is used to validate the iss claim in the JWT token.


        :return: The jwt_profile_issuer of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        :rtype: str
        """
        return self._jwt_profile_issuer

    @jwt_profile_issuer.setter
    def jwt_profile_issuer(self, jwt_profile_issuer):
        """
        Sets the jwt_profile_issuer of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        Specifies the issuer of the JWT token. This value is used to validate the iss claim in the JWT token.


        :param jwt_profile_issuer: The jwt_profile_issuer of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        :type: str
        """
        self._jwt_profile_issuer = jwt_profile_issuer

    @property
    def jwt_profile_audience(self):
        """
        Gets the jwt_profile_audience of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        Specifies the expected audience for the JWT token. This value is used to validate the aud claim in the JWT token.


        :return: The jwt_profile_audience of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        :rtype: str
        """
        return self._jwt_profile_audience

    @jwt_profile_audience.setter
    def jwt_profile_audience(self, jwt_profile_audience):
        """
        Sets the jwt_profile_audience of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        Specifies the expected audience for the JWT token. This value is used to validate the aud claim in the JWT token.


        :param jwt_profile_audience: The jwt_profile_audience of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        :type: str
        """
        self._jwt_profile_audience = jwt_profile_audience

    @property
    def jwt_profile_role_claim_name(self):
        """
        Gets the jwt_profile_role_claim_name of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        Specifies the JSON pointer to the claim in the JWT token that contains the roles of the users.


        :return: The jwt_profile_role_claim_name of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        :rtype: str
        """
        return self._jwt_profile_role_claim_name

    @jwt_profile_role_claim_name.setter
    def jwt_profile_role_claim_name(self, jwt_profile_role_claim_name):
        """
        Sets the jwt_profile_role_claim_name of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        Specifies the JSON pointer to the claim in the JWT token that contains the roles of the users.


        :param jwt_profile_role_claim_name: The jwt_profile_role_claim_name of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        :type: str
        """
        self._jwt_profile_role_claim_name = jwt_profile_role_claim_name

    @property
    def database_actions_status(self):
        """
        Gets the database_actions_status of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        Specifies to enable the Database Actions feature.

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


        :return: The database_actions_status of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        :rtype: str
        """
        return self._database_actions_status

    @database_actions_status.setter
    def database_actions_status(self, database_actions_status):
        """
        Sets the database_actions_status of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        Specifies to enable the Database Actions feature.


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

    @property
    def rest_enabled_sql_status(self):
        """
        Gets the rest_enabled_sql_status of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        Specifies whether the REST-Enabled SQL service is active.

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


        :return: The rest_enabled_sql_status of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        :rtype: str
        """
        return self._rest_enabled_sql_status

    @rest_enabled_sql_status.setter
    def rest_enabled_sql_status(self, rest_enabled_sql_status):
        """
        Sets the rest_enabled_sql_status of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        Specifies whether the REST-Enabled SQL service is active.


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

    @property
    def advanced_properties(self):
        """
        Gets the advanced_properties of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        Advanced pool properties.


        :return: The advanced_properties of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        :rtype: dict(str, str)
        """
        return self._advanced_properties

    @advanced_properties.setter
    def advanced_properties(self, advanced_properties):
        """
        Sets the advanced_properties of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        Advanced pool properties.


        :param advanced_properties: The advanced_properties of this CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails.
        :type: dict(str, str)
        """
        self._advanced_properties = advanced_properties

    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
