# 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 .execute_sql_input_details import ExecuteSqlInputDetails
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 ExecuteSqlInputBatchDetails(ExecuteSqlInputDetails):
    """
    Contains the details for the Batch SQL statements to execute on the database connection.
    """

    def __init__(self, **kwargs):
        """
        Initializes a new ExecuteSqlInputBatchDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.database_tools_runtime.models.ExecuteSqlInputBatchDetails.type` attribute
        of this class is ``BATCH`` and it should not be changed.
        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 ExecuteSqlInputBatchDetails.
            Allowed values for this property are: "STANDARD", "BATCH", "SCRIPT"
        :type type: str

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

        :param response_format:
            The value to assign to the response_format property of this ExecuteSqlInputBatchDetails.
        :type response_format: oci.database_tools_runtime.models.ExecuteSqlResponseFormat

        :param properties:
            The value to assign to the properties property of this ExecuteSqlInputBatchDetails.
        :type properties: object

        """
        self.swagger_types = {
            'type': 'str',
            'batch_statement_texts': 'list[str]',
            'response_format': 'ExecuteSqlResponseFormat',
            'properties': 'object'
        }
        self.attribute_map = {
            'type': 'type',
            'batch_statement_texts': 'batchStatementTexts',
            'response_format': 'responseFormat',
            'properties': 'properties'
        }
        self._type = None
        self._batch_statement_texts = None
        self._response_format = None
        self._properties = None
        self._type = 'BATCH'

    @property
    def batch_statement_texts(self):
        """
        **[Required]** Gets the batch_statement_texts of this ExecuteSqlInputBatchDetails.
        DML statements to execute in jdbc batch mode


        :return: The batch_statement_texts of this ExecuteSqlInputBatchDetails.
        :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 ExecuteSqlInputBatchDetails.
        DML statements to execute in jdbc batch mode


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

    @property
    def response_format(self):
        """
        Gets the response_format of this ExecuteSqlInputBatchDetails.

        :return: The response_format of this ExecuteSqlInputBatchDetails.
        :rtype: oci.database_tools_runtime.models.ExecuteSqlResponseFormat
        """
        return self._response_format

    @response_format.setter
    def response_format(self, response_format):
        """
        Sets the response_format of this ExecuteSqlInputBatchDetails.

        :param response_format: The response_format of this ExecuteSqlInputBatchDetails.
        :type: oci.database_tools_runtime.models.ExecuteSqlResponseFormat
        """
        self._response_format = response_format

    @property
    def properties(self):
        """
        Gets the properties of this ExecuteSqlInputBatchDetails.
        Client properties returned as-is in the response


        :return: The properties of this ExecuteSqlInputBatchDetails.
        :rtype: object
        """
        return self._properties

    @properties.setter
    def properties(self, properties):
        """
        Sets the properties of this ExecuteSqlInputBatchDetails.
        Client properties returned as-is in the response


        :param properties: The properties of this ExecuteSqlInputBatchDetails.
        :type: object
        """
        self._properties = 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
