# 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 ExecuteSqlResponseItemBatch(object):
    """
    A statement execution response for batched type requests.
    """

    #: A constant which can be used with the statement_type property of a ExecuteSqlResponseItemBatch.
    #: This constant has a value of "QUERY"
    STATEMENT_TYPE_QUERY = "QUERY"

    #: A constant which can be used with the statement_type property of a ExecuteSqlResponseItemBatch.
    #: This constant has a value of "DML"
    STATEMENT_TYPE_DML = "DML"

    #: A constant which can be used with the statement_type property of a ExecuteSqlResponseItemBatch.
    #: This constant has a value of "DDL"
    STATEMENT_TYPE_DDL = "DDL"

    #: A constant which can be used with the statement_type property of a ExecuteSqlResponseItemBatch.
    #: This constant has a value of "PLSQL"
    STATEMENT_TYPE_PLSQL = "PLSQL"

    #: A constant which can be used with the statement_type property of a ExecuteSqlResponseItemBatch.
    #: This constant has a value of "SQLPLUS"
    STATEMENT_TYPE_SQLPLUS = "SQLPLUS"

    #: A constant which can be used with the statement_type property of a ExecuteSqlResponseItemBatch.
    #: This constant has a value of "IGNORE"
    STATEMENT_TYPE_IGNORE = "IGNORE"

    #: A constant which can be used with the statement_type property of a ExecuteSqlResponseItemBatch.
    #: This constant has a value of "TRANSACTION_CONTROL"
    STATEMENT_TYPE_TRANSACTION_CONTROL = "TRANSACTION_CONTROL"

    #: A constant which can be used with the statement_type property of a ExecuteSqlResponseItemBatch.
    #: This constant has a value of "SESSION_CONTROL"
    STATEMENT_TYPE_SESSION_CONTROL = "SESSION_CONTROL"

    #: A constant which can be used with the statement_type property of a ExecuteSqlResponseItemBatch.
    #: This constant has a value of "SYSTEM_CONTROL"
    STATEMENT_TYPE_SYSTEM_CONTROL = "SYSTEM_CONTROL"

    #: A constant which can be used with the statement_type property of a ExecuteSqlResponseItemBatch.
    #: This constant has a value of "JDBC"
    STATEMENT_TYPE_JDBC = "JDBC"

    #: A constant which can be used with the statement_type property of a ExecuteSqlResponseItemBatch.
    #: This constant has a value of "OTHER"
    STATEMENT_TYPE_OTHER = "OTHER"

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

        :param statement_id:
            The value to assign to the statement_id property of this ExecuteSqlResponseItemBatch.
        :type statement_id: int

        :param statement_type:
            The value to assign to the statement_type property of this ExecuteSqlResponseItemBatch.
            Allowed values for this property are: "QUERY", "DML", "DDL", "PLSQL", "SQLPLUS", "IGNORE", "TRANSACTION_CONTROL", "SESSION_CONTROL", "SYSTEM_CONTROL", "JDBC", "OTHER", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type statement_type: str

        :param statement_pos:
            The value to assign to the statement_pos property of this ExecuteSqlResponseItemBatch.
        :type statement_pos: oci.database_tools_runtime.models.ExecuteSqlResponseItemStatementPos

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

        :param error:
            The value to assign to the error property of this ExecuteSqlResponseItemBatch.
        :type error: oci.database_tools_runtime.models.ExecuteSqlResponseItemError

        :param dbms_output:
            The value to assign to the dbms_output property of this ExecuteSqlResponseItemBatch.
        :type dbms_output: str

        :param properties:
            The value to assign to the properties property of this ExecuteSqlResponseItemBatch.
        :type properties: oci.database_tools_runtime.models.ExecuteSqlResponseItemProperties

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

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

        """
        self.swagger_types = {
            'statement_id': 'int',
            'statement_type': 'str',
            'statement_pos': 'ExecuteSqlResponseItemStatementPos',
            'batch_statement_texts': 'list[str]',
            'error': 'ExecuteSqlResponseItemError',
            'dbms_output': 'str',
            'properties': 'ExecuteSqlResponseItemProperties',
            'responses': 'list[str]',
            'results': 'list[int]'
        }
        self.attribute_map = {
            'statement_id': 'statementId',
            'statement_type': 'statementType',
            'statement_pos': 'statementPos',
            'batch_statement_texts': 'batchStatementTexts',
            'error': 'error',
            'dbms_output': 'dbmsOutput',
            'properties': 'properties',
            'responses': 'responses',
            'results': 'results'
        }
        self._statement_id = None
        self._statement_type = None
        self._statement_pos = None
        self._batch_statement_texts = None
        self._error = None
        self._dbms_output = None
        self._properties = None
        self._responses = None
        self._results = None

    @property
    def statement_id(self):
        """
        Gets the statement_id of this ExecuteSqlResponseItemBatch.
        The sequence number of the statement. Sequence number of the first statement is 1.


        :return: The statement_id of this ExecuteSqlResponseItemBatch.
        :rtype: int
        """
        return self._statement_id

    @statement_id.setter
    def statement_id(self, statement_id):
        """
        Sets the statement_id of this ExecuteSqlResponseItemBatch.
        The sequence number of the statement. Sequence number of the first statement is 1.


        :param statement_id: The statement_id of this ExecuteSqlResponseItemBatch.
        :type: int
        """
        self._statement_id = statement_id

    @property
    def statement_type(self):
        """
        Gets the statement_type of this ExecuteSqlResponseItemBatch.
        The Statement type.

        Allowed values for this property are: "QUERY", "DML", "DDL", "PLSQL", "SQLPLUS", "IGNORE", "TRANSACTION_CONTROL", "SESSION_CONTROL", "SYSTEM_CONTROL", "JDBC", "OTHER", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The statement_type of this ExecuteSqlResponseItemBatch.
        :rtype: str
        """
        return self._statement_type

    @statement_type.setter
    def statement_type(self, statement_type):
        """
        Sets the statement_type of this ExecuteSqlResponseItemBatch.
        The Statement type.


        :param statement_type: The statement_type of this ExecuteSqlResponseItemBatch.
        :type: str
        """
        allowed_values = ["QUERY", "DML", "DDL", "PLSQL", "SQLPLUS", "IGNORE", "TRANSACTION_CONTROL", "SESSION_CONTROL", "SYSTEM_CONTROL", "JDBC", "OTHER"]
        if not value_allowed_none_or_none_sentinel(statement_type, allowed_values):
            statement_type = 'UNKNOWN_ENUM_VALUE'
        self._statement_type = statement_type

    @property
    def statement_pos(self):
        """
        Gets the statement_pos of this ExecuteSqlResponseItemBatch.

        :return: The statement_pos of this ExecuteSqlResponseItemBatch.
        :rtype: oci.database_tools_runtime.models.ExecuteSqlResponseItemStatementPos
        """
        return self._statement_pos

    @statement_pos.setter
    def statement_pos(self, statement_pos):
        """
        Sets the statement_pos of this ExecuteSqlResponseItemBatch.

        :param statement_pos: The statement_pos of this ExecuteSqlResponseItemBatch.
        :type: oci.database_tools_runtime.models.ExecuteSqlResponseItemStatementPos
        """
        self._statement_pos = statement_pos

    @property
    def batch_statement_texts(self):
        """
        Gets the batch_statement_texts of this ExecuteSqlResponseItemBatch.
        DML statements to execute in jdbc batch mode


        :return: The batch_statement_texts of this ExecuteSqlResponseItemBatch.
        :rtype: list[str]
        """
        return self._batch_statement_texts

    @batch_statement_texts.setter
    def batch_statement_texts(self, batch_statement_texts):
        """
        Sets the batch_statement_texts of this ExecuteSqlResponseItemBatch.
        DML statements to execute in jdbc batch mode


        :param batch_statement_texts: The batch_statement_texts of this ExecuteSqlResponseItemBatch.
        :type: list[str]
        """
        self._batch_statement_texts = batch_statement_texts

    @property
    def error(self):
        """
        Gets the error of this ExecuteSqlResponseItemBatch.

        :return: The error of this ExecuteSqlResponseItemBatch.
        :rtype: oci.database_tools_runtime.models.ExecuteSqlResponseItemError
        """
        return self._error

    @error.setter
    def error(self, error):
        """
        Sets the error of this ExecuteSqlResponseItemBatch.

        :param error: The error of this ExecuteSqlResponseItemBatch.
        :type: oci.database_tools_runtime.models.ExecuteSqlResponseItemError
        """
        self._error = error

    @property
    def dbms_output(self):
        """
        Gets the dbms_output of this ExecuteSqlResponseItemBatch.
        Output from DBMS_OUTPUT package. Server output must be enabled (e.g., SET SERVEROUTPUT ON).


        :return: The dbms_output of this ExecuteSqlResponseItemBatch.
        :rtype: str
        """
        return self._dbms_output

    @dbms_output.setter
    def dbms_output(self, dbms_output):
        """
        Sets the dbms_output of this ExecuteSqlResponseItemBatch.
        Output from DBMS_OUTPUT package. Server output must be enabled (e.g., SET SERVEROUTPUT ON).


        :param dbms_output: The dbms_output of this ExecuteSqlResponseItemBatch.
        :type: str
        """
        self._dbms_output = dbms_output

    @property
    def properties(self):
        """
        Gets the properties of this ExecuteSqlResponseItemBatch.

        :return: The properties of this ExecuteSqlResponseItemBatch.
        :rtype: oci.database_tools_runtime.models.ExecuteSqlResponseItemProperties
        """
        return self._properties

    @properties.setter
    def properties(self, properties):
        """
        Sets the properties of this ExecuteSqlResponseItemBatch.

        :param properties: The properties of this ExecuteSqlResponseItemBatch.
        :type: oci.database_tools_runtime.models.ExecuteSqlResponseItemProperties
        """
        self._properties = properties

    @property
    def responses(self):
        """
        Gets the responses of this ExecuteSqlResponseItemBatch.
        Responses generated when executing the statements.


        :return: The responses of this ExecuteSqlResponseItemBatch.
        :rtype: list[str]
        """
        return self._responses

    @responses.setter
    def responses(self, responses):
        """
        Sets the responses of this ExecuteSqlResponseItemBatch.
        Responses generated when executing the statements.


        :param responses: The responses of this ExecuteSqlResponseItemBatch.
        :type: list[str]
        """
        self._responses = responses

    @property
    def results(self):
        """
        Gets the results of this ExecuteSqlResponseItemBatch.
        Results generated when executing the statements.


        :return: The results of this ExecuteSqlResponseItemBatch.
        :rtype: list[int]
        """
        return self._results

    @results.setter
    def results(self, results):
        """
        Sets the results of this ExecuteSqlResponseItemBatch.
        Results generated when executing the statements.


        :param results: The results of this ExecuteSqlResponseItemBatch.
        :type: list[int]
        """
        self._results = results

    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
