# 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 TicketForDescribeTicketsOutput(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': 'CreateUserForDescribeTicketsOutput',
        'current_user': 'CurrentUserForDescribeTicketsOutput',
        'current_user_role': 'str',
        'db_name': 'str',
        'instance_id': 'str',
        'instance_type': 'str',
        'memo': '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',
        'current_user_role': 'CurrentUserRole',
        'db_name': 'DBName',
        'instance_id': 'InstanceId',
        'instance_type': 'InstanceType',
        'memo': 'Memo',
        '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, current_user_role=None, db_name=None, instance_id=None, instance_type=None, memo=None, ticket_execute_type=None, ticket_id=None, ticket_status=None, ticket_type=None, title=None, update_time=None, _configuration=None):  # noqa: E501
        """TicketForDescribeTicketsOutput - 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._current_user_role = None
        self._db_name = None
        self._instance_id = None
        self._instance_type = None
        self._memo = 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 current_user_role is not None:
            self.current_user_role = current_user_role
        if db_name is not None:
            self.db_name = db_name
        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 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 TicketForDescribeTicketsOutput.  # noqa: E501


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

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


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

        self._create_time = create_time

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


        :return: The create_user of this TicketForDescribeTicketsOutput.  # noqa: E501
        :rtype: CreateUserForDescribeTicketsOutput
        """
        return self._create_user

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


        :param create_user: The create_user of this TicketForDescribeTicketsOutput.  # noqa: E501
        :type: CreateUserForDescribeTicketsOutput
        """

        self._create_user = create_user

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


        :return: The current_user of this TicketForDescribeTicketsOutput.  # noqa: E501
        :rtype: CurrentUserForDescribeTicketsOutput
        """
        return self._current_user

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


        :param current_user: The current_user of this TicketForDescribeTicketsOutput.  # noqa: E501
        :type: CurrentUserForDescribeTicketsOutput
        """

        self._current_user = current_user

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


        :return: The current_user_role of this TicketForDescribeTicketsOutput.  # noqa: E501
        :rtype: str
        """
        return self._current_user_role

    @current_user_role.setter
    def current_user_role(self, current_user_role):
        """Sets the current_user_role of this TicketForDescribeTicketsOutput.


        :param current_user_role: The current_user_role of this TicketForDescribeTicketsOutput.  # noqa: E501
        :type: str
        """

        self._current_user_role = current_user_role

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


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

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


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

        self._db_name = db_name

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


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

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


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

        self._instance_id = instance_id

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


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

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


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

        self._instance_type = instance_type

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


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

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


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

        self._memo = memo

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


        :return: The ticket_execute_type of this TicketForDescribeTicketsOutput.  # 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 TicketForDescribeTicketsOutput.


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

        self._ticket_execute_type = ticket_execute_type

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


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

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


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

        self._ticket_id = ticket_id

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


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

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


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

        self._ticket_status = ticket_status

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


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

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


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

        self._ticket_type = ticket_type

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


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

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


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

        self._title = title

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


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

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


        :param update_time: The update_time of this TicketForDescribeTicketsOutput.  # 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(TicketForDescribeTicketsOutput, 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, TicketForDescribeTicketsOutput):
            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, TicketForDescribeTicketsOutput):
            return True

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