# 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 ExecuteSqlBind(object):
    """
    Bind information.
    """

    #: A constant which can be used with the mode property of a ExecuteSqlBind.
    #: This constant has a value of "IN"
    MODE_IN = "IN"

    #: A constant which can be used with the mode property of a ExecuteSqlBind.
    #: This constant has a value of "INOUT"
    MODE_INOUT = "INOUT"

    #: A constant which can be used with the mode property of a ExecuteSqlBind.
    #: This constant has a value of "OUT"
    MODE_OUT = "OUT"

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

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

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

        :param index:
            The value to assign to the index property of this ExecuteSqlBind.
        :type index: int

        :param mode:
            The value to assign to the mode property of this ExecuteSqlBind.
            Allowed values for this property are: "IN", "INOUT", "OUT", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type mode: str

        :param values:
            The value to assign to the values property of this ExecuteSqlBind.
        :type values: list[object]

        :param results:
            The value to assign to the results property of this ExecuteSqlBind.
        :type results: list[object]

        :param plsql_table_type_details:
            The value to assign to the plsql_table_type_details property of this ExecuteSqlBind.
        :type plsql_table_type_details: oci.database_tools_runtime.models.ExecuteSqlBindPlsqlTable

        """
        self.swagger_types = {
            'data_type': 'str',
            'name': 'str',
            'index': 'int',
            'mode': 'str',
            'values': 'list[object]',
            'results': 'list[object]',
            'plsql_table_type_details': 'ExecuteSqlBindPlsqlTable'
        }
        self.attribute_map = {
            'data_type': 'dataType',
            'name': 'name',
            'index': 'index',
            'mode': 'mode',
            'values': 'values',
            'results': 'results',
            'plsql_table_type_details': 'plsqlTableTypeDetails'
        }
        self._data_type = None
        self._name = None
        self._index = None
        self._mode = None
        self._values = None
        self._results = None
        self._plsql_table_type_details = None

    @property
    def data_type(self):
        """
        **[Required]** Gets the data_type of this ExecuteSqlBind.
        The data type.


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

    @data_type.setter
    def data_type(self, data_type):
        """
        Sets the data_type of this ExecuteSqlBind.
        The data type.


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

    @property
    def name(self):
        """
        Gets the name of this ExecuteSqlBind.
        Name of the bind.


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

    @name.setter
    def name(self, name):
        """
        Sets the name of this ExecuteSqlBind.
        Name of the bind.


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

    @property
    def index(self):
        """
        Gets the index of this ExecuteSqlBind.
        Index of the bind. Index of the first bind is 1.


        :return: The index of this ExecuteSqlBind.
        :rtype: int
        """
        return self._index

    @index.setter
    def index(self, index):
        """
        Sets the index of this ExecuteSqlBind.
        Index of the bind. Index of the first bind is 1.


        :param index: The index of this ExecuteSqlBind.
        :type: int
        """
        self._index = index

    @property
    def mode(self):
        """
        Gets the mode of this ExecuteSqlBind.
        The mode in which the bind is used.

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


        :return: The mode of this ExecuteSqlBind.
        :rtype: str
        """
        return self._mode

    @mode.setter
    def mode(self, mode):
        """
        Sets the mode of this ExecuteSqlBind.
        The mode in which the bind is used.


        :param mode: The mode of this ExecuteSqlBind.
        :type: str
        """
        allowed_values = ["IN", "INOUT", "OUT"]
        if not value_allowed_none_or_none_sentinel(mode, allowed_values):
            mode = 'UNKNOWN_ENUM_VALUE'
        self._mode = mode

    @property
    def values(self):
        """
        Gets the values of this ExecuteSqlBind.
        values


        :return: The values of this ExecuteSqlBind.
        :rtype: list[object]
        """
        return self._values

    @values.setter
    def values(self, values):
        """
        Sets the values of this ExecuteSqlBind.
        values


        :param values: The values of this ExecuteSqlBind.
        :type: list[object]
        """
        self._values = values

    @property
    def results(self):
        """
        Gets the results of this ExecuteSqlBind.
        results


        :return: The results of this ExecuteSqlBind.
        :rtype: list[object]
        """
        return self._results

    @results.setter
    def results(self, results):
        """
        Sets the results of this ExecuteSqlBind.
        results


        :param results: The results of this ExecuteSqlBind.
        :type: list[object]
        """
        self._results = results

    @property
    def plsql_table_type_details(self):
        """
        Gets the plsql_table_type_details of this ExecuteSqlBind.

        :return: The plsql_table_type_details of this ExecuteSqlBind.
        :rtype: oci.database_tools_runtime.models.ExecuteSqlBindPlsqlTable
        """
        return self._plsql_table_type_details

    @plsql_table_type_details.setter
    def plsql_table_type_details(self, plsql_table_type_details):
        """
        Sets the plsql_table_type_details of this ExecuteSqlBind.

        :param plsql_table_type_details: The plsql_table_type_details of this ExecuteSqlBind.
        :type: oci.database_tools_runtime.models.ExecuteSqlBindPlsqlTable
        """
        self._plsql_table_type_details = plsql_table_type_details

    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
