// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.peering.generated;

/** Samples for ReceivedRoutes ListByPeering. */
public final class ReceivedRoutesListByPeeringSamples {
    /*
     * x-ms-original-file: specification/peering/resource-manager/Microsoft.Peering/stable/2021-01-01/examples/GetPeeringReceivedRoutes.json
     */
    /**
     * Sample code: Lists the prefixes received over the specified peering under the given subscription and resource
     * group.
     *
     * @param manager Entry point to PeeringManager.
     */
    public static void listsThePrefixesReceivedOverTheSpecifiedPeeringUnderTheGivenSubscriptionAndResourceGroup(
        com.azure.resourcemanager.peering.PeeringManager manager) {
        manager
            .receivedRoutes()
            .listByPeering(
                "rgName",
                "peeringName",
                "1.1.1.0/24",
                "123 456",
                "Valid",
                "Valid",
                null,
                com.azure.core.util.Context.NONE);
    }
}
