# 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 AssociateUserBackupRequest(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_file_name': 'str',
        'bucket_name': 'str',
        'project_name': 'str',
        'region': 'str',
        'storage_space': 'int',
        'tos_object_info': 'TosObjectInfoForAssociateUserBackupInput',
        'zone_id': 'str'
    }

    attribute_map = {
        'backup_file_name': 'BackupFileName',
        'bucket_name': 'BucketName',
        'project_name': 'ProjectName',
        'region': 'Region',
        'storage_space': 'StorageSpace',
        'tos_object_info': 'TosObjectInfo',
        'zone_id': 'ZoneId'
    }

    def __init__(self, backup_file_name=None, bucket_name=None, project_name=None, region=None, storage_space=None, tos_object_info=None, zone_id=None, _configuration=None):  # noqa: E501
        """AssociateUserBackupRequest - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._backup_file_name = None
        self._bucket_name = None
        self._project_name = None
        self._region = None
        self._storage_space = None
        self._tos_object_info = None
        self._zone_id = None
        self.discriminator = None

        if backup_file_name is not None:
            self.backup_file_name = backup_file_name
        self.bucket_name = bucket_name
        self.project_name = project_name
        self.region = region
        self.storage_space = storage_space
        if tos_object_info is not None:
            self.tos_object_info = tos_object_info
        self.zone_id = zone_id

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


        :return: The backup_file_name of this AssociateUserBackupRequest.  # 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 AssociateUserBackupRequest.


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

        self._backup_file_name = backup_file_name

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


        :return: The bucket_name of this AssociateUserBackupRequest.  # noqa: E501
        :rtype: str
        """
        return self._bucket_name

    @bucket_name.setter
    def bucket_name(self, bucket_name):
        """Sets the bucket_name of this AssociateUserBackupRequest.


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

        self._bucket_name = bucket_name

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


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

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


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

        self._project_name = project_name

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


        :return: The region of this AssociateUserBackupRequest.  # noqa: E501
        :rtype: str
        """
        return self._region

    @region.setter
    def region(self, region):
        """Sets the region of this AssociateUserBackupRequest.


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

        self._region = region

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


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

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


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

        self._storage_space = storage_space

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


        :return: The tos_object_info of this AssociateUserBackupRequest.  # noqa: E501
        :rtype: TosObjectInfoForAssociateUserBackupInput
        """
        return self._tos_object_info

    @tos_object_info.setter
    def tos_object_info(self, tos_object_info):
        """Sets the tos_object_info of this AssociateUserBackupRequest.


        :param tos_object_info: The tos_object_info of this AssociateUserBackupRequest.  # noqa: E501
        :type: TosObjectInfoForAssociateUserBackupInput
        """

        self._tos_object_info = tos_object_info

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


        :return: The zone_id of this AssociateUserBackupRequest.  # noqa: E501
        :rtype: str
        """
        return self._zone_id

    @zone_id.setter
    def zone_id(self, zone_id):
        """Sets the zone_id of this AssociateUserBackupRequest.


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

        self._zone_id = zone_id

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

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