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

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

    :param id: Required.
    :type id: str
    :param relationship_type: Required. Possible values include: 'Parent',
     'Preceding'
    :type relationship_type: str or ~smartdiagnostics_sdk.models.enum
    :param from_activity_event: Required.
    :type from_activity_event: ~smartdiagnostics_sdk.models.ActivityEventChild
    :param to_activity_event: Required.
    :type to_activity_event: ~smartdiagnostics_sdk.models.ActivityEventChild
    """

    _validation = {
        'id': {'required': True},
        'relationship_type': {'required': True},
        'from_activity_event': {'required': True},
        'to_activity_event': {'required': True},
    }

    _attribute_map = {
        'id': {'key': 'Id', 'type': 'str'},
        'relationship_type': {'key': 'RelationshipType', 'type': 'str'},
        'from_activity_event': {'key': 'FromActivityEvent', 'type': 'ActivityEventChild'},
        'to_activity_event': {'key': 'ToActivityEvent', 'type': 'ActivityEventChild'},
    }

    def __init__(self, *, id: str, relationship_type, from_activity_event, to_activity_event, **kwargs) -> None:
        super(ActivityEventRelationshipResponse, self).__init__(**kwargs)
        self.id = id
        self.relationship_type = relationship_type
        self.from_activity_event = from_activity_event
        self.to_activity_event = to_activity_event
