# 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 ExecuteSqlResponseItemError(object):
    """
    Error details.
    """

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

        :param error_code:
            The value to assign to the error_code property of this ExecuteSqlResponseItemError.
        :type error_code: int

        :param error_line:
            The value to assign to the error_line property of this ExecuteSqlResponseItemError.
        :type error_line: int

        :param error_column:
            The value to assign to the error_column property of this ExecuteSqlResponseItemError.
        :type error_column: int

        :param error_message:
            The value to assign to the error_message property of this ExecuteSqlResponseItemError.
        :type error_message: str

        :param error_details:
            The value to assign to the error_details property of this ExecuteSqlResponseItemError.
        :type error_details: str

        """
        self.swagger_types = {
            'error_code': 'int',
            'error_line': 'int',
            'error_column': 'int',
            'error_message': 'str',
            'error_details': 'str'
        }
        self.attribute_map = {
            'error_code': 'errorCode',
            'error_line': 'errorLine',
            'error_column': 'errorColumn',
            'error_message': 'errorMessage',
            'error_details': 'errorDetails'
        }
        self._error_code = None
        self._error_line = None
        self._error_column = None
        self._error_message = None
        self._error_details = None

    @property
    def error_code(self):
        """
        Gets the error_code of this ExecuteSqlResponseItemError.
        Error code.


        :return: The error_code of this ExecuteSqlResponseItemError.
        :rtype: int
        """
        return self._error_code

    @error_code.setter
    def error_code(self, error_code):
        """
        Sets the error_code of this ExecuteSqlResponseItemError.
        Error code.


        :param error_code: The error_code of this ExecuteSqlResponseItemError.
        :type: int
        """
        self._error_code = error_code

    @property
    def error_line(self):
        """
        Gets the error_line of this ExecuteSqlResponseItemError.
        Error line number.


        :return: The error_line of this ExecuteSqlResponseItemError.
        :rtype: int
        """
        return self._error_line

    @error_line.setter
    def error_line(self, error_line):
        """
        Sets the error_line of this ExecuteSqlResponseItemError.
        Error line number.


        :param error_line: The error_line of this ExecuteSqlResponseItemError.
        :type: int
        """
        self._error_line = error_line

    @property
    def error_column(self):
        """
        Gets the error_column of this ExecuteSqlResponseItemError.
        Error column number.


        :return: The error_column of this ExecuteSqlResponseItemError.
        :rtype: int
        """
        return self._error_column

    @error_column.setter
    def error_column(self, error_column):
        """
        Sets the error_column of this ExecuteSqlResponseItemError.
        Error column number.


        :param error_column: The error_column of this ExecuteSqlResponseItemError.
        :type: int
        """
        self._error_column = error_column

    @property
    def error_message(self):
        """
        Gets the error_message of this ExecuteSqlResponseItemError.
        Error message.


        :return: The error_message of this ExecuteSqlResponseItemError.
        :rtype: str
        """
        return self._error_message

    @error_message.setter
    def error_message(self, error_message):
        """
        Sets the error_message of this ExecuteSqlResponseItemError.
        Error message.


        :param error_message: The error_message of this ExecuteSqlResponseItemError.
        :type: str
        """
        self._error_message = error_message

    @property
    def error_details(self):
        """
        Gets the error_details of this ExecuteSqlResponseItemError.
        Error details.


        :return: The error_details of this ExecuteSqlResponseItemError.
        :rtype: str
        """
        return self._error_details

    @error_details.setter
    def error_details(self, error_details):
        """
        Sets the error_details of this ExecuteSqlResponseItemError.
        Error details.


        :param error_details: The error_details of this ExecuteSqlResponseItemError.
        :type: str
        """
        self._error_details = error_details

    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
