# coding: utf-8

"""
    Intersight REST API

    This is Intersight REST API 

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


from pprint import pformat
from six import iteritems
import re


class EquipmentChassis(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 = {
        'account_moid': 'str',
        'ancestors': 'list[MoBaseMoRef]',
        'create_time': 'datetime',
        'mod_time': 'datetime',
        'moid': 'str',
        'object_type': 'str',
        'owners': 'list[str]',
        'parent': 'MoBaseMoRef',
        'tags': 'list[MoTag]',
        'version_context': 'MoVersionContext',
        'device_mo_id': 'str',
        'dn': 'str',
        'rn': 'str',
        'model': 'str',
        'revision': 'str',
        'serial': 'str',
        'vendor': 'str',
        'blades': 'list[ComputeBladeRef]',
        'fanmodules': 'list[EquipmentFanModuleRef]',
        'ioms': 'list[EquipmentIoCardRef]',
        'oper_state': 'str',
        'psus': 'list[EquipmentPsuRef]',
        'registered_device': 'AssetDeviceRegistrationRef',
        'sasexpanders': 'list[StorageSasExpanderRef]',
        'siocs': 'list[EquipmentSystemIoControllerRef]',
        'storage_enclosures': 'list[StorageEnclosureRef]'
    }

    attribute_map = {
        'account_moid': 'AccountMoid',
        'ancestors': 'Ancestors',
        'create_time': 'CreateTime',
        'mod_time': 'ModTime',
        'moid': 'Moid',
        'object_type': 'ObjectType',
        'owners': 'Owners',
        'parent': 'Parent',
        'tags': 'Tags',
        'version_context': 'VersionContext',
        'device_mo_id': 'DeviceMoId',
        'dn': 'Dn',
        'rn': 'Rn',
        'model': 'Model',
        'revision': 'Revision',
        'serial': 'Serial',
        'vendor': 'Vendor',
        'blades': 'Blades',
        'fanmodules': 'Fanmodules',
        'ioms': 'Ioms',
        'oper_state': 'OperState',
        'psus': 'Psus',
        'registered_device': 'RegisteredDevice',
        'sasexpanders': 'Sasexpanders',
        'siocs': 'Siocs',
        'storage_enclosures': 'StorageEnclosures'
    }

    def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, blades=None, fanmodules=None, ioms=None, oper_state=None, psus=None, registered_device=None, sasexpanders=None, siocs=None, storage_enclosures=None):
        """
        EquipmentChassis - a model defined in Swagger
        """

        self._account_moid = None
        self._ancestors = None
        self._create_time = None
        self._mod_time = None
        self._moid = None
        self._object_type = None
        self._owners = None
        self._parent = None
        self._tags = None
        self._version_context = None
        self._device_mo_id = None
        self._dn = None
        self._rn = None
        self._model = None
        self._revision = None
        self._serial = None
        self._vendor = None
        self._blades = None
        self._fanmodules = None
        self._ioms = None
        self._oper_state = None
        self._psus = None
        self._registered_device = None
        self._sasexpanders = None
        self._siocs = None
        self._storage_enclosures = None

        if account_moid is not None:
          self.account_moid = account_moid
        if ancestors is not None:
          self.ancestors = ancestors
        if create_time is not None:
          self.create_time = create_time
        if mod_time is not None:
          self.mod_time = mod_time
        if moid is not None:
          self.moid = moid
        if object_type is not None:
          self.object_type = object_type
        if owners is not None:
          self.owners = owners
        if parent is not None:
          self.parent = parent
        if tags is not None:
          self.tags = tags
        if version_context is not None:
          self.version_context = version_context
        if device_mo_id is not None:
          self.device_mo_id = device_mo_id
        if dn is not None:
          self.dn = dn
        if rn is not None:
          self.rn = rn
        if model is not None:
          self.model = model
        if revision is not None:
          self.revision = revision
        if serial is not None:
          self.serial = serial
        if vendor is not None:
          self.vendor = vendor
        if blades is not None:
          self.blades = blades
        if fanmodules is not None:
          self.fanmodules = fanmodules
        if ioms is not None:
          self.ioms = ioms
        if oper_state is not None:
          self.oper_state = oper_state
        if psus is not None:
          self.psus = psus
        if registered_device is not None:
          self.registered_device = registered_device
        if sasexpanders is not None:
          self.sasexpanders = sasexpanders
        if siocs is not None:
          self.siocs = siocs
        if storage_enclosures is not None:
          self.storage_enclosures = storage_enclosures

    @property
    def account_moid(self):
        """
        Gets the account_moid of this EquipmentChassis.
        The Account ID for this managed object.  

        :return: The account_moid of this EquipmentChassis.
        :rtype: str
        """
        return self._account_moid

    @account_moid.setter
    def account_moid(self, account_moid):
        """
        Sets the account_moid of this EquipmentChassis.
        The Account ID for this managed object.  

        :param account_moid: The account_moid of this EquipmentChassis.
        :type: str
        """

        self._account_moid = account_moid

    @property
    def ancestors(self):
        """
        Gets the ancestors of this EquipmentChassis.
        Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. 

        :return: The ancestors of this EquipmentChassis.
        :rtype: list[MoBaseMoRef]
        """
        return self._ancestors

    @ancestors.setter
    def ancestors(self, ancestors):
        """
        Sets the ancestors of this EquipmentChassis.
        Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. 

        :param ancestors: The ancestors of this EquipmentChassis.
        :type: list[MoBaseMoRef]
        """

        self._ancestors = ancestors

    @property
    def create_time(self):
        """
        Gets the create_time of this EquipmentChassis.
        The time when this managed object was created.  

        :return: The create_time of this EquipmentChassis.
        :rtype: datetime
        """
        return self._create_time

    @create_time.setter
    def create_time(self, create_time):
        """
        Sets the create_time of this EquipmentChassis.
        The time when this managed object was created.  

        :param create_time: The create_time of this EquipmentChassis.
        :type: datetime
        """

        self._create_time = create_time

    @property
    def mod_time(self):
        """
        Gets the mod_time of this EquipmentChassis.
        The time when this managed object was last modified.  

        :return: The mod_time of this EquipmentChassis.
        :rtype: datetime
        """
        return self._mod_time

    @mod_time.setter
    def mod_time(self, mod_time):
        """
        Sets the mod_time of this EquipmentChassis.
        The time when this managed object was last modified.  

        :param mod_time: The mod_time of this EquipmentChassis.
        :type: datetime
        """

        self._mod_time = mod_time

    @property
    def moid(self):
        """
        Gets the moid of this EquipmentChassis.
        A unique identifier of this Managed Object instance.  

        :return: The moid of this EquipmentChassis.
        :rtype: str
        """
        return self._moid

    @moid.setter
    def moid(self, moid):
        """
        Sets the moid of this EquipmentChassis.
        A unique identifier of this Managed Object instance.  

        :param moid: The moid of this EquipmentChassis.
        :type: str
        """

        self._moid = moid

    @property
    def object_type(self):
        """
        Gets the object_type of this EquipmentChassis.
        The fully-qualified type of this managed object, e.g. the class name.  

        :return: The object_type of this EquipmentChassis.
        :rtype: str
        """
        return self._object_type

    @object_type.setter
    def object_type(self, object_type):
        """
        Sets the object_type of this EquipmentChassis.
        The fully-qualified type of this managed object, e.g. the class name.  

        :param object_type: The object_type of this EquipmentChassis.
        :type: str
        """

        self._object_type = object_type

    @property
    def owners(self):
        """
        Gets the owners of this EquipmentChassis.
        An array of owners which represent effective ownership of this object.   

        :return: The owners of this EquipmentChassis.
        :rtype: list[str]
        """
        return self._owners

    @owners.setter
    def owners(self, owners):
        """
        Sets the owners of this EquipmentChassis.
        An array of owners which represent effective ownership of this object.   

        :param owners: The owners of this EquipmentChassis.
        :type: list[str]
        """

        self._owners = owners

    @property
    def parent(self):
        """
        Gets the parent of this EquipmentChassis.
        The direct ancestor of this managed object in the containment hierarchy. 

        :return: The parent of this EquipmentChassis.
        :rtype: MoBaseMoRef
        """
        return self._parent

    @parent.setter
    def parent(self, parent):
        """
        Sets the parent of this EquipmentChassis.
        The direct ancestor of this managed object in the containment hierarchy. 

        :param parent: The parent of this EquipmentChassis.
        :type: MoBaseMoRef
        """

        self._parent = parent

    @property
    def tags(self):
        """
        Gets the tags of this EquipmentChassis.
        An array of tags, which allow to add key, value meta-data to managed objects.  

        :return: The tags of this EquipmentChassis.
        :rtype: list[MoTag]
        """
        return self._tags

    @tags.setter
    def tags(self, tags):
        """
        Sets the tags of this EquipmentChassis.
        An array of tags, which allow to add key, value meta-data to managed objects.  

        :param tags: The tags of this EquipmentChassis.
        :type: list[MoTag]
        """

        self._tags = tags

    @property
    def version_context(self):
        """
        Gets the version_context of this EquipmentChassis.
        The versioning info for this managed object   

        :return: The version_context of this EquipmentChassis.
        :rtype: MoVersionContext
        """
        return self._version_context

    @version_context.setter
    def version_context(self, version_context):
        """
        Sets the version_context of this EquipmentChassis.
        The versioning info for this managed object   

        :param version_context: The version_context of this EquipmentChassis.
        :type: MoVersionContext
        """

        self._version_context = version_context

    @property
    def device_mo_id(self):
        """
        Gets the device_mo_id of this EquipmentChassis.

        :return: The device_mo_id of this EquipmentChassis.
        :rtype: str
        """
        return self._device_mo_id

    @device_mo_id.setter
    def device_mo_id(self, device_mo_id):
        """
        Sets the device_mo_id of this EquipmentChassis.

        :param device_mo_id: The device_mo_id of this EquipmentChassis.
        :type: str
        """

        self._device_mo_id = device_mo_id

    @property
    def dn(self):
        """
        Gets the dn of this EquipmentChassis.

        :return: The dn of this EquipmentChassis.
        :rtype: str
        """
        return self._dn

    @dn.setter
    def dn(self, dn):
        """
        Sets the dn of this EquipmentChassis.

        :param dn: The dn of this EquipmentChassis.
        :type: str
        """

        self._dn = dn

    @property
    def rn(self):
        """
        Gets the rn of this EquipmentChassis.

        :return: The rn of this EquipmentChassis.
        :rtype: str
        """
        return self._rn

    @rn.setter
    def rn(self, rn):
        """
        Sets the rn of this EquipmentChassis.

        :param rn: The rn of this EquipmentChassis.
        :type: str
        """

        self._rn = rn

    @property
    def model(self):
        """
        Gets the model of this EquipmentChassis.

        :return: The model of this EquipmentChassis.
        :rtype: str
        """
        return self._model

    @model.setter
    def model(self, model):
        """
        Sets the model of this EquipmentChassis.

        :param model: The model of this EquipmentChassis.
        :type: str
        """

        self._model = model

    @property
    def revision(self):
        """
        Gets the revision of this EquipmentChassis.

        :return: The revision of this EquipmentChassis.
        :rtype: str
        """
        return self._revision

    @revision.setter
    def revision(self, revision):
        """
        Sets the revision of this EquipmentChassis.

        :param revision: The revision of this EquipmentChassis.
        :type: str
        """

        self._revision = revision

    @property
    def serial(self):
        """
        Gets the serial of this EquipmentChassis.

        :return: The serial of this EquipmentChassis.
        :rtype: str
        """
        return self._serial

    @serial.setter
    def serial(self, serial):
        """
        Sets the serial of this EquipmentChassis.

        :param serial: The serial of this EquipmentChassis.
        :type: str
        """

        self._serial = serial

    @property
    def vendor(self):
        """
        Gets the vendor of this EquipmentChassis.

        :return: The vendor of this EquipmentChassis.
        :rtype: str
        """
        return self._vendor

    @vendor.setter
    def vendor(self, vendor):
        """
        Sets the vendor of this EquipmentChassis.

        :param vendor: The vendor of this EquipmentChassis.
        :type: str
        """

        self._vendor = vendor

    @property
    def blades(self):
        """
        Gets the blades of this EquipmentChassis.

        :return: The blades of this EquipmentChassis.
        :rtype: list[ComputeBladeRef]
        """
        return self._blades

    @blades.setter
    def blades(self, blades):
        """
        Sets the blades of this EquipmentChassis.

        :param blades: The blades of this EquipmentChassis.
        :type: list[ComputeBladeRef]
        """

        self._blades = blades

    @property
    def fanmodules(self):
        """
        Gets the fanmodules of this EquipmentChassis.

        :return: The fanmodules of this EquipmentChassis.
        :rtype: list[EquipmentFanModuleRef]
        """
        return self._fanmodules

    @fanmodules.setter
    def fanmodules(self, fanmodules):
        """
        Sets the fanmodules of this EquipmentChassis.

        :param fanmodules: The fanmodules of this EquipmentChassis.
        :type: list[EquipmentFanModuleRef]
        """

        self._fanmodules = fanmodules

    @property
    def ioms(self):
        """
        Gets the ioms of this EquipmentChassis.

        :return: The ioms of this EquipmentChassis.
        :rtype: list[EquipmentIoCardRef]
        """
        return self._ioms

    @ioms.setter
    def ioms(self, ioms):
        """
        Sets the ioms of this EquipmentChassis.

        :param ioms: The ioms of this EquipmentChassis.
        :type: list[EquipmentIoCardRef]
        """

        self._ioms = ioms

    @property
    def oper_state(self):
        """
        Gets the oper_state of this EquipmentChassis.

        :return: The oper_state of this EquipmentChassis.
        :rtype: str
        """
        return self._oper_state

    @oper_state.setter
    def oper_state(self, oper_state):
        """
        Sets the oper_state of this EquipmentChassis.

        :param oper_state: The oper_state of this EquipmentChassis.
        :type: str
        """

        self._oper_state = oper_state

    @property
    def psus(self):
        """
        Gets the psus of this EquipmentChassis.

        :return: The psus of this EquipmentChassis.
        :rtype: list[EquipmentPsuRef]
        """
        return self._psus

    @psus.setter
    def psus(self, psus):
        """
        Sets the psus of this EquipmentChassis.

        :param psus: The psus of this EquipmentChassis.
        :type: list[EquipmentPsuRef]
        """

        self._psus = psus

    @property
    def registered_device(self):
        """
        Gets the registered_device of this EquipmentChassis.

        :return: The registered_device of this EquipmentChassis.
        :rtype: AssetDeviceRegistrationRef
        """
        return self._registered_device

    @registered_device.setter
    def registered_device(self, registered_device):
        """
        Sets the registered_device of this EquipmentChassis.

        :param registered_device: The registered_device of this EquipmentChassis.
        :type: AssetDeviceRegistrationRef
        """

        self._registered_device = registered_device

    @property
    def sasexpanders(self):
        """
        Gets the sasexpanders of this EquipmentChassis.

        :return: The sasexpanders of this EquipmentChassis.
        :rtype: list[StorageSasExpanderRef]
        """
        return self._sasexpanders

    @sasexpanders.setter
    def sasexpanders(self, sasexpanders):
        """
        Sets the sasexpanders of this EquipmentChassis.

        :param sasexpanders: The sasexpanders of this EquipmentChassis.
        :type: list[StorageSasExpanderRef]
        """

        self._sasexpanders = sasexpanders

    @property
    def siocs(self):
        """
        Gets the siocs of this EquipmentChassis.

        :return: The siocs of this EquipmentChassis.
        :rtype: list[EquipmentSystemIoControllerRef]
        """
        return self._siocs

    @siocs.setter
    def siocs(self, siocs):
        """
        Sets the siocs of this EquipmentChassis.

        :param siocs: The siocs of this EquipmentChassis.
        :type: list[EquipmentSystemIoControllerRef]
        """

        self._siocs = siocs

    @property
    def storage_enclosures(self):
        """
        Gets the storage_enclosures of this EquipmentChassis.

        :return: The storage_enclosures of this EquipmentChassis.
        :rtype: list[StorageEnclosureRef]
        """
        return self._storage_enclosures

    @storage_enclosures.setter
    def storage_enclosures(self, storage_enclosures):
        """
        Sets the storage_enclosures of this EquipmentChassis.

        :param storage_enclosures: The storage_enclosures of this EquipmentChassis.
        :type: list[StorageEnclosureRef]
        """

        self._storage_enclosures = storage_enclosures

    def to_dict(self):
        """
        Returns the model properties as a dict
        """
        result = {}

        for attr, _ in 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 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, EquipmentChassis):
            return False

        return self.__dict__ == other.__dict__

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