# coding: utf-8

"""
    aidap

    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 BranchForDescribeRestorableBranchesOutput(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 = {
        'archived': 'bool',
        'branch_id': 'str',
        'branch_name': 'str',
        'branch_status': 'str',
        'branch_usage': 'BranchUsageForDescribeRestorableBranchesOutput',
        'create_time': 'str',
        'creation_source': 'str',
        'default': 'bool',
        'init_source': 'str',
        'last_reset_time': 'str',
        'parent_branch': 'ParentBranchForDescribeRestorableBranchesOutput',
        'protected': 'bool',
        'start_parent_lsn': 'str',
        'start_parent_time': 'str',
        'status_changed_time': 'str',
        'update_time': 'str',
        'workspace_id': 'str'
    }

    attribute_map = {
        'archived': 'Archived',
        'branch_id': 'BranchId',
        'branch_name': 'BranchName',
        'branch_status': 'BranchStatus',
        'branch_usage': 'BranchUsage',
        'create_time': 'CreateTime',
        'creation_source': 'CreationSource',
        'default': 'Default',
        'init_source': 'InitSource',
        'last_reset_time': 'LastResetTime',
        'parent_branch': 'ParentBranch',
        'protected': 'Protected',
        'start_parent_lsn': 'StartParentLSN',
        'start_parent_time': 'StartParentTime',
        'status_changed_time': 'StatusChangedTime',
        'update_time': 'UpdateTime',
        'workspace_id': 'WorkspaceId'
    }

    def __init__(self, archived=None, branch_id=None, branch_name=None, branch_status=None, branch_usage=None, create_time=None, creation_source=None, default=None, init_source=None, last_reset_time=None, parent_branch=None, protected=None, start_parent_lsn=None, start_parent_time=None, status_changed_time=None, update_time=None, workspace_id=None, _configuration=None):  # noqa: E501
        """BranchForDescribeRestorableBranchesOutput - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._archived = None
        self._branch_id = None
        self._branch_name = None
        self._branch_status = None
        self._branch_usage = None
        self._create_time = None
        self._creation_source = None
        self._default = None
        self._init_source = None
        self._last_reset_time = None
        self._parent_branch = None
        self._protected = None
        self._start_parent_lsn = None
        self._start_parent_time = None
        self._status_changed_time = None
        self._update_time = None
        self._workspace_id = None
        self.discriminator = None

        if archived is not None:
            self.archived = archived
        if branch_id is not None:
            self.branch_id = branch_id
        if branch_name is not None:
            self.branch_name = branch_name
        if branch_status is not None:
            self.branch_status = branch_status
        if branch_usage is not None:
            self.branch_usage = branch_usage
        if create_time is not None:
            self.create_time = create_time
        if creation_source is not None:
            self.creation_source = creation_source
        if default is not None:
            self.default = default
        if init_source is not None:
            self.init_source = init_source
        if last_reset_time is not None:
            self.last_reset_time = last_reset_time
        if parent_branch is not None:
            self.parent_branch = parent_branch
        if protected is not None:
            self.protected = protected
        if start_parent_lsn is not None:
            self.start_parent_lsn = start_parent_lsn
        if start_parent_time is not None:
            self.start_parent_time = start_parent_time
        if status_changed_time is not None:
            self.status_changed_time = status_changed_time
        if update_time is not None:
            self.update_time = update_time
        if workspace_id is not None:
            self.workspace_id = workspace_id

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


        :return: The archived of this BranchForDescribeRestorableBranchesOutput.  # noqa: E501
        :rtype: bool
        """
        return self._archived

    @archived.setter
    def archived(self, archived):
        """Sets the archived of this BranchForDescribeRestorableBranchesOutput.


        :param archived: The archived of this BranchForDescribeRestorableBranchesOutput.  # noqa: E501
        :type: bool
        """

        self._archived = archived

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


        :return: The branch_id of this BranchForDescribeRestorableBranchesOutput.  # noqa: E501
        :rtype: str
        """
        return self._branch_id

    @branch_id.setter
    def branch_id(self, branch_id):
        """Sets the branch_id of this BranchForDescribeRestorableBranchesOutput.


        :param branch_id: The branch_id of this BranchForDescribeRestorableBranchesOutput.  # noqa: E501
        :type: str
        """

        self._branch_id = branch_id

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


        :return: The branch_name of this BranchForDescribeRestorableBranchesOutput.  # noqa: E501
        :rtype: str
        """
        return self._branch_name

    @branch_name.setter
    def branch_name(self, branch_name):
        """Sets the branch_name of this BranchForDescribeRestorableBranchesOutput.


        :param branch_name: The branch_name of this BranchForDescribeRestorableBranchesOutput.  # noqa: E501
        :type: str
        """

        self._branch_name = branch_name

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


        :return: The branch_status of this BranchForDescribeRestorableBranchesOutput.  # noqa: E501
        :rtype: str
        """
        return self._branch_status

    @branch_status.setter
    def branch_status(self, branch_status):
        """Sets the branch_status of this BranchForDescribeRestorableBranchesOutput.


        :param branch_status: The branch_status of this BranchForDescribeRestorableBranchesOutput.  # noqa: E501
        :type: str
        """

        self._branch_status = branch_status

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


        :return: The branch_usage of this BranchForDescribeRestorableBranchesOutput.  # noqa: E501
        :rtype: BranchUsageForDescribeRestorableBranchesOutput
        """
        return self._branch_usage

    @branch_usage.setter
    def branch_usage(self, branch_usage):
        """Sets the branch_usage of this BranchForDescribeRestorableBranchesOutput.


        :param branch_usage: The branch_usage of this BranchForDescribeRestorableBranchesOutput.  # noqa: E501
        :type: BranchUsageForDescribeRestorableBranchesOutput
        """

        self._branch_usage = branch_usage

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


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

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


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

        self._create_time = create_time

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


        :return: The creation_source of this BranchForDescribeRestorableBranchesOutput.  # noqa: E501
        :rtype: str
        """
        return self._creation_source

    @creation_source.setter
    def creation_source(self, creation_source):
        """Sets the creation_source of this BranchForDescribeRestorableBranchesOutput.


        :param creation_source: The creation_source of this BranchForDescribeRestorableBranchesOutput.  # noqa: E501
        :type: str
        """

        self._creation_source = creation_source

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


        :return: The default of this BranchForDescribeRestorableBranchesOutput.  # noqa: E501
        :rtype: bool
        """
        return self._default

    @default.setter
    def default(self, default):
        """Sets the default of this BranchForDescribeRestorableBranchesOutput.


        :param default: The default of this BranchForDescribeRestorableBranchesOutput.  # noqa: E501
        :type: bool
        """

        self._default = default

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


        :return: The init_source of this BranchForDescribeRestorableBranchesOutput.  # noqa: E501
        :rtype: str
        """
        return self._init_source

    @init_source.setter
    def init_source(self, init_source):
        """Sets the init_source of this BranchForDescribeRestorableBranchesOutput.


        :param init_source: The init_source of this BranchForDescribeRestorableBranchesOutput.  # noqa: E501
        :type: str
        """

        self._init_source = init_source

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


        :return: The last_reset_time of this BranchForDescribeRestorableBranchesOutput.  # noqa: E501
        :rtype: str
        """
        return self._last_reset_time

    @last_reset_time.setter
    def last_reset_time(self, last_reset_time):
        """Sets the last_reset_time of this BranchForDescribeRestorableBranchesOutput.


        :param last_reset_time: The last_reset_time of this BranchForDescribeRestorableBranchesOutput.  # noqa: E501
        :type: str
        """

        self._last_reset_time = last_reset_time

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


        :return: The parent_branch of this BranchForDescribeRestorableBranchesOutput.  # noqa: E501
        :rtype: ParentBranchForDescribeRestorableBranchesOutput
        """
        return self._parent_branch

    @parent_branch.setter
    def parent_branch(self, parent_branch):
        """Sets the parent_branch of this BranchForDescribeRestorableBranchesOutput.


        :param parent_branch: The parent_branch of this BranchForDescribeRestorableBranchesOutput.  # noqa: E501
        :type: ParentBranchForDescribeRestorableBranchesOutput
        """

        self._parent_branch = parent_branch

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


        :return: The protected of this BranchForDescribeRestorableBranchesOutput.  # noqa: E501
        :rtype: bool
        """
        return self._protected

    @protected.setter
    def protected(self, protected):
        """Sets the protected of this BranchForDescribeRestorableBranchesOutput.


        :param protected: The protected of this BranchForDescribeRestorableBranchesOutput.  # noqa: E501
        :type: bool
        """

        self._protected = protected

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


        :return: The start_parent_lsn of this BranchForDescribeRestorableBranchesOutput.  # noqa: E501
        :rtype: str
        """
        return self._start_parent_lsn

    @start_parent_lsn.setter
    def start_parent_lsn(self, start_parent_lsn):
        """Sets the start_parent_lsn of this BranchForDescribeRestorableBranchesOutput.


        :param start_parent_lsn: The start_parent_lsn of this BranchForDescribeRestorableBranchesOutput.  # noqa: E501
        :type: str
        """

        self._start_parent_lsn = start_parent_lsn

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


        :return: The start_parent_time of this BranchForDescribeRestorableBranchesOutput.  # noqa: E501
        :rtype: str
        """
        return self._start_parent_time

    @start_parent_time.setter
    def start_parent_time(self, start_parent_time):
        """Sets the start_parent_time of this BranchForDescribeRestorableBranchesOutput.


        :param start_parent_time: The start_parent_time of this BranchForDescribeRestorableBranchesOutput.  # noqa: E501
        :type: str
        """

        self._start_parent_time = start_parent_time

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


        :return: The status_changed_time of this BranchForDescribeRestorableBranchesOutput.  # noqa: E501
        :rtype: str
        """
        return self._status_changed_time

    @status_changed_time.setter
    def status_changed_time(self, status_changed_time):
        """Sets the status_changed_time of this BranchForDescribeRestorableBranchesOutput.


        :param status_changed_time: The status_changed_time of this BranchForDescribeRestorableBranchesOutput.  # noqa: E501
        :type: str
        """

        self._status_changed_time = status_changed_time

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


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

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


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

        self._update_time = update_time

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


        :return: The workspace_id of this BranchForDescribeRestorableBranchesOutput.  # noqa: E501
        :rtype: str
        """
        return self._workspace_id

    @workspace_id.setter
    def workspace_id(self, workspace_id):
        """Sets the workspace_id of this BranchForDescribeRestorableBranchesOutput.


        :param workspace_id: The workspace_id of this BranchForDescribeRestorableBranchesOutput.  # noqa: E501
        :type: str
        """

        self._workspace_id = workspace_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(BranchForDescribeRestorableBranchesOutput, 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, BranchForDescribeRestorableBranchesOutput):
            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, BranchForDescribeRestorableBranchesOutput):
            return True

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