# 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 CreateDdlSqlChangeTicketRequest(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 = {
        'database_name': 'str',
        'exec_end_time': 'int',
        'exec_start_time': 'int',
        'instance_id': 'str',
        'instance_type': 'str',
        'memo': 'str',
        'sql_text': 'str',
        'ticket_execute_type': 'str',
        'title': 'str'
    }

    attribute_map = {
        'database_name': 'DatabaseName',
        'exec_end_time': 'ExecEndTime',
        'exec_start_time': 'ExecStartTime',
        'instance_id': 'InstanceId',
        'instance_type': 'InstanceType',
        'memo': 'Memo',
        'sql_text': 'SqlText',
        'ticket_execute_type': 'TicketExecuteType',
        'title': 'Title'
    }

    def __init__(self, database_name=None, exec_end_time=None, exec_start_time=None, instance_id=None, instance_type=None, memo=None, sql_text=None, ticket_execute_type=None, title=None, _configuration=None):  # noqa: E501
        """CreateDdlSqlChangeTicketRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._database_name = 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._title = None
        self.discriminator = None

        self.database_name = database_name
        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
        self.instance_id = instance_id
        self.instance_type = instance_type
        if memo is not None:
            self.memo = memo
        self.sql_text = sql_text
        self.ticket_execute_type = ticket_execute_type
        if title is not None:
            self.title = title

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


        :return: The database_name of this CreateDdlSqlChangeTicketRequest.  # noqa: E501
        :rtype: str
        """
        return self._database_name

    @database_name.setter
    def database_name(self, database_name):
        """Sets the database_name of this CreateDdlSqlChangeTicketRequest.


        :param database_name: The database_name of this CreateDdlSqlChangeTicketRequest.  # noqa: E501
        :type: str
        """
        if self._configuration.client_side_validation and database_name is None:
            raise ValueError("Invalid value for `database_name`, must not be `None`")  # noqa: E501

        self._database_name = database_name

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


        :return: The exec_end_time of this CreateDdlSqlChangeTicketRequest.  # 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 CreateDdlSqlChangeTicketRequest.


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

        self._exec_end_time = exec_end_time

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


        :return: The exec_start_time of this CreateDdlSqlChangeTicketRequest.  # 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 CreateDdlSqlChangeTicketRequest.


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

        self._exec_start_time = exec_start_time

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


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

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


        :param instance_id: The instance_id of this CreateDdlSqlChangeTicketRequest.  # noqa: E501
        :type: str
        """
        if self._configuration.client_side_validation and instance_id is None:
            raise ValueError("Invalid value for `instance_id`, must not be `None`")  # noqa: E501

        self._instance_id = instance_id

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


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

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


        :param instance_type: The instance_type of this CreateDdlSqlChangeTicketRequest.  # noqa: E501
        :type: str
        """
        if self._configuration.client_side_validation and instance_type is None:
            raise ValueError("Invalid value for `instance_type`, must not be `None`")  # noqa: E501

        self._instance_type = instance_type

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


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

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


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

        self._memo = memo

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


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

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


        :param sql_text: The sql_text of this CreateDdlSqlChangeTicketRequest.  # noqa: E501
        :type: str
        """
        if self._configuration.client_side_validation and sql_text is None:
            raise ValueError("Invalid value for `sql_text`, must not be `None`")  # noqa: E501

        self._sql_text = sql_text

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


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


        :param ticket_execute_type: The ticket_execute_type of this CreateDdlSqlChangeTicketRequest.  # noqa: E501
        :type: str
        """
        if self._configuration.client_side_validation and ticket_execute_type is None:
            raise ValueError("Invalid value for `ticket_execute_type`, must not be `None`")  # noqa: E501

        self._ticket_execute_type = ticket_execute_type

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


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

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


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

        self._title = title

    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(CreateDdlSqlChangeTicketRequest, 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, CreateDdlSqlChangeTicketRequest):
            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, CreateDdlSqlChangeTicketRequest):
            return True

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