# coding: utf-8

"""
    dbw

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

    OpenAPI spec version: common-version
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401

import six

from volcenginesdkcore.configuration import Configuration


class DescribeTicketDetailResponse(object):
    """NOTE: This class is auto generated by the swagger code generator program.

    Do not edit the class manually.
    """

    """
    Attributes:
      swagger_types (dict): The key is attribute name
                            and the value is attribute type.
      attribute_map (dict): The key is attribute name
                            and the value is json key in definition.
    """
    swagger_types = {
        'create_time': 'str',
        'create_user': 'CreateUserForDescribeTicketDetailOutput',
        'current_user': 'CurrentUserForDescribeTicketDetailOutput',
        'db_name': 'str',
        'description': 'str',
        'exec_end_time': 'int',
        'exec_start_time': 'int',
        'instance_id': 'str',
        'instance_type': 'str',
        'memo': 'str',
        'sql_text': 'str',
        'ticket_execute_type': 'str',
        'ticket_id': 'str',
        'ticket_status': 'str',
        'ticket_type': 'str',
        'title': 'str',
        'update_time': 'str'
    }

    attribute_map = {
        'create_time': 'CreateTime',
        'create_user': 'CreateUser',
        'current_user': 'CurrentUser',
        'db_name': 'DbName',
        'description': 'Description',
        'exec_end_time': 'ExecEndTime',
        'exec_start_time': 'ExecStartTime',
        'instance_id': 'InstanceId',
        'instance_type': 'InstanceType',
        'memo': 'Memo',
        'sql_text': 'SqlText',
        'ticket_execute_type': 'TicketExecuteType',
        'ticket_id': 'TicketId',
        'ticket_status': 'TicketStatus',
        'ticket_type': 'TicketType',
        'title': 'Title',
        'update_time': 'UpdateTime'
    }

    def __init__(self, create_time=None, create_user=None, current_user=None, db_name=None, description=None, exec_end_time=None, exec_start_time=None, instance_id=None, instance_type=None, memo=None, sql_text=None, ticket_execute_type=None, ticket_id=None, ticket_status=None, ticket_type=None, title=None, update_time=None, _configuration=None):  # noqa: E501
        """DescribeTicketDetailResponse - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._create_time = None
        self._create_user = None
        self._current_user = None
        self._db_name = None
        self._description = None
        self._exec_end_time = None
        self._exec_start_time = None
        self._instance_id = None
        self._instance_type = None
        self._memo = None
        self._sql_text = None
        self._ticket_execute_type = None
        self._ticket_id = None
        self._ticket_status = None
        self._ticket_type = None
        self._title = None
        self._update_time = None
        self.discriminator = None

        if create_time is not None:
            self.create_time = create_time
        if create_user is not None:
            self.create_user = create_user
        if current_user is not None:
            self.current_user = current_user
        if db_name is not None:
            self.db_name = db_name
        if description is not None:
            self.description = description
        if exec_end_time is not None:
            self.exec_end_time = exec_end_time
        if exec_start_time is not None:
            self.exec_start_time = exec_start_time
        if instance_id is not None:
            self.instance_id = instance_id
        if instance_type is not None:
            self.instance_type = instance_type
        if memo is not None:
            self.memo = memo
        if sql_text is not None:
            self.sql_text = sql_text
        if ticket_execute_type is not None:
            self.ticket_execute_type = ticket_execute_type
        if ticket_id is not None:
            self.ticket_id = ticket_id
        if ticket_status is not None:
            self.ticket_status = ticket_status
        if ticket_type is not None:
            self.ticket_type = ticket_type
        if title is not None:
            self.title = title
        if update_time is not None:
            self.update_time = update_time

    @property
    def create_time(self):
        """Gets the create_time of this DescribeTicketDetailResponse.  # noqa: E501


        :return: The create_time of this DescribeTicketDetailResponse.  # noqa: E501
        :rtype: str
        """
        return self._create_time

    @create_time.setter
    def create_time(self, create_time):
        """Sets the create_time of this DescribeTicketDetailResponse.


        :param create_time: The create_time of this DescribeTicketDetailResponse.  # noqa: E501
        :type: str
        """

        self._create_time = create_time

    @property
    def create_user(self):
        """Gets the create_user of this DescribeTicketDetailResponse.  # noqa: E501


        :return: The create_user of this DescribeTicketDetailResponse.  # noqa: E501
        :rtype: CreateUserForDescribeTicketDetailOutput
        """
        return self._create_user

    @create_user.setter
    def create_user(self, create_user):
        """Sets the create_user of this DescribeTicketDetailResponse.


        :param create_user: The create_user of this DescribeTicketDetailResponse.  # noqa: E501
        :type: CreateUserForDescribeTicketDetailOutput
        """

        self._create_user = create_user

    @property
    def current_user(self):
        """Gets the current_user of this DescribeTicketDetailResponse.  # noqa: E501


        :return: The current_user of this DescribeTicketDetailResponse.  # noqa: E501
        :rtype: CurrentUserForDescribeTicketDetailOutput
        """
        return self._current_user

    @current_user.setter
    def current_user(self, current_user):
        """Sets the current_user of this DescribeTicketDetailResponse.


        :param current_user: The current_user of this DescribeTicketDetailResponse.  # noqa: E501
        :type: CurrentUserForDescribeTicketDetailOutput
        """

        self._current_user = current_user

    @property
    def db_name(self):
        """Gets the db_name of this DescribeTicketDetailResponse.  # noqa: E501


        :return: The db_name of this DescribeTicketDetailResponse.  # noqa: E501
        :rtype: str
        """
        return self._db_name

    @db_name.setter
    def db_name(self, db_name):
        """Sets the db_name of this DescribeTicketDetailResponse.


        :param db_name: The db_name of this DescribeTicketDetailResponse.  # noqa: E501
        :type: str
        """

        self._db_name = db_name

    @property
    def description(self):
        """Gets the description of this DescribeTicketDetailResponse.  # noqa: E501


        :return: The description of this DescribeTicketDetailResponse.  # noqa: E501
        :rtype: str
        """
        return self._description

    @description.setter
    def description(self, description):
        """Sets the description of this DescribeTicketDetailResponse.


        :param description: The description of this DescribeTicketDetailResponse.  # noqa: E501
        :type: str
        """

        self._description = description

    @property
    def exec_end_time(self):
        """Gets the exec_end_time of this DescribeTicketDetailResponse.  # noqa: E501


        :return: The exec_end_time of this DescribeTicketDetailResponse.  # noqa: E501
        :rtype: int
        """
        return self._exec_end_time

    @exec_end_time.setter
    def exec_end_time(self, exec_end_time):
        """Sets the exec_end_time of this DescribeTicketDetailResponse.


        :param exec_end_time: The exec_end_time of this DescribeTicketDetailResponse.  # noqa: E501
        :type: int
        """

        self._exec_end_time = exec_end_time

    @property
    def exec_start_time(self):
        """Gets the exec_start_time of this DescribeTicketDetailResponse.  # noqa: E501


        :return: The exec_start_time of this DescribeTicketDetailResponse.  # noqa: E501
        :rtype: int
        """
        return self._exec_start_time

    @exec_start_time.setter
    def exec_start_time(self, exec_start_time):
        """Sets the exec_start_time of this DescribeTicketDetailResponse.


        :param exec_start_time: The exec_start_time of this DescribeTicketDetailResponse.  # noqa: E501
        :type: int
        """

        self._exec_start_time = exec_start_time

    @property
    def instance_id(self):
        """Gets the instance_id of this DescribeTicketDetailResponse.  # noqa: E501


        :return: The instance_id of this DescribeTicketDetailResponse.  # noqa: E501
        :rtype: str
        """
        return self._instance_id

    @instance_id.setter
    def instance_id(self, instance_id):
        """Sets the instance_id of this DescribeTicketDetailResponse.


        :param instance_id: The instance_id of this DescribeTicketDetailResponse.  # noqa: E501
        :type: str
        """

        self._instance_id = instance_id

    @property
    def instance_type(self):
        """Gets the instance_type of this DescribeTicketDetailResponse.  # noqa: E501


        :return: The instance_type of this DescribeTicketDetailResponse.  # noqa: E501
        :rtype: str
        """
        return self._instance_type

    @instance_type.setter
    def instance_type(self, instance_type):
        """Sets the instance_type of this DescribeTicketDetailResponse.


        :param instance_type: The instance_type of this DescribeTicketDetailResponse.  # noqa: E501
        :type: str
        """

        self._instance_type = instance_type

    @property
    def memo(self):
        """Gets the memo of this DescribeTicketDetailResponse.  # noqa: E501


        :return: The memo of this DescribeTicketDetailResponse.  # noqa: E501
        :rtype: str
        """
        return self._memo

    @memo.setter
    def memo(self, memo):
        """Sets the memo of this DescribeTicketDetailResponse.


        :param memo: The memo of this DescribeTicketDetailResponse.  # noqa: E501
        :type: str
        """

        self._memo = memo

    @property
    def sql_text(self):
        """Gets the sql_text of this DescribeTicketDetailResponse.  # noqa: E501


        :return: The sql_text of this DescribeTicketDetailResponse.  # noqa: E501
        :rtype: str
        """
        return self._sql_text

    @sql_text.setter
    def sql_text(self, sql_text):
        """Sets the sql_text of this DescribeTicketDetailResponse.


        :param sql_text: The sql_text of this DescribeTicketDetailResponse.  # noqa: E501
        :type: str
        """

        self._sql_text = sql_text

    @property
    def ticket_execute_type(self):
        """Gets the ticket_execute_type of this DescribeTicketDetailResponse.  # noqa: E501


        :return: The ticket_execute_type of this DescribeTicketDetailResponse.  # noqa: E501
        :rtype: str
        """
        return self._ticket_execute_type

    @ticket_execute_type.setter
    def ticket_execute_type(self, ticket_execute_type):
        """Sets the ticket_execute_type of this DescribeTicketDetailResponse.


        :param ticket_execute_type: The ticket_execute_type of this DescribeTicketDetailResponse.  # noqa: E501
        :type: str
        """

        self._ticket_execute_type = ticket_execute_type

    @property
    def ticket_id(self):
        """Gets the ticket_id of this DescribeTicketDetailResponse.  # noqa: E501


        :return: The ticket_id of this DescribeTicketDetailResponse.  # noqa: E501
        :rtype: str
        """
        return self._ticket_id

    @ticket_id.setter
    def ticket_id(self, ticket_id):
        """Sets the ticket_id of this DescribeTicketDetailResponse.


        :param ticket_id: The ticket_id of this DescribeTicketDetailResponse.  # noqa: E501
        :type: str
        """

        self._ticket_id = ticket_id

    @property
    def ticket_status(self):
        """Gets the ticket_status of this DescribeTicketDetailResponse.  # noqa: E501


        :return: The ticket_status of this DescribeTicketDetailResponse.  # noqa: E501
        :rtype: str
        """
        return self._ticket_status

    @ticket_status.setter
    def ticket_status(self, ticket_status):
        """Sets the ticket_status of this DescribeTicketDetailResponse.


        :param ticket_status: The ticket_status of this DescribeTicketDetailResponse.  # noqa: E501
        :type: str
        """

        self._ticket_status = ticket_status

    @property
    def ticket_type(self):
        """Gets the ticket_type of this DescribeTicketDetailResponse.  # noqa: E501


        :return: The ticket_type of this DescribeTicketDetailResponse.  # noqa: E501
        :rtype: str
        """
        return self._ticket_type

    @ticket_type.setter
    def ticket_type(self, ticket_type):
        """Sets the ticket_type of this DescribeTicketDetailResponse.


        :param ticket_type: The ticket_type of this DescribeTicketDetailResponse.  # noqa: E501
        :type: str
        """

        self._ticket_type = ticket_type

    @property
    def title(self):
        """Gets the title of this DescribeTicketDetailResponse.  # noqa: E501


        :return: The title of this DescribeTicketDetailResponse.  # noqa: E501
        :rtype: str
        """
        return self._title

    @title.setter
    def title(self, title):
        """Sets the title of this DescribeTicketDetailResponse.


        :param title: The title of this DescribeTicketDetailResponse.  # noqa: E501
        :type: str
        """

        self._title = title

    @property
    def update_time(self):
        """Gets the update_time of this DescribeTicketDetailResponse.  # noqa: E501


        :return: The update_time of this DescribeTicketDetailResponse.  # noqa: E501
        :rtype: str
        """
        return self._update_time

    @update_time.setter
    def update_time(self, update_time):
        """Sets the update_time of this DescribeTicketDetailResponse.


        :param update_time: The update_time of this DescribeTicketDetailResponse.  # noqa: E501
        :type: str
        """

        self._update_time = update_time

    def to_dict(self):
        """Returns the model properties as a dict"""
        result = {}

        for attr, _ in six.iteritems(self.swagger_types):
            value = getattr(self, attr)
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
                    value
                ))
            elif hasattr(value, "to_dict"):
                result[attr] = value.to_dict()
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], item[1].to_dict())
                    if hasattr(item[1], "to_dict") else item,
                    value.items()
                ))
            else:
                result[attr] = value
        if issubclass(DescribeTicketDetailResponse, dict):
            for key, value in self.items():
                result[key] = value

        return result

    def to_str(self):
        """Returns the string representation of the model"""
        return pprint.pformat(self.to_dict())

    def __repr__(self):
        """For `print` and `pprint`"""
        return self.to_str()

    def __eq__(self, other):
        """Returns true if both objects are equal"""
        if not isinstance(other, DescribeTicketDetailResponse):
            return False

        return self.to_dict() == other.to_dict()

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        if not isinstance(other, DescribeTicketDetailResponse):
            return True

        return self.to_dict() != other.to_dict()
