# coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class ActivityEventChild(Model):
    """ActivityEventChild.

    All required parameters must be populated in order to send to Azure.

    :param id: Required.
    :type id: str
    :param title: Required.
    :type title: str
    :param description:
    :type description: str
    :param start_date_time: Required.
    :type start_date_time: datetime
    :param end_date_time:
    :type end_date_time: datetime
    :param location_id: Required.
    :type location_id: str
    :param category: Required.
    :type category: ~smartdiagnostics_sdk.models.ActivityEventCategoryChild
    """

    _validation = {
        'id': {'required': True},
        'title': {'required': True},
        'start_date_time': {'required': True},
        'location_id': {'required': True},
        'category': {'required': True},
    }

    _attribute_map = {
        'id': {'key': 'Id', 'type': 'str'},
        'title': {'key': 'Title', 'type': 'str'},
        'description': {'key': 'Description', 'type': 'str'},
        'start_date_time': {'key': 'StartDateTime', 'type': 'iso-8601'},
        'end_date_time': {'key': 'EndDateTime', 'type': 'iso-8601'},
        'location_id': {'key': 'LocationId', 'type': 'str'},
        'category': {'key': 'Category', 'type': 'ActivityEventCategoryChild'},
    }

    def __init__(self, *, id: str, title: str, start_date_time, location_id: str, category, description: str=None, end_date_time=None, **kwargs) -> None:
        super(ActivityEventChild, self).__init__(**kwargs)
        self.id = id
        self.title = title
        self.description = description
        self.start_date_time = start_date_time
        self.end_date_time = end_date_time
        self.location_id = location_id
        self.category = category
