# coding: utf-8

"""
    AristaFlowREST/WorklistManager

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

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

import pprint
import re  # noqa: F401

import six
from af_worklist_manager.models.dummy_parent import DummyParent  # noqa: F401,E501

class InitialIncAdminWorklistData(DummyParent):
    """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 = {
        'sub_class': 'str',
        'inc_wl_id': 'str',
        'rem_alive_time': 'int',
        'closed': 'bool',
        'worklist_id': 'str',
        'agent': 'QualifiedAgent',
        'revision': 'WorklistRevision',
        'user_attributes': 'dict(str, str)',
        'aw_items': 'list[AdministrativeWorklistItem]'
    }
    if hasattr(DummyParent, "swagger_types"):
        swagger_types.update(DummyParent.swagger_types)

    attribute_map = {
        'sub_class': 'subClass',
        'inc_wl_id': 'incWlId',
        'rem_alive_time': 'remAliveTime',
        'closed': 'closed',
        'worklist_id': 'worklistId',
        'agent': 'agent',
        'revision': 'revision',
        'user_attributes': 'userAttributes',
        'aw_items': 'awItems'
    }
    if hasattr(DummyParent, "attribute_map"):
        attribute_map.update(DummyParent.attribute_map)

    discriminator_value_class_map = {
              }

    def __init__(self, sub_class=None, inc_wl_id=None, rem_alive_time=None, closed=None, worklist_id=None, agent=None, revision=None, user_attributes=None, aw_items=None, *args, **kwargs):  # noqa: E501
        """InitialIncAdminWorklistData - a model defined in Swagger"""  # noqa: E501
        self._sub_class = None
        self._inc_wl_id = None
        self._rem_alive_time = None
        self._closed = None
        self._worklist_id = None
        self._agent = None
        self._revision = None
        self._user_attributes = None
        self._aw_items = None
        if not(hasattr(self, "discriminator")) or not(self.discriminator):
            self.discriminator = 'sub_class'
        if sub_class is not None:
            self.sub_class = sub_class
        if inc_wl_id is not None:
            self.inc_wl_id = inc_wl_id
        self.rem_alive_time = rem_alive_time
        self.closed = closed
        self.worklist_id = worklist_id
        self.agent = agent
        self.revision = revision
        if user_attributes is not None:
            self.user_attributes = user_attributes
        if aw_items is not None:
            self.aw_items = aw_items
        DummyParent.__init__(self, *args, **kwargs)

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


        :return: The sub_class of this InitialIncAdminWorklistData.  # noqa: E501
        :rtype: str
        """
        return self._sub_class

    @sub_class.setter
    def sub_class(self, sub_class):
        """Sets the sub_class of this InitialIncAdminWorklistData.


        :param sub_class: The sub_class of this InitialIncAdminWorklistData.  # noqa: E501
        :type: str
        """

        self._sub_class = sub_class

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


        :return: The inc_wl_id of this InitialIncAdminWorklistData.  # noqa: E501
        :rtype: str
        """
        return self._inc_wl_id

    @inc_wl_id.setter
    def inc_wl_id(self, inc_wl_id):
        """Sets the inc_wl_id of this InitialIncAdminWorklistData.


        :param inc_wl_id: The inc_wl_id of this InitialIncAdminWorklistData.  # noqa: E501
        :type: str
        """

        self._inc_wl_id = inc_wl_id

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


        :return: The rem_alive_time of this InitialIncAdminWorklistData.  # noqa: E501
        :rtype: int
        """
        return self._rem_alive_time

    @rem_alive_time.setter
    def rem_alive_time(self, rem_alive_time):
        """Sets the rem_alive_time of this InitialIncAdminWorklistData.


        :param rem_alive_time: The rem_alive_time of this InitialIncAdminWorklistData.  # noqa: E501
        :type: int
        """
        if rem_alive_time is None:
            raise ValueError("Invalid value for `rem_alive_time`, must not be `None`")  # noqa: E501

        self._rem_alive_time = rem_alive_time

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


        :return: The closed of this InitialIncAdminWorklistData.  # noqa: E501
        :rtype: bool
        """
        return self._closed

    @closed.setter
    def closed(self, closed):
        """Sets the closed of this InitialIncAdminWorklistData.


        :param closed: The closed of this InitialIncAdminWorklistData.  # noqa: E501
        :type: bool
        """
        if closed is None:
            raise ValueError("Invalid value for `closed`, must not be `None`")  # noqa: E501

        self._closed = closed

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


        :return: The worklist_id of this InitialIncAdminWorklistData.  # noqa: E501
        :rtype: str
        """
        return self._worklist_id

    @worklist_id.setter
    def worklist_id(self, worklist_id):
        """Sets the worklist_id of this InitialIncAdminWorklistData.


        :param worklist_id: The worklist_id of this InitialIncAdminWorklistData.  # noqa: E501
        :type: str
        """
        if worklist_id is None:
            raise ValueError("Invalid value for `worklist_id`, must not be `None`")  # noqa: E501

        self._worklist_id = worklist_id

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


        :return: The agent of this InitialIncAdminWorklistData.  # noqa: E501
        :rtype: QualifiedAgent
        """
        return self._agent

    @agent.setter
    def agent(self, agent):
        """Sets the agent of this InitialIncAdminWorklistData.


        :param agent: The agent of this InitialIncAdminWorklistData.  # noqa: E501
        :type: QualifiedAgent
        """
        if agent is None:
            raise ValueError("Invalid value for `agent`, must not be `None`")  # noqa: E501

        self._agent = agent

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


        :return: The revision of this InitialIncAdminWorklistData.  # noqa: E501
        :rtype: WorklistRevision
        """
        return self._revision

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


        :param revision: The revision of this InitialIncAdminWorklistData.  # noqa: E501
        :type: WorklistRevision
        """
        if revision is None:
            raise ValueError("Invalid value for `revision`, must not be `None`")  # noqa: E501

        self._revision = revision

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


        :return: The user_attributes of this InitialIncAdminWorklistData.  # noqa: E501
        :rtype: dict(str, str)
        """
        return self._user_attributes

    @user_attributes.setter
    def user_attributes(self, user_attributes):
        """Sets the user_attributes of this InitialIncAdminWorklistData.


        :param user_attributes: The user_attributes of this InitialIncAdminWorklistData.  # noqa: E501
        :type: dict(str, str)
        """

        self._user_attributes = user_attributes

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


        :return: The aw_items of this InitialIncAdminWorklistData.  # noqa: E501
        :rtype: list[AdministrativeWorklistItem]
        """
        return self._aw_items

    @aw_items.setter
    def aw_items(self, aw_items):
        """Sets the aw_items of this InitialIncAdminWorklistData.


        :param aw_items: The aw_items of this InitialIncAdminWorklistData.  # noqa: E501
        :type: list[AdministrativeWorklistItem]
        """

        self._aw_items = aw_items

    def get_real_child_model(self, data):
        """Returns the real base class specified by the discriminator"""
        discriminator_value = data[self.attribute_map[self.discriminator]]
        return discriminator_value if not(self.__class__.__name__ == discriminator_value) else None

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

        return self.__dict__ == other.__dict__

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