# 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 ExecuteSqlResponseItemStatementPos(object):
    """
    Position of the statement.
    """

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

        :param start_line:
            The value to assign to the start_line property of this ExecuteSqlResponseItemStatementPos.
        :type start_line: int

        :param end_line:
            The value to assign to the end_line property of this ExecuteSqlResponseItemStatementPos.
        :type end_line: int

        """
        self.swagger_types = {
            'start_line': 'int',
            'end_line': 'int'
        }
        self.attribute_map = {
            'start_line': 'startLine',
            'end_line': 'endLine'
        }
        self._start_line = None
        self._end_line = None

    @property
    def start_line(self):
        """
        Gets the start_line of this ExecuteSqlResponseItemStatementPos.
        Start line of the statement. First start line is 1.


        :return: The start_line of this ExecuteSqlResponseItemStatementPos.
        :rtype: int
        """
        return self._start_line

    @start_line.setter
    def start_line(self, start_line):
        """
        Sets the start_line of this ExecuteSqlResponseItemStatementPos.
        Start line of the statement. First start line is 1.


        :param start_line: The start_line of this ExecuteSqlResponseItemStatementPos.
        :type: int
        """
        self._start_line = start_line

    @property
    def end_line(self):
        """
        Gets the end_line of this ExecuteSqlResponseItemStatementPos.
        End line of the statement.


        :return: The end_line of this ExecuteSqlResponseItemStatementPos.
        :rtype: int
        """
        return self._end_line

    @end_line.setter
    def end_line(self, end_line):
        """
        Sets the end_line of this ExecuteSqlResponseItemStatementPos.
        End line of the statement.


        :param end_line: The end_line of this ExecuteSqlResponseItemStatementPos.
        :type: int
        """
        self._end_line = end_line

    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
