# coding: utf-8
# Copyright (c) 2016, 2023, 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: 20220915


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 DefaultConfigParams(object):
    """
    Default database configuration.
    """

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

        :param config_key:
            The value to assign to the config_key property of this DefaultConfigParams.
        :type config_key: str

        :param default_config_value:
            The value to assign to the default_config_value property of this DefaultConfigParams.
        :type default_config_value: str

        :param allowed_values:
            The value to assign to the allowed_values property of this DefaultConfigParams.
        :type allowed_values: str

        :param is_restart_required:
            The value to assign to the is_restart_required property of this DefaultConfigParams.
        :type is_restart_required: bool

        :param data_type:
            The value to assign to the data_type property of this DefaultConfigParams.
        :type data_type: str

        :param is_overridable:
            The value to assign to the is_overridable property of this DefaultConfigParams.
        :type is_overridable: bool

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

        """
        self.swagger_types = {
            'config_key': 'str',
            'default_config_value': 'str',
            'allowed_values': 'str',
            'is_restart_required': 'bool',
            'data_type': 'str',
            'is_overridable': 'bool',
            'description': 'str'
        }

        self.attribute_map = {
            'config_key': 'configKey',
            'default_config_value': 'defaultConfigValue',
            'allowed_values': 'allowedValues',
            'is_restart_required': 'isRestartRequired',
            'data_type': 'dataType',
            'is_overridable': 'isOverridable',
            'description': 'description'
        }

        self._config_key = None
        self._default_config_value = None
        self._allowed_values = None
        self._is_restart_required = None
        self._data_type = None
        self._is_overridable = None
        self._description = None

    @property
    def config_key(self):
        """
        **[Required]** Gets the config_key of this DefaultConfigParams.
        The configuration variable name.


        :return: The config_key of this DefaultConfigParams.
        :rtype: str
        """
        return self._config_key

    @config_key.setter
    def config_key(self, config_key):
        """
        Sets the config_key of this DefaultConfigParams.
        The configuration variable name.


        :param config_key: The config_key of this DefaultConfigParams.
        :type: str
        """
        self._config_key = config_key

    @property
    def default_config_value(self):
        """
        **[Required]** Gets the default_config_value of this DefaultConfigParams.
        Default value for the variable.


        :return: The default_config_value of this DefaultConfigParams.
        :rtype: str
        """
        return self._default_config_value

    @default_config_value.setter
    def default_config_value(self, default_config_value):
        """
        Sets the default_config_value of this DefaultConfigParams.
        Default value for the variable.


        :param default_config_value: The default_config_value of this DefaultConfigParams.
        :type: str
        """
        self._default_config_value = default_config_value

    @property
    def allowed_values(self):
        """
        **[Required]** Gets the allowed_values of this DefaultConfigParams.
        Range or list of allowed values.


        :return: The allowed_values of this DefaultConfigParams.
        :rtype: str
        """
        return self._allowed_values

    @allowed_values.setter
    def allowed_values(self, allowed_values):
        """
        Sets the allowed_values of this DefaultConfigParams.
        Range or list of allowed values.


        :param allowed_values: The allowed_values of this DefaultConfigParams.
        :type: str
        """
        self._allowed_values = allowed_values

    @property
    def is_restart_required(self):
        """
        **[Required]** Gets the is_restart_required of this DefaultConfigParams.
        If true, modifying this configuration value will require a restart.


        :return: The is_restart_required of this DefaultConfigParams.
        :rtype: bool
        """
        return self._is_restart_required

    @is_restart_required.setter
    def is_restart_required(self, is_restart_required):
        """
        Sets the is_restart_required of this DefaultConfigParams.
        If true, modifying this configuration value will require a restart.


        :param is_restart_required: The is_restart_required of this DefaultConfigParams.
        :type: bool
        """
        self._is_restart_required = is_restart_required

    @property
    def data_type(self):
        """
        **[Required]** Gets the data_type of this DefaultConfigParams.
        Data type of the variable.


        :return: The data_type of this DefaultConfigParams.
        :rtype: str
        """
        return self._data_type

    @data_type.setter
    def data_type(self, data_type):
        """
        Sets the data_type of this DefaultConfigParams.
        Data type of the variable.


        :param data_type: The data_type of this DefaultConfigParams.
        :type: str
        """
        self._data_type = data_type

    @property
    def is_overridable(self):
        """
        **[Required]** Gets the is_overridable of this DefaultConfigParams.
        Whether the value can be overridden or not.


        :return: The is_overridable of this DefaultConfigParams.
        :rtype: bool
        """
        return self._is_overridable

    @is_overridable.setter
    def is_overridable(self, is_overridable):
        """
        Sets the is_overridable of this DefaultConfigParams.
        Whether the value can be overridden or not.


        :param is_overridable: The is_overridable of this DefaultConfigParams.
        :type: bool
        """
        self._is_overridable = is_overridable

    @property
    def description(self):
        """
        **[Required]** Gets the description of this DefaultConfigParams.
        Details about the PostgreSQL variable.


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

    @description.setter
    def description(self, description):
        """
        Sets the description of this DefaultConfigParams.
        Details about the PostgreSQL variable.


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

    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
