# coding: utf-8

"""
    XMS API

    XMS is the controller of distributed storage system  # noqa: E501

    OpenAPI spec version: 3.2.14
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401
import six

# from xms_client.models.access_path_nestview import AccessPathNestview  # noqa: F401,E501
# from xms_client.models.fs_snapshot_nestview import FSSnapshotNestview  # noqa: F401,E501
# from xms_client.models.pool_nestview import PoolNestview  # noqa: F401,E501
# from xms_client.models.volume_nestview import VolumeNestview  # noqa: F401,E501
# from xms_client.models.volume_qos_spec import VolumeQosSpec  # noqa: F401,E501


class FSFolder(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 = {
        'access_path': 'AccessPathNestview',
        'action_status': 'str',
        'block_volume': 'VolumeNestview',
        'create': 'datetime',
        'description': 'str',
        'flattened': 'bool',
        'formatted': 'bool',
        'fs_snapshot': 'FSSnapshotNestview',
        'fs_snapshot_num': 'int',
        'id': 'int',
        'latest_snapshot_time': 'datetime',
        'name': 'str',
        'pool': 'PoolNestview',
        'progress': 'float',
        'qos': 'VolumeQosSpec',
        'qos_enabled': 'bool',
        'size': 'int',
        'status': 'str',
        'update': 'datetime'
    }

    attribute_map = {
        'access_path': 'access_path',
        'action_status': 'action_status',
        'block_volume': 'block_volume',
        'create': 'create',
        'description': 'description',
        'flattened': 'flattened',
        'formatted': 'formatted',
        'fs_snapshot': 'fs_snapshot',
        'fs_snapshot_num': 'fs_snapshot_num',
        'id': 'id',
        'latest_snapshot_time': 'latest_snapshot_time',
        'name': 'name',
        'pool': 'pool',
        'progress': 'progress',
        'qos': 'qos',
        'qos_enabled': 'qos_enabled',
        'size': 'size',
        'status': 'status',
        'update': 'update'
    }

    def __init__(self, access_path=None, action_status=None, block_volume=None, create=None, description=None, flattened=None, formatted=None, fs_snapshot=None, fs_snapshot_num=None, id=None, latest_snapshot_time=None, name=None, pool=None, progress=None, qos=None, qos_enabled=None, size=None, status=None, update=None):  # noqa: E501
        """FSFolder - a model defined in Swagger"""  # noqa: E501

        self._access_path = None
        self._action_status = None
        self._block_volume = None
        self._create = None
        self._description = None
        self._flattened = None
        self._formatted = None
        self._fs_snapshot = None
        self._fs_snapshot_num = None
        self._id = None
        self._latest_snapshot_time = None
        self._name = None
        self._pool = None
        self._progress = None
        self._qos = None
        self._qos_enabled = None
        self._size = None
        self._status = None
        self._update = None
        self.discriminator = None

        if access_path is not None:
            self.access_path = access_path
        if action_status is not None:
            self.action_status = action_status
        if block_volume is not None:
            self.block_volume = block_volume
        if create is not None:
            self.create = create
        if description is not None:
            self.description = description
        if flattened is not None:
            self.flattened = flattened
        if formatted is not None:
            self.formatted = formatted
        if fs_snapshot is not None:
            self.fs_snapshot = fs_snapshot
        if fs_snapshot_num is not None:
            self.fs_snapshot_num = fs_snapshot_num
        if id is not None:
            self.id = id
        if latest_snapshot_time is not None:
            self.latest_snapshot_time = latest_snapshot_time
        if name is not None:
            self.name = name
        if pool is not None:
            self.pool = pool
        if progress is not None:
            self.progress = progress
        if qos is not None:
            self.qos = qos
        if qos_enabled is not None:
            self.qos_enabled = qos_enabled
        if size is not None:
            self.size = size
        if status is not None:
            self.status = status
        if update is not None:
            self.update = update

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


        :return: The access_path of this FSFolder.  # noqa: E501
        :rtype: AccessPathNestview
        """
        return self._access_path

    @access_path.setter
    def access_path(self, access_path):
        """Sets the access_path of this FSFolder.


        :param access_path: The access_path of this FSFolder.  # noqa: E501
        :type: AccessPathNestview
        """

        self._access_path = access_path

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


        :return: The action_status of this FSFolder.  # noqa: E501
        :rtype: str
        """
        return self._action_status

    @action_status.setter
    def action_status(self, action_status):
        """Sets the action_status of this FSFolder.


        :param action_status: The action_status of this FSFolder.  # noqa: E501
        :type: str
        """

        self._action_status = action_status

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


        :return: The block_volume of this FSFolder.  # noqa: E501
        :rtype: VolumeNestview
        """
        return self._block_volume

    @block_volume.setter
    def block_volume(self, block_volume):
        """Sets the block_volume of this FSFolder.


        :param block_volume: The block_volume of this FSFolder.  # noqa: E501
        :type: VolumeNestview
        """

        self._block_volume = block_volume

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


        :return: The create of this FSFolder.  # noqa: E501
        :rtype: datetime
        """
        return self._create

    @create.setter
    def create(self, create):
        """Sets the create of this FSFolder.


        :param create: The create of this FSFolder.  # noqa: E501
        :type: datetime
        """

        self._create = create

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


        :return: The description of this FSFolder.  # noqa: E501
        :rtype: str
        """
        return self._description

    @description.setter
    def description(self, description):
        """Sets the description of this FSFolder.


        :param description: The description of this FSFolder.  # noqa: E501
        :type: str
        """

        self._description = description

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


        :return: The flattened of this FSFolder.  # noqa: E501
        :rtype: bool
        """
        return self._flattened

    @flattened.setter
    def flattened(self, flattened):
        """Sets the flattened of this FSFolder.


        :param flattened: The flattened of this FSFolder.  # noqa: E501
        :type: bool
        """

        self._flattened = flattened

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


        :return: The formatted of this FSFolder.  # noqa: E501
        :rtype: bool
        """
        return self._formatted

    @formatted.setter
    def formatted(self, formatted):
        """Sets the formatted of this FSFolder.


        :param formatted: The formatted of this FSFolder.  # noqa: E501
        :type: bool
        """

        self._formatted = formatted

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


        :return: The fs_snapshot of this FSFolder.  # noqa: E501
        :rtype: FSSnapshotNestview
        """
        return self._fs_snapshot

    @fs_snapshot.setter
    def fs_snapshot(self, fs_snapshot):
        """Sets the fs_snapshot of this FSFolder.


        :param fs_snapshot: The fs_snapshot of this FSFolder.  # noqa: E501
        :type: FSSnapshotNestview
        """

        self._fs_snapshot = fs_snapshot

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


        :return: The fs_snapshot_num of this FSFolder.  # noqa: E501
        :rtype: int
        """
        return self._fs_snapshot_num

    @fs_snapshot_num.setter
    def fs_snapshot_num(self, fs_snapshot_num):
        """Sets the fs_snapshot_num of this FSFolder.


        :param fs_snapshot_num: The fs_snapshot_num of this FSFolder.  # noqa: E501
        :type: int
        """

        self._fs_snapshot_num = fs_snapshot_num

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


        :return: The id of this FSFolder.  # noqa: E501
        :rtype: int
        """
        return self._id

    @id.setter
    def id(self, id):
        """Sets the id of this FSFolder.


        :param id: The id of this FSFolder.  # noqa: E501
        :type: int
        """

        self._id = id

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


        :return: The latest_snapshot_time of this FSFolder.  # noqa: E501
        :rtype: datetime
        """
        return self._latest_snapshot_time

    @latest_snapshot_time.setter
    def latest_snapshot_time(self, latest_snapshot_time):
        """Sets the latest_snapshot_time of this FSFolder.


        :param latest_snapshot_time: The latest_snapshot_time of this FSFolder.  # noqa: E501
        :type: datetime
        """

        self._latest_snapshot_time = latest_snapshot_time

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


        :return: The name of this FSFolder.  # noqa: E501
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name):
        """Sets the name of this FSFolder.


        :param name: The name of this FSFolder.  # noqa: E501
        :type: str
        """

        self._name = name

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


        :return: The pool of this FSFolder.  # noqa: E501
        :rtype: PoolNestview
        """
        return self._pool

    @pool.setter
    def pool(self, pool):
        """Sets the pool of this FSFolder.


        :param pool: The pool of this FSFolder.  # noqa: E501
        :type: PoolNestview
        """

        self._pool = pool

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


        :return: The progress of this FSFolder.  # noqa: E501
        :rtype: float
        """
        return self._progress

    @progress.setter
    def progress(self, progress):
        """Sets the progress of this FSFolder.


        :param progress: The progress of this FSFolder.  # noqa: E501
        :type: float
        """

        self._progress = progress

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


        :return: The qos of this FSFolder.  # noqa: E501
        :rtype: VolumeQosSpec
        """
        return self._qos

    @qos.setter
    def qos(self, qos):
        """Sets the qos of this FSFolder.


        :param qos: The qos of this FSFolder.  # noqa: E501
        :type: VolumeQosSpec
        """

        self._qos = qos

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


        :return: The qos_enabled of this FSFolder.  # noqa: E501
        :rtype: bool
        """
        return self._qos_enabled

    @qos_enabled.setter
    def qos_enabled(self, qos_enabled):
        """Sets the qos_enabled of this FSFolder.


        :param qos_enabled: The qos_enabled of this FSFolder.  # noqa: E501
        :type: bool
        """

        self._qos_enabled = qos_enabled

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


        :return: The size of this FSFolder.  # noqa: E501
        :rtype: int
        """
        return self._size

    @size.setter
    def size(self, size):
        """Sets the size of this FSFolder.


        :param size: The size of this FSFolder.  # noqa: E501
        :type: int
        """

        self._size = size

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


        :return: The status of this FSFolder.  # noqa: E501
        :rtype: str
        """
        return self._status

    @status.setter
    def status(self, status):
        """Sets the status of this FSFolder.


        :param status: The status of this FSFolder.  # noqa: E501
        :type: str
        """

        self._status = status

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


        :return: The update of this FSFolder.  # noqa: E501
        :rtype: datetime
        """
        return self._update

    @update.setter
    def update(self, update):
        """Sets the update of this FSFolder.


        :param update: The update of this FSFolder.  # noqa: E501
        :type: datetime
        """

        self._update = update

    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

        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, FSFolder):
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        """Returns true if both objects are not equal"""
        return not self == other
