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

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

    :param relationship_type: Required. Possible values include: 'Parent',
     'Preceding'
    :type relationship_type: str or ~smartdiagnostics_sdk.models.enum
    :param from_category_id: Required.
    :type from_category_id: int
    :param to_category_id: Required.
    :type to_category_id: int
    """

    _validation = {
        'relationship_type': {'required': True},
        'from_category_id': {'required': True},
        'to_category_id': {'required': True},
    }

    _attribute_map = {
        'relationship_type': {'key': 'RelationshipType', 'type': 'str'},
        'from_category_id': {'key': 'FromCategoryId', 'type': 'int'},
        'to_category_id': {'key': 'ToCategoryId', 'type': 'int'},
    }

    def __init__(self, **kwargs):
        super(ActivityEventCategoryRelationshipCreateRequest, self).__init__(**kwargs)
        self.relationship_type = kwargs.get('relationship_type', None)
        self.from_category_id = kwargs.get('from_category_id', None)
        self.to_category_id = kwargs.get('to_category_id', None)
