# 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 ExecuteSqlInputScriptSqlRequestDetails(object):
    """
    Contains the details for the Script SQL statements to execute on the database connection.
    """

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

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

        :param sql_requests:
            The value to assign to the sql_requests property of this ExecuteSqlInputScriptSqlRequestDetails.
        :type sql_requests: list[oci.database_tools_runtime.models.ExecuteSqlInputDetails]

        """
        self.swagger_types = {
            'properties': 'object',
            'sql_requests': 'list[ExecuteSqlInputDetails]'
        }
        self.attribute_map = {
            'properties': 'properties',
            'sql_requests': 'sqlRequests'
        }
        self._properties = None
        self._sql_requests = None

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


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

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


        :param properties: The properties of this ExecuteSqlInputScriptSqlRequestDetails.
        :type: object
        """
        self._properties = properties

    @property
    def sql_requests(self):
        """
        **[Required]** Gets the sql_requests of this ExecuteSqlInputScriptSqlRequestDetails.
        The SQL statements to execute.


        :return: The sql_requests of this ExecuteSqlInputScriptSqlRequestDetails.
        :rtype: list[oci.database_tools_runtime.models.ExecuteSqlInputDetails]
        """
        return self._sql_requests

    @sql_requests.setter
    def sql_requests(self, sql_requests):
        """
        Sets the sql_requests of this ExecuteSqlInputScriptSqlRequestDetails.
        The SQL statements to execute.


        :param sql_requests: The sql_requests of this ExecuteSqlInputScriptSqlRequestDetails.
        :type: list[oci.database_tools_runtime.models.ExecuteSqlInputDetails]
        """
        self._sql_requests = sql_requests

    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
