# 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


class ObjectStoragePolicyUpdateReqPolicy(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 = {
        'compress': 'bool',
        'crypto': 'bool',
        'data_pool_id': 'int',
        'data_pool_ids': 'list[int]',
        'default': 'bool',
        'description': 'str'
    }

    attribute_map = {
        'compress': 'compress',
        'crypto': 'crypto',
        'data_pool_id': 'data_pool_id',
        'data_pool_ids': 'data_pool_ids',
        'default': 'default',
        'description': 'description'
    }

    def __init__(self, compress=None, crypto=None, data_pool_id=None, data_pool_ids=None, default=None, description=None):  # noqa: E501
        """ObjectStoragePolicyUpdateReqPolicy - a model defined in Swagger"""  # noqa: E501

        self._compress = None
        self._crypto = None
        self._data_pool_id = None
        self._data_pool_ids = None
        self._default = None
        self._description = None
        self.discriminator = None

        if compress is not None:
            self.compress = compress
        if crypto is not None:
            self.crypto = crypto
        if data_pool_id is not None:
            self.data_pool_id = data_pool_id
        if data_pool_ids is not None:
            self.data_pool_ids = data_pool_ids
        if default is not None:
            self.default = default
        if description is not None:
            self.description = description

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


        :return: The compress of this ObjectStoragePolicyUpdateReqPolicy.  # noqa: E501
        :rtype: bool
        """
        return self._compress

    @compress.setter
    def compress(self, compress):
        """Sets the compress of this ObjectStoragePolicyUpdateReqPolicy.


        :param compress: The compress of this ObjectStoragePolicyUpdateReqPolicy.  # noqa: E501
        :type: bool
        """

        self._compress = compress

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


        :return: The crypto of this ObjectStoragePolicyUpdateReqPolicy.  # noqa: E501
        :rtype: bool
        """
        return self._crypto

    @crypto.setter
    def crypto(self, crypto):
        """Sets the crypto of this ObjectStoragePolicyUpdateReqPolicy.


        :param crypto: The crypto of this ObjectStoragePolicyUpdateReqPolicy.  # noqa: E501
        :type: bool
        """

        self._crypto = crypto

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


        :return: The data_pool_id of this ObjectStoragePolicyUpdateReqPolicy.  # noqa: E501
        :rtype: int
        """
        return self._data_pool_id

    @data_pool_id.setter
    def data_pool_id(self, data_pool_id):
        """Sets the data_pool_id of this ObjectStoragePolicyUpdateReqPolicy.


        :param data_pool_id: The data_pool_id of this ObjectStoragePolicyUpdateReqPolicy.  # noqa: E501
        :type: int
        """

        self._data_pool_id = data_pool_id

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


        :return: The data_pool_ids of this ObjectStoragePolicyUpdateReqPolicy.  # noqa: E501
        :rtype: list[int]
        """
        return self._data_pool_ids

    @data_pool_ids.setter
    def data_pool_ids(self, data_pool_ids):
        """Sets the data_pool_ids of this ObjectStoragePolicyUpdateReqPolicy.


        :param data_pool_ids: The data_pool_ids of this ObjectStoragePolicyUpdateReqPolicy.  # noqa: E501
        :type: list[int]
        """

        self._data_pool_ids = data_pool_ids

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


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

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


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

        self._default = default

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


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

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


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

        self._description = description

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

        return self.__dict__ == other.__dict__

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