# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# 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 HttpRouteConfig(Model):
    """Describes the hostname properties for http routing.

    :param name: http route name.
    :type name: str
    :param match: Describes a rule for http route matching.
    :type match: ~azure.mgmt.servicefabricmesh.models.HttpRouteMatchRule
    :param destination: Describes destination endpoint for routing traffic.
    :type destination: ~azure.mgmt.servicefabricmesh.models.GatewayDestination
    """

    _validation = {
        'name': {'required': True},
        'match': {'required': True},
        'destination': {'required': True},
    }

    _attribute_map = {
        'name': {'key': 'name', 'type': 'str'},
        'match': {'key': 'match', 'type': 'HttpRouteMatchRule'},
        'destination': {'key': 'destination', 'type': 'GatewayDestination'},
    }

    def __init__(self, name, match, destination):
        super(HttpRouteConfig, self).__init__()
        self.name = name
        self.match = match
        self.destination = destination
