# coding: utf-8

"""
    rds_mysql_v2

    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 BackupsInfoForDescribeUserUploadBackupsOutput(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 = {
        'backup_associate_time': 'str',
        'backup_file_name': 'str',
        'backup_file_size': 'int',
        'backup_id': 'str',
        'backup_status': 'str',
        'binlog_info': 'BinlogInfoForDescribeUserUploadBackupsOutput',
        'db_engine_version': 'str',
        'engine_type': 'str',
        'project_name': 'str',
        'storage_space': 'int',
        'tags': 'list[TagForDescribeUserUploadBackupsOutput]',
        'tos_info': 'str',
        'unavailable_reason': 'str'
    }

    attribute_map = {
        'backup_associate_time': 'BackupAssociateTime',
        'backup_file_name': 'BackupFileName',
        'backup_file_size': 'BackupFileSize',
        'backup_id': 'BackupId',
        'backup_status': 'BackupStatus',
        'binlog_info': 'BinlogInfo',
        'db_engine_version': 'DBEngineVersion',
        'engine_type': 'EngineType',
        'project_name': 'ProjectName',
        'storage_space': 'StorageSpace',
        'tags': 'Tags',
        'tos_info': 'TosInfo',
        'unavailable_reason': 'UnavailableReason'
    }

    def __init__(self, backup_associate_time=None, backup_file_name=None, backup_file_size=None, backup_id=None, backup_status=None, binlog_info=None, db_engine_version=None, engine_type=None, project_name=None, storage_space=None, tags=None, tos_info=None, unavailable_reason=None, _configuration=None):  # noqa: E501
        """BackupsInfoForDescribeUserUploadBackupsOutput - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._backup_associate_time = None
        self._backup_file_name = None
        self._backup_file_size = None
        self._backup_id = None
        self._backup_status = None
        self._binlog_info = None
        self._db_engine_version = None
        self._engine_type = None
        self._project_name = None
        self._storage_space = None
        self._tags = None
        self._tos_info = None
        self._unavailable_reason = None
        self.discriminator = None

        if backup_associate_time is not None:
            self.backup_associate_time = backup_associate_time
        if backup_file_name is not None:
            self.backup_file_name = backup_file_name
        if backup_file_size is not None:
            self.backup_file_size = backup_file_size
        if backup_id is not None:
            self.backup_id = backup_id
        if backup_status is not None:
            self.backup_status = backup_status
        if binlog_info is not None:
            self.binlog_info = binlog_info
        if db_engine_version is not None:
            self.db_engine_version = db_engine_version
        if engine_type is not None:
            self.engine_type = engine_type
        if project_name is not None:
            self.project_name = project_name
        if storage_space is not None:
            self.storage_space = storage_space
        if tags is not None:
            self.tags = tags
        if tos_info is not None:
            self.tos_info = tos_info
        if unavailable_reason is not None:
            self.unavailable_reason = unavailable_reason

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


        :return: The backup_associate_time of this BackupsInfoForDescribeUserUploadBackupsOutput.  # noqa: E501
        :rtype: str
        """
        return self._backup_associate_time

    @backup_associate_time.setter
    def backup_associate_time(self, backup_associate_time):
        """Sets the backup_associate_time of this BackupsInfoForDescribeUserUploadBackupsOutput.


        :param backup_associate_time: The backup_associate_time of this BackupsInfoForDescribeUserUploadBackupsOutput.  # noqa: E501
        :type: str
        """

        self._backup_associate_time = backup_associate_time

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


        :return: The backup_file_name of this BackupsInfoForDescribeUserUploadBackupsOutput.  # noqa: E501
        :rtype: str
        """
        return self._backup_file_name

    @backup_file_name.setter
    def backup_file_name(self, backup_file_name):
        """Sets the backup_file_name of this BackupsInfoForDescribeUserUploadBackupsOutput.


        :param backup_file_name: The backup_file_name of this BackupsInfoForDescribeUserUploadBackupsOutput.  # noqa: E501
        :type: str
        """

        self._backup_file_name = backup_file_name

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


        :return: The backup_file_size of this BackupsInfoForDescribeUserUploadBackupsOutput.  # noqa: E501
        :rtype: int
        """
        return self._backup_file_size

    @backup_file_size.setter
    def backup_file_size(self, backup_file_size):
        """Sets the backup_file_size of this BackupsInfoForDescribeUserUploadBackupsOutput.


        :param backup_file_size: The backup_file_size of this BackupsInfoForDescribeUserUploadBackupsOutput.  # noqa: E501
        :type: int
        """

        self._backup_file_size = backup_file_size

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


        :return: The backup_id of this BackupsInfoForDescribeUserUploadBackupsOutput.  # noqa: E501
        :rtype: str
        """
        return self._backup_id

    @backup_id.setter
    def backup_id(self, backup_id):
        """Sets the backup_id of this BackupsInfoForDescribeUserUploadBackupsOutput.


        :param backup_id: The backup_id of this BackupsInfoForDescribeUserUploadBackupsOutput.  # noqa: E501
        :type: str
        """

        self._backup_id = backup_id

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


        :return: The backup_status of this BackupsInfoForDescribeUserUploadBackupsOutput.  # noqa: E501
        :rtype: str
        """
        return self._backup_status

    @backup_status.setter
    def backup_status(self, backup_status):
        """Sets the backup_status of this BackupsInfoForDescribeUserUploadBackupsOutput.


        :param backup_status: The backup_status of this BackupsInfoForDescribeUserUploadBackupsOutput.  # noqa: E501
        :type: str
        """

        self._backup_status = backup_status

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


        :return: The binlog_info of this BackupsInfoForDescribeUserUploadBackupsOutput.  # noqa: E501
        :rtype: BinlogInfoForDescribeUserUploadBackupsOutput
        """
        return self._binlog_info

    @binlog_info.setter
    def binlog_info(self, binlog_info):
        """Sets the binlog_info of this BackupsInfoForDescribeUserUploadBackupsOutput.


        :param binlog_info: The binlog_info of this BackupsInfoForDescribeUserUploadBackupsOutput.  # noqa: E501
        :type: BinlogInfoForDescribeUserUploadBackupsOutput
        """

        self._binlog_info = binlog_info

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


        :return: The db_engine_version of this BackupsInfoForDescribeUserUploadBackupsOutput.  # noqa: E501
        :rtype: str
        """
        return self._db_engine_version

    @db_engine_version.setter
    def db_engine_version(self, db_engine_version):
        """Sets the db_engine_version of this BackupsInfoForDescribeUserUploadBackupsOutput.


        :param db_engine_version: The db_engine_version of this BackupsInfoForDescribeUserUploadBackupsOutput.  # noqa: E501
        :type: str
        """

        self._db_engine_version = db_engine_version

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


        :return: The engine_type of this BackupsInfoForDescribeUserUploadBackupsOutput.  # noqa: E501
        :rtype: str
        """
        return self._engine_type

    @engine_type.setter
    def engine_type(self, engine_type):
        """Sets the engine_type of this BackupsInfoForDescribeUserUploadBackupsOutput.


        :param engine_type: The engine_type of this BackupsInfoForDescribeUserUploadBackupsOutput.  # noqa: E501
        :type: str
        """

        self._engine_type = engine_type

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


        :return: The project_name of this BackupsInfoForDescribeUserUploadBackupsOutput.  # noqa: E501
        :rtype: str
        """
        return self._project_name

    @project_name.setter
    def project_name(self, project_name):
        """Sets the project_name of this BackupsInfoForDescribeUserUploadBackupsOutput.


        :param project_name: The project_name of this BackupsInfoForDescribeUserUploadBackupsOutput.  # noqa: E501
        :type: str
        """

        self._project_name = project_name

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


        :return: The storage_space of this BackupsInfoForDescribeUserUploadBackupsOutput.  # noqa: E501
        :rtype: int
        """
        return self._storage_space

    @storage_space.setter
    def storage_space(self, storage_space):
        """Sets the storage_space of this BackupsInfoForDescribeUserUploadBackupsOutput.


        :param storage_space: The storage_space of this BackupsInfoForDescribeUserUploadBackupsOutput.  # noqa: E501
        :type: int
        """

        self._storage_space = storage_space

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


        :return: The tags of this BackupsInfoForDescribeUserUploadBackupsOutput.  # noqa: E501
        :rtype: list[TagForDescribeUserUploadBackupsOutput]
        """
        return self._tags

    @tags.setter
    def tags(self, tags):
        """Sets the tags of this BackupsInfoForDescribeUserUploadBackupsOutput.


        :param tags: The tags of this BackupsInfoForDescribeUserUploadBackupsOutput.  # noqa: E501
        :type: list[TagForDescribeUserUploadBackupsOutput]
        """

        self._tags = tags

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


        :return: The tos_info of this BackupsInfoForDescribeUserUploadBackupsOutput.  # noqa: E501
        :rtype: str
        """
        return self._tos_info

    @tos_info.setter
    def tos_info(self, tos_info):
        """Sets the tos_info of this BackupsInfoForDescribeUserUploadBackupsOutput.


        :param tos_info: The tos_info of this BackupsInfoForDescribeUserUploadBackupsOutput.  # noqa: E501
        :type: str
        """

        self._tos_info = tos_info

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


        :return: The unavailable_reason of this BackupsInfoForDescribeUserUploadBackupsOutput.  # noqa: E501
        :rtype: str
        """
        return self._unavailable_reason

    @unavailable_reason.setter
    def unavailable_reason(self, unavailable_reason):
        """Sets the unavailable_reason of this BackupsInfoForDescribeUserUploadBackupsOutput.


        :param unavailable_reason: The unavailable_reason of this BackupsInfoForDescribeUserUploadBackupsOutput.  # noqa: E501
        :type: str
        """

        self._unavailable_reason = unavailable_reason

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

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