# 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 License(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 = {
        'active': 'bool',
        'capacity': 'int',
        'create': 'datetime',
        'customer': 'str',
        'expired_time': 'datetime',
        'host_num': 'int',
        'id': 'int',
        'osd_num': 'int',
        'product': 'str',
        'signed_time': 'datetime',
        'status': 'str',
        'used_capacity': 'int',
        'used_host_num': 'int'
    }

    attribute_map = {
        'active': 'active',
        'capacity': 'capacity',
        'create': 'create',
        'customer': 'customer',
        'expired_time': 'expired_time',
        'host_num': 'host_num',
        'id': 'id',
        'osd_num': 'osd_num',
        'product': 'product',
        'signed_time': 'signed_time',
        'status': 'status',
        'used_capacity': 'used_capacity',
        'used_host_num': 'used_host_num'
    }

    def __init__(self, active=None, capacity=None, create=None, customer=None, expired_time=None, host_num=None, id=None, osd_num=None, product=None, signed_time=None, status=None, used_capacity=None, used_host_num=None):  # noqa: E501
        """License - a model defined in Swagger"""  # noqa: E501

        self._active = None
        self._capacity = None
        self._create = None
        self._customer = None
        self._expired_time = None
        self._host_num = None
        self._id = None
        self._osd_num = None
        self._product = None
        self._signed_time = None
        self._status = None
        self._used_capacity = None
        self._used_host_num = None
        self.discriminator = None

        if active is not None:
            self.active = active
        if capacity is not None:
            self.capacity = capacity
        if create is not None:
            self.create = create
        if customer is not None:
            self.customer = customer
        if expired_time is not None:
            self.expired_time = expired_time
        if host_num is not None:
            self.host_num = host_num
        if id is not None:
            self.id = id
        if osd_num is not None:
            self.osd_num = osd_num
        if product is not None:
            self.product = product
        if signed_time is not None:
            self.signed_time = signed_time
        if status is not None:
            self.status = status
        if used_capacity is not None:
            self.used_capacity = used_capacity
        if used_host_num is not None:
            self.used_host_num = used_host_num

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


        :return: The active of this License.  # noqa: E501
        :rtype: bool
        """
        return self._active

    @active.setter
    def active(self, active):
        """Sets the active of this License.


        :param active: The active of this License.  # noqa: E501
        :type: bool
        """

        self._active = active

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


        :return: The capacity of this License.  # noqa: E501
        :rtype: int
        """
        return self._capacity

    @capacity.setter
    def capacity(self, capacity):
        """Sets the capacity of this License.


        :param capacity: The capacity of this License.  # noqa: E501
        :type: int
        """

        self._capacity = capacity

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


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

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


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

        self._create = create

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


        :return: The customer of this License.  # noqa: E501
        :rtype: str
        """
        return self._customer

    @customer.setter
    def customer(self, customer):
        """Sets the customer of this License.


        :param customer: The customer of this License.  # noqa: E501
        :type: str
        """

        self._customer = customer

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


        :return: The expired_time of this License.  # noqa: E501
        :rtype: datetime
        """
        return self._expired_time

    @expired_time.setter
    def expired_time(self, expired_time):
        """Sets the expired_time of this License.


        :param expired_time: The expired_time of this License.  # noqa: E501
        :type: datetime
        """

        self._expired_time = expired_time

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


        :return: The host_num of this License.  # noqa: E501
        :rtype: int
        """
        return self._host_num

    @host_num.setter
    def host_num(self, host_num):
        """Sets the host_num of this License.


        :param host_num: The host_num of this License.  # noqa: E501
        :type: int
        """

        self._host_num = host_num

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


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

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


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

        self._id = id

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


        :return: The osd_num of this License.  # noqa: E501
        :rtype: int
        """
        return self._osd_num

    @osd_num.setter
    def osd_num(self, osd_num):
        """Sets the osd_num of this License.


        :param osd_num: The osd_num of this License.  # noqa: E501
        :type: int
        """

        self._osd_num = osd_num

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


        :return: The product of this License.  # noqa: E501
        :rtype: str
        """
        return self._product

    @product.setter
    def product(self, product):
        """Sets the product of this License.


        :param product: The product of this License.  # noqa: E501
        :type: str
        """

        self._product = product

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


        :return: The signed_time of this License.  # noqa: E501
        :rtype: datetime
        """
        return self._signed_time

    @signed_time.setter
    def signed_time(self, signed_time):
        """Sets the signed_time of this License.


        :param signed_time: The signed_time of this License.  # noqa: E501
        :type: datetime
        """

        self._signed_time = signed_time

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


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

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


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

        self._status = status

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


        :return: The used_capacity of this License.  # noqa: E501
        :rtype: int
        """
        return self._used_capacity

    @used_capacity.setter
    def used_capacity(self, used_capacity):
        """Sets the used_capacity of this License.


        :param used_capacity: The used_capacity of this License.  # noqa: E501
        :type: int
        """

        self._used_capacity = used_capacity

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


        :return: The used_host_num of this License.  # noqa: E501
        :rtype: int
        """
        return self._used_host_num

    @used_host_num.setter
    def used_host_num(self, used_host_num):
        """Sets the used_host_num of this License.


        :param used_host_num: The used_host_num of this License.  # noqa: E501
        :type: int
        """

        self._used_host_num = used_host_num

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

        return self.__dict__ == other.__dict__

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