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

package com.azure.resourcemanager.devcenter.generated;

/** Samples for AttachedNetworks CreateOrUpdate. */
public final class AttachedNetworksCreateOrUpdateSamples {
    /*
     * x-ms-original-file: specification/devcenter/resource-manager/Microsoft.DevCenter/stable/2023-04-01/examples/AttachedNetworks_Create.json
     */
    /**
     * Sample code: AttachedNetworks_Create.
     *
     * @param manager Entry point to DevCenterManager.
     */
    public static void attachedNetworksCreate(com.azure.resourcemanager.devcenter.DevCenterManager manager) {
        manager
            .attachedNetworks()
            .define("network-uswest3")
            .withExistingDevcenter("rg1", "Contoso")
            .withNetworkConnectionId(
                "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/NetworkConnections/network-uswest3")
            .create();
    }
}
