# coding: utf-8

"""
    Internal API

    SmartDiagnostics REST API for internal users only  # noqa: E501

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

import pprint
import re  # noqa: F401

import six

class ActivityEventHierarchyGroupResponse(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 = {
        'id': 'str',
        'title': 'str',
        'description': 'str',
        'start_date_time': 'datetime',
        'end_date_time': 'datetime',
        'activity_line_enabled': 'bool',
        'created': 'datetime',
        'created_by': 'str',
        'location': 'LocationChild',
        'category': 'ActivityEventCategoryChild',
        'hierarchy': 'list[HierarchyChild]',
        'indicators': 'list[ActivityEventIndicatorChild]'
    }

    attribute_map = {
        'id': 'Id',
        'title': 'Title',
        'description': 'Description',
        'start_date_time': 'StartDateTime',
        'end_date_time': 'EndDateTime',
        'activity_line_enabled': 'ActivityLineEnabled',
        'created': 'Created',
        'created_by': 'CreatedBy',
        'location': 'Location',
        'category': 'Category',
        'hierarchy': 'Hierarchy',
        'indicators': 'Indicators'
    }

    def __init__(self, id=None, title=None, description=None, start_date_time=None, end_date_time=None, activity_line_enabled=None, created=None, created_by=None, location=None, category=None, hierarchy=None, indicators=None):  # noqa: E501
        """ActivityEventHierarchyGroupResponse - a model defined in Swagger"""  # noqa: E501
        self._id = None
        self._title = None
        self._description = None
        self._start_date_time = None
        self._end_date_time = None
        self._activity_line_enabled = None
        self._created = None
        self._created_by = None
        self._location = None
        self._category = None
        self._hierarchy = None
        self._indicators = None
        self.discriminator = None
        self.id = id
        self.title = title
        if description is not None:
            self.description = description
        self.start_date_time = start_date_time
        if end_date_time is not None:
            self.end_date_time = end_date_time
        if activity_line_enabled is not None:
            self.activity_line_enabled = activity_line_enabled
        if created is not None:
            self.created = created
        if created_by is not None:
            self.created_by = created_by
        if location is not None:
            self.location = location
        self.category = category
        self.hierarchy = hierarchy
        self.indicators = indicators

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


        :return: The id of this ActivityEventHierarchyGroupResponse.  # noqa: E501
        :rtype: str
        """
        return self._id

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


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

        self._id = id

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


        :return: The title of this ActivityEventHierarchyGroupResponse.  # noqa: E501
        :rtype: str
        """
        return self._title

    @title.setter
    def title(self, title):
        """Sets the title of this ActivityEventHierarchyGroupResponse.


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

        self._title = title

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


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

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


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

        self._description = description

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


        :return: The start_date_time of this ActivityEventHierarchyGroupResponse.  # noqa: E501
        :rtype: datetime
        """
        return self._start_date_time

    @start_date_time.setter
    def start_date_time(self, start_date_time):
        """Sets the start_date_time of this ActivityEventHierarchyGroupResponse.


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

        self._start_date_time = start_date_time

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


        :return: The end_date_time of this ActivityEventHierarchyGroupResponse.  # noqa: E501
        :rtype: datetime
        """
        return self._end_date_time

    @end_date_time.setter
    def end_date_time(self, end_date_time):
        """Sets the end_date_time of this ActivityEventHierarchyGroupResponse.


        :param end_date_time: The end_date_time of this ActivityEventHierarchyGroupResponse.  # noqa: E501
        :type: datetime
        """

        self._end_date_time = end_date_time

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


        :return: The activity_line_enabled of this ActivityEventHierarchyGroupResponse.  # noqa: E501
        :rtype: bool
        """
        return self._activity_line_enabled

    @activity_line_enabled.setter
    def activity_line_enabled(self, activity_line_enabled):
        """Sets the activity_line_enabled of this ActivityEventHierarchyGroupResponse.


        :param activity_line_enabled: The activity_line_enabled of this ActivityEventHierarchyGroupResponse.  # noqa: E501
        :type: bool
        """

        self._activity_line_enabled = activity_line_enabled

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


        :return: The created of this ActivityEventHierarchyGroupResponse.  # noqa: E501
        :rtype: datetime
        """
        return self._created

    @created.setter
    def created(self, created):
        """Sets the created of this ActivityEventHierarchyGroupResponse.


        :param created: The created of this ActivityEventHierarchyGroupResponse.  # noqa: E501
        :type: datetime
        """

        self._created = created

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


        :return: The created_by of this ActivityEventHierarchyGroupResponse.  # noqa: E501
        :rtype: str
        """
        return self._created_by

    @created_by.setter
    def created_by(self, created_by):
        """Sets the created_by of this ActivityEventHierarchyGroupResponse.


        :param created_by: The created_by of this ActivityEventHierarchyGroupResponse.  # noqa: E501
        :type: str
        """

        self._created_by = created_by

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


        :return: The location of this ActivityEventHierarchyGroupResponse.  # noqa: E501
        :rtype: LocationChild
        """
        return self._location

    @location.setter
    def location(self, location):
        """Sets the location of this ActivityEventHierarchyGroupResponse.


        :param location: The location of this ActivityEventHierarchyGroupResponse.  # noqa: E501
        :type: LocationChild
        """

        self._location = location

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


        :return: The category of this ActivityEventHierarchyGroupResponse.  # noqa: E501
        :rtype: ActivityEventCategoryChild
        """
        return self._category

    @category.setter
    def category(self, category):
        """Sets the category of this ActivityEventHierarchyGroupResponse.


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

        self._category = category

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


        :return: The hierarchy of this ActivityEventHierarchyGroupResponse.  # noqa: E501
        :rtype: list[HierarchyChild]
        """
        return self._hierarchy

    @hierarchy.setter
    def hierarchy(self, hierarchy):
        """Sets the hierarchy of this ActivityEventHierarchyGroupResponse.


        :param hierarchy: The hierarchy of this ActivityEventHierarchyGroupResponse.  # noqa: E501
        :type: list[HierarchyChild]
        """
        if hierarchy is None:
            raise ValueError("Invalid value for `hierarchy`, must not be `None`")  # noqa: E501

        self._hierarchy = hierarchy

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


        :return: The indicators of this ActivityEventHierarchyGroupResponse.  # noqa: E501
        :rtype: list[ActivityEventIndicatorChild]
        """
        return self._indicators

    @indicators.setter
    def indicators(self, indicators):
        """Sets the indicators of this ActivityEventHierarchyGroupResponse.


        :param indicators: The indicators of this ActivityEventHierarchyGroupResponse.  # noqa: E501
        :type: list[ActivityEventIndicatorChild]
        """
        if indicators is None:
            raise ValueError("Invalid value for `indicators`, must not be `None`")  # noqa: E501

        self._indicators = indicators

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

        return self.__dict__ == other.__dict__

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