# 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 ActivityEventRelationshipChild(Model):
    """ActivityEventRelationshipChild.

    :param relationship_id: Activity event relationship id
    :type relationship_id: str
    :param relationship_from_id: Activity event id that represents the FROM in
     the relationship.
    :type relationship_from_id: str
    :param relationship_to_id: Activity event id that represents the TO in the
     relationship.
    :type relationship_to_id: str
    :param relationship_type: Activity event relationship type. Possible
     values include: 'Parent', 'Preceding'
    :type relationship_type: str or ~smartdiagnostics_sdk.models.enum
    """

    _attribute_map = {
        'relationship_id': {'key': 'RelationshipId', 'type': 'str'},
        'relationship_from_id': {'key': 'RelationshipFromId', 'type': 'str'},
        'relationship_to_id': {'key': 'RelationshipToId', 'type': 'str'},
        'relationship_type': {'key': 'RelationshipType', 'type': 'str'},
    }

    def __init__(self, **kwargs):
        super(ActivityEventRelationshipChild, self).__init__(**kwargs)
        self.relationship_id = kwargs.get('relationship_id', None)
        self.relationship_from_id = kwargs.get('relationship_from_id', None)
        self.relationship_to_id = kwargs.get('relationship_to_id', None)
        self.relationship_type = kwargs.get('relationship_type', None)
