# 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 ExecuteSqlResponseItemResultSet(object):
    """
    Result set generated from the query.
    """

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

        :param metadata:
            The value to assign to the metadata property of this ExecuteSqlResponseItemResultSet.
        :type metadata: list[oci.database_tools_runtime.models.ExecuteSqlResponseItemResultSetMetadata]

        :param items:
            The value to assign to the items property of this ExecuteSqlResponseItemResultSet.
        :type items: list[dict(str, object)]

        :param has_more:
            The value to assign to the has_more property of this ExecuteSqlResponseItemResultSet.
        :type has_more: bool

        :param count:
            The value to assign to the count property of this ExecuteSqlResponseItemResultSet.
        :type count: int

        :param offset:
            The value to assign to the offset property of this ExecuteSqlResponseItemResultSet.
        :type offset: int

        :param limit:
            The value to assign to the limit property of this ExecuteSqlResponseItemResultSet.
        :type limit: int

        """
        self.swagger_types = {
            'metadata': 'list[ExecuteSqlResponseItemResultSetMetadata]',
            'items': 'list[dict(str, object)]',
            'has_more': 'bool',
            'count': 'int',
            'offset': 'int',
            'limit': 'int'
        }
        self.attribute_map = {
            'metadata': 'metadata',
            'items': 'items',
            'has_more': 'hasMore',
            'count': 'count',
            'offset': 'offset',
            'limit': 'limit'
        }
        self._metadata = None
        self._items = None
        self._has_more = None
        self._count = None
        self._offset = None
        self._limit = None

    @property
    def metadata(self):
        """
        Gets the metadata of this ExecuteSqlResponseItemResultSet.
        Metadata of the column.


        :return: The metadata of this ExecuteSqlResponseItemResultSet.
        :rtype: list[oci.database_tools_runtime.models.ExecuteSqlResponseItemResultSetMetadata]
        """
        return self._metadata

    @metadata.setter
    def metadata(self, metadata):
        """
        Sets the metadata of this ExecuteSqlResponseItemResultSet.
        Metadata of the column.


        :param metadata: The metadata of this ExecuteSqlResponseItemResultSet.
        :type: list[oci.database_tools_runtime.models.ExecuteSqlResponseItemResultSetMetadata]
        """
        self._metadata = metadata

    @property
    def items(self):
        """
        Gets the items of this ExecuteSqlResponseItemResultSet.
        All rows in the result set.


        :return: The items of this ExecuteSqlResponseItemResultSet.
        :rtype: list[dict(str, object)]
        """
        return self._items

    @items.setter
    def items(self, items):
        """
        Sets the items of this ExecuteSqlResponseItemResultSet.
        All rows in the result set.


        :param items: The items of this ExecuteSqlResponseItemResultSet.
        :type: list[dict(str, object)]
        """
        self._items = items

    @property
    def has_more(self):
        """
        Gets the has_more of this ExecuteSqlResponseItemResultSet.
        Specifies whether the result set has more rows.


        :return: The has_more of this ExecuteSqlResponseItemResultSet.
        :rtype: bool
        """
        return self._has_more

    @has_more.setter
    def has_more(self, has_more):
        """
        Sets the has_more of this ExecuteSqlResponseItemResultSet.
        Specifies whether the result set has more rows.


        :param has_more: The has_more of this ExecuteSqlResponseItemResultSet.
        :type: bool
        """
        self._has_more = has_more

    @property
    def count(self):
        """
        Gets the count of this ExecuteSqlResponseItemResultSet.
        The number of rows returned.


        :return: The count of this ExecuteSqlResponseItemResultSet.
        :rtype: int
        """
        return self._count

    @count.setter
    def count(self, count):
        """
        Sets the count of this ExecuteSqlResponseItemResultSet.
        The number of rows returned.


        :param count: The count of this ExecuteSqlResponseItemResultSet.
        :type: int
        """
        self._count = count

    @property
    def offset(self):
        """
        Gets the offset of this ExecuteSqlResponseItemResultSet.
        The first row returned in the result set.


        :return: The offset of this ExecuteSqlResponseItemResultSet.
        :rtype: int
        """
        return self._offset

    @offset.setter
    def offset(self, offset):
        """
        Sets the offset of this ExecuteSqlResponseItemResultSet.
        The first row returned in the result set.


        :param offset: The offset of this ExecuteSqlResponseItemResultSet.
        :type: int
        """
        self._offset = offset

    @property
    def limit(self):
        """
        Gets the limit of this ExecuteSqlResponseItemResultSet.
        Maximum number of rows returned from the query.


        :return: The limit of this ExecuteSqlResponseItemResultSet.
        :rtype: int
        """
        return self._limit

    @limit.setter
    def limit(self, limit):
        """
        Sets the limit of this ExecuteSqlResponseItemResultSet.
        Maximum number of rows returned from the query.


        :param limit: The limit of this ExecuteSqlResponseItemResultSet.
        :type: int
        """
        self._limit = limit

    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
